---
title: "AgentMessageItem"
---

A message routed between agents in a multi-agent session


## Fields

| Field                                                                                                                                          | Type                                                                                                                                           | Required                                                                                                                                       | Description                                                                                                                                    | Example                                                                                                                                        |
| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `agent`                                                                                                                                        | [OptionalNullable[components.Agent]](../components/agent.mdx)                                                                                   | :heavy_minus_sign:                                                                                                                             | N/A                                                                                                                                            |                                                                                                                                                |
| `author`                                                                                                                                       | *str*                                                                                                                                          | :heavy_check_mark:                                                                                                                             | N/A                                                                                                                                            |                                                                                                                                                |
| `content`                                                                                                                                      | List[[components.AgentMessageItemContentUnion](../components/agentmessageitemcontentunion.mdx)]                                                 | :heavy_check_mark:                                                                                                                             | N/A                                                                                                                                            |                                                                                                                                                |
| `id`                                                                                                                                           | *OptionalNullable[str]*                                                                                                                        | :heavy_minus_sign:                                                                                                                             | N/A                                                                                                                                            |                                                                                                                                                |
| `recipient`                                                                                                                                    | *str*                                                                                                                                          | :heavy_check_mark:                                                                                                                             | N/A                                                                                                                                            |                                                                                                                                                |
| `type`                                                                                                                                         | [components.TypeAgentMessage](../components/typeagentmessage.mdx)                                                                               | :heavy_check_mark:                                                                                                                             | N/A                                                                                                                                            |                                                                                                                                                |
| `__pydantic_extra__`                                                                                                                           | Dict[str, *Nullable[Any]*]                                                                                                                     | :heavy_minus_sign:                                                                                                                             | N/A                                                                                                                                            | \{<br/>"author": "/root/worker",<br/>"content": [<br/>\{<br/>"text": "Task complete.",<br/>"type": "input_text"<br/>}<br/>],<br/>"recipient": "/root",<br/>"type": "agent_message"<br/>} |