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
strNo description available.
TupleNo description available.
OptionalNo description available.
boolNo description available.
Dict[str, Any]No description available.
Methods
Content of the first system message, or `None` if there was none.
Text content of every user message, in order.
last_user_message()Text of the most recent user message, or `None`.
Names of the tools offered to the model on this turn.
tool_results()Tool-result messages present in this request’s history.
Source
View on GitHubpraisonaiagents/model_harness/scripted.py at line 139