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

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

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

<ParamField query="message" type="str" required={true}>
  No description available.
</ParamField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/model_harness/scripted.py#L78">
  `praisonaiagents/model_harness/scripted.py` at line 78
</Card>
