> ## 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.

# Stop Result • AI Agent SDK

> StopResult: Outcome of a scoped stop, reported to the requesting client.

# StopResult

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

AI Agent

Outcome of a scoped stop, reported to the requesting client.

`pending_cancelled` is a visible, intentional non-outcome: the count of
queued messages drained by a `SESSION` stop, never silently dropped. For
a `TURN` stop it is always `0`.

## Properties

**scope** `StopScope`

No description available.

**turn\_aborted** `bool`

No description available.

**pending\_cancelled** `int`

No description available.

> **Internal & Generic Methods**
>
> * **to\_dict**: Generic utility method.

## Source

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


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