Include the order id in escalate_to_human ticket summaries

main
No checks reported

Commit

Jaxson Sprinkles1mo ago

Escalation tickets often lacked the order the customer was asking about, forcing the human agent to ask again. escalate_to_human now takes an optional order_id; when given and the summary doesn't already name it, the summary is prefixed with "Order <id>: ". The tool description, summary field description and system prompt ask the model to pass and name the id.

Eval cases es2/es3 now check the summary contains the order id.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Entire-Checkpoint: 01M4KJXM4GD7KBK5H77R3EMRM8