RunResult
What run resolves to once the server has ended the turn.
Properties
Section titled “Properties”| Property | Type | Stability | Presence | Description |
|---|---|---|---|---|
finalText |
string | undefined |
required | The text of the turn’s last agentMessage item (in first-opened order) that completed and is not "commentary": an absent or unknown messagePhase on a completed item reads as "finalAnswer". undefined when the turn produced no such item. |
|
items |
readonly object[] |
required | The turn’s items as the fold holds them at the end, in first-opened order. | |
outcome |
TurnOutcome |
required | The server-authored outcome; a failed or cancelled turn still resolves. | |
turnId |
string |
required | ||
usage |
TokenUsage | undefined |
required | The turn’s token usage from turn/completed; absent on other outcomes. |
Source
clients/sdk-ts/src/facade/run.ts:53
{ "kind": "Interface", "canonicalPath": "RunResult"}