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

# Scripted Reply • AI Agent SDK

> ScriptedReply: One assistant turn the double should return.

# ScriptedReply

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

AI Agent

One assistant turn the double should return.

Attributes:
text: Assistant message content, or `None` for a pure tool-call turn.
tool\_calls: Tool calls to emit alongside/instead of `text`.
finish\_reason: Overrides the finish reason ("tool\_calls" when the turn
has tool calls, otherwise "stop").
usage: Optional `&#123;"prompt_tokens": .., "completion_tokens": ..&#125;` to
report, for tests that assert on token accounting.

## Properties

**text** `Optional[str]`

No description available.

**tool\_calls** `Tuple[ScriptedToolCall, ...]`

No description available.

**finish\_reason** `Optional[str]`

No description available.

**usage** `Optional`

No description available.

## Methods

> **[resolved\_finish\_reason()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/ScriptedReply-resolved_finish_reason.md)**
>
> The finish reason to report for this turn.

## Source

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


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