fix: Add missing create_batch_reasoning_regular_schedule helper function
Demo seed script was failing with ImportError because the create_batch_reasoning_regular_schedule function was referenced but not implemented in reasoning_types.py. Added the missing helper function to support REGULAR_SCHEDULE batch reasoning type for regular scheduled production batches. Fixes container restart loop in demo-seed-production-batches pod.
This commit is contained in:
@@ -265,3 +265,29 @@ def create_batch_reasoning_customer_order(
|
||||
"ai_assisted": False
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def create_batch_reasoning_regular_schedule(
|
||||
product_name: str,
|
||||
scheduled_quantity: float,
|
||||
production_schedule: str = "daily"
|
||||
) -> Dict[str, Any]:
|
||||
"""Create reasoning data for regular scheduled production"""
|
||||
return {
|
||||
"type": ProductionBatchReasoningType.REGULAR_SCHEDULE.value,
|
||||
"parameters": {
|
||||
"product_name": product_name,
|
||||
"scheduled_quantity": round(scheduled_quantity, 1),
|
||||
"production_schedule": production_schedule
|
||||
},
|
||||
"urgency": {
|
||||
"level": "normal",
|
||||
"ready_by_time": "08:00",
|
||||
"customer_commitment": False
|
||||
},
|
||||
"metadata": {
|
||||
"trigger_source": "orchestrator_auto",
|
||||
"ai_assisted": False
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user