Scripted Reply • AI Agent SDK

ScriptedReply: One assistant turn the double should return.

ScriptedReply

Defined in the scripted 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 {"prompt_tokens": .., "completion_tokens": ..}` to report, for tests that assert on token accounting.

Properties

ResponseField Optional[str]

No description available.

ResponseField Tuple[ScriptedToolCall, ...]

No description available.

ResponseField Optional[str]

No description available.

ResponseField Optional

No description available.

Methods

Source

View on GitHub

praisonaiagents/model_harness/scripted.py at line 113