> ## 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**](../modules/protocols) module.

<Badge color="blue">AI Agent</Badge>

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

<ResponseField name="scope" type="StopScope">
  No description available.
</ResponseField>

<ResponseField name="turn_aborted" type="bool">
  No description available.
</ResponseField>

<ResponseField name="pending_cancelled" type="int">
  No description available.
</ResponseField>

<Accordion title="Internal & Generic Methods">
  * **to\_dict**: Generic utility method.
</Accordion>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L7343">
  `praisonaiagents/gateway/protocols.py` at line 7343
</Card>
