AgentResult
Defined in: scoring/agents.ts:60
Result from an agent execution
Type Parameters
Section titled “Type Parameters”T = unknown
Properties
Section titled “Properties”cost:
number
Defined in: scoring/agents.ts:70
Actual cost incurred (in your cost units)
optionaldata:T
Defined in: scoring/agents.ts:64
Result data (provider-specific)
error?
Section titled “error?”
optionalerror:string
Defined in: scoring/agents.ts:66
Error message if failed
escalate?
Section titled “escalate?”
optionalescalate:boolean
Defined in: scoring/agents.ts:68
Should router escalate to next agent?
jobId?
Section titled “jobId?”
optionaljobId:string
Defined in: scoring/agents.ts:72
For async agents: job ID to poll for completion
success
Section titled “success”success:
boolean
Defined in: scoring/agents.ts:62
Whether the task was completed successfully