RoutingResult
Defined in: scoring/router.ts:30
Type Parameters
Section titled “Type Parameters”T = unknown
Properties
Section titled “Properties”agent:
string
Defined in: scoring/router.ts:34
Which agent handled the task
attempts
Section titled “attempts”attempts:
number
Defined in: scoring/router.ts:40
Number of attempts made
result
Section titled “result”result:
AgentResult<T>
Defined in: scoring/router.ts:36
The result from the agent
success
Section titled “success”success:
boolean
Defined in: scoring/router.ts:32
Whether the task was successfully completed
totalCost
Section titled “totalCost”totalCost:
number
Defined in: scoring/router.ts:38
Total cost incurred
trail:
object[]
Defined in: scoring/router.ts:42
Trail of agents tried
agent:
string
error?
Section titled “error?”
optionalerror:string
success
Section titled “success”success:
boolean