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

# Script Exhausted • AI Agent SDK

> ScriptExhausted: Raised when an agent asks a :class:`ScriptedModel` for an unscripted reply.

# ScriptExhausted

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

AI Agent

Raised when an agent asks a :class:`ScriptedModel` for an unscripted reply.

Usually means the script is one reply short: after a tool call the agent
comes back for a follow-up answer.

Attributes:
model: The double's model id.
request\_index: 1-based index of the request that had no scripted reply.
scripted: How many replies the script held.

## Constructor

**message** `str` *required*

No description available.

## Source

> **[View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/model_harness/scripted.py#L78)**
>
> `praisonaiagents/model_harness/scripted.py` at line 78


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