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

# StopReason

> Why a turn ended (ACP's on the result).

Why a turn ended (ACP's `stopReason` on the `session/prompt` result).

```typescript
const StopReason: { Cancelled: "cancelled"; EndTurn: "end_turn"; MaxTokens: "max_tokens"; MaxTurnRequests: "max_turn_requests"; Refusal: "refusal" }
```


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