Skip to content

ResultBase

Defined in: packages/sdk/src/result.ts:61

The fields every run result carries.

readonly context: Context

Defined in: packages/sdk/src/result.ts:65

The whole conversation, earlier history included, ready for continueRun().


readonly cost: 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.


readonly messages: readonly Message[]

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.


readonly steps: number

Defined in: packages/sdk/src/result.ts:74

How many model calls the run made.


readonly usage: 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.