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

# Thread Result • AI Agent SDK

> ThreadResult: Outcome of an agent/gateway-initiated thread creation (Issue #3987).

# ThreadResult

> Defined in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

AI Agent

Outcome of an agent/gateway-initiated thread creation (Issue #3987).

Every call resolves to exactly one :data:`ThreadStatus`, so the caller
always gets a typed answer rather than a hard error — in particular a
channel that cannot thread returns `unsupported` rather than raising, and
the caller falls back to the parent channel. This mirrors the
:class:`ReactionResult` contract.

Attributes:
status: The outcome (`ok` / `unsupported` / `failed` /
`no_route`).
target: The resolved parent target the thread was opened under.
thread\_id: The new thread/topic id, populated only when
`status == "ok"`. Callers compose `"&lt;target&gt;:&lt;thread_id&gt;"` to
route subsequent sends into it.
detail: Optional model-readable explanation.

## Properties

**status** `ThreadStatus`

No description available.

**target** `str`

No description available.

**thread\_id** `str`

No description available.

**detail** `Optional[str]`

No description available.

## Methods

> [card] [ok()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/ThreadResult-ok.md)
>
> Whether a thread was opened (`status == 'ok'`).

> [card] [as\_dict()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/ThreadResult-as_dict.md)
>
> Convert to a serializable dictionary for the tool return value.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L3527)
>
> `praisonaiagents/gateway/protocols.py` at line 3527


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