Skip to content

AgentResult

Defined in: scoring/agents.ts:60

Result from an agent execution

T = unknown

cost: number

Defined in: scoring/agents.ts:70

Actual cost incurred (in your cost units)


optional data: T

Defined in: scoring/agents.ts:64

Result data (provider-specific)


optional error: string

Defined in: scoring/agents.ts:66

Error message if failed


optional escalate: boolean

Defined in: scoring/agents.ts:68

Should router escalate to next agent?


optional jobId: string

Defined in: scoring/agents.ts:72

For async agents: job ID to poll for completion


success: boolean

Defined in: scoring/agents.ts:62

Whether the task was completed successfully