ResultBase
Defined in: packages/sdk/src/result.ts:61
The fields every run result carries.
Extended by
Section titled “Extended by”AwaitingApprovalResultBudgetResultClarificationRequestedResultDoneResultEndedResultErrorResultNoProgressResultStoppedResult
Properties
Section titled “Properties”context
Section titled “context”
readonlycontext:Context
Defined in: packages/sdk/src/result.ts:65
The whole conversation, earlier history included, ready for continueRun().
readonlycost:Cost
Defined in: packages/sdk/src/result.ts:72
The cost of every model call, summed. It is unknown if any call’s cost is. A run that made no call costs an exact
0 with basis provider, so adding it to another cost keeps that cost’s basis.
messages
Section titled “messages”
readonlymessages: readonlyMessage[]
Defined in: packages/sdk/src/result.ts:63
The messages this run added: the input, if any, then every response and tool result, in order.
readonlysteps:number
Defined in: packages/sdk/src/result.ts:74
How many model calls the run made.
readonlyusage:Usage
Defined in: packages/sdk/src/result.ts:67
The tokens of every model call, summed.
These docs are licensedCC BY 4.0. Thelicence text is in the repository.