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

# Recorded Request • AI Agent SDK

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

# RecordedRequest

> Defined in the [**scripted**](../modules/scripted) module.

<Badge color="blue">AI Agent</Badge>

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 name="model" type="str">
  No description available.
</ResponseField>

<ResponseField name="messages" type="Tuple">
  No description available.
</ResponseField>

<ResponseField name="tools" type="Optional">
  No description available.
</ResponseField>

<ResponseField name="stream" type="bool">
  No description available.
</ResponseField>

<ResponseField name="params" type="Dict[str, Any]">
  No description available.
</ResponseField>

## Methods

<CardGroup cols={2}>
  <Card title="system_prompt()" icon="function" href="../functions/RecordedRequest-system_prompt">
    Content of the first system message, or `None` if there was none.
  </Card>

  <Card title="user_messages()" icon="function" href="../functions/RecordedRequest-user_messages">
    Text content of every user message, in order.
  </Card>

  <Card title="last_user_message()" icon="function" href="../functions/RecordedRequest-last_user_message">
    Text of the most recent user message, or `None`.
  </Card>

  <Card title="tool_names()" icon="function" href="../functions/RecordedRequest-tool_names">
    Names of the tools offered to the model on this turn.
  </Card>

  <Card title="tool_results()" icon="function" href="../functions/RecordedRequest-tool_results">
    Tool-result messages present in this request's history.
  </Card>
</CardGroup>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/model_harness/scripted.py#L139">
  `praisonaiagents/model_harness/scripted.py` at line 139
</Card>
