{"$defs":{"TraceEvent":{"additionalProperties":false,"properties":{"kind":{"enum":["customer","agent","tool_call","tool_result","human_correction"],"title":"Kind","type":"string"},"content":{"maxLength":4000,"minLength":1,"title":"Content","type":"string"}},"required":["kind","content"],"title":"TraceEvent","type":"object"}},"additionalProperties":false,"properties":{"external_id":{"maxLength":120,"minLength":1,"title":"External Id","type":"string"},"workflow":{"enum":["return","exchange","refund","order_change","accounting_reconciliation","private_credit_review","investment_banking","private_equity","equity_research","hedge_fund_research","wealth_management","banking_operations","insurance_review","trading_operations"],"title":"Workflow","type":"string"},"events":{"items":{"$ref":"#/$defs/TraceEvent"},"maxItems":100,"minItems":1,"title":"Events","type":"array"},"policy":{"maxLength":8000,"minLength":1,"title":"Policy","type":"string"},"initial_state":{"additionalProperties":true,"title":"Initial State","type":"object"},"final_state":{"additionalProperties":true,"title":"Final State","type":"object"},"outcome":{"enum":["success","failure","unknown"],"title":"Outcome","type":"string"},"synthetic":{"title":"Synthetic","type":"boolean"},"redaction_attested":{"title":"Redaction Attested","type":"boolean"}},"required":["external_id","workflow","events","policy","outcome","synthetic","redaction_attested"],"title":"Trace","type":"object"}