RunResult
What run returns once the server has ended the turn.
Class in muse_code
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
turn_id |
str |
The turn the turn/start ack named. |
outcome |
TurnOutcome |
The server-authored outcome; a failed or cancelled turn still returns. |
final_text |
str | None |
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". None when the turn produced no such item. |
items |
Tuple[FoldedItem, ...] |
The turn’s items as the fold holds them at the end, in first-opened order. |
usage |
TokenUsage | None |
The turn’s token usage from turn/completed; None on other outcomes. |
Source
clients/sdk-py/src/muse_code/facade/run.py:55