Skip to main content

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

str
No description available.
Tuple
No description available.
Optional
No description available.
bool
No description available.
Dict[str, Any]
No description available.

Methods

system_prompt()

Content of the first system message, or None if there was none.

user_messages()

Text content of every user message, in order.

last_user_message()

Text of the most recent user message, or None.

tool_names()

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 GitHub

praisonaiagents/model_harness/scripted.py at line 139