Recorded Request • AI Agent SDK

RecordedRequest: What the agent actually sent to the model on one turn.

RecordedRequest

Defined in the scripted module.

AI Agent

What the agent actually sent to the model on one turn.

Attributes: model: Model id the request named. messages: The full message list, system prompt first. tools: Tool schemas offered on this turn, or `None. stream: Whether the agent asked for a streaming response. params: Every completion parameter the agent actually sent, for assertions on tool_choice, response_format, temperature` and the like. Parameters left unset never appear.

Properties

ResponseField str

No description available.

ResponseField Tuple

No description available.

ResponseField Optional

No description available.

ResponseField bool

No description available.

ResponseField Dict[str, Any]

No description available.

Methods

Source

View on GitHub

praisonaiagents/model_harness/scripted.py at line 139