> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# SessionOutcome

> The settled result of one turn.

The settled result of one `run()` turn.

## Properties

**events** `SessionEvent[]` *required*

**Type:** `SessionEvent[]`

Every typed event of the turn, in order.

**output** `T` *required*

The parsed structured output, when `output` was given. Reading it throws
when the turn stopped without `end_turn` and so produced no output.

**result** `PromptResult` *required*

The raw ACP `session/prompt` result (usage, `_meta`, …).

**stopReason** `StopReason` *required*

Why the turn ended (`end_turn`, `cancelled`, `refusal`, …).

**text** `string` *required*

The agent's accumulated message text for the turn.

**toolCalls** `ToolCall[]` *required*

**Type:** `ToolCall[]`

Final merged snapshots of the turn's tool calls, in first-seen order.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.