Conversations API

The Conversations API stores conversation messages and exposes related agent runs. The Runs API starts and controls execution, including project work without a conversation.

Conversations API

Durable messaging

Conversations Messages

Durable execution

Runs Events

Core model

LayerStoresUse it for
Durable messagingConversations, messages, branches, read state, and input requests.What the user sees.
Durable executionRun identity, status, events, and results.What the system did.

Why both exist

Messages store the visible thread. Runs record execution, progress and outcomes. Saving a message and starting a run are separate operations.

Contents

PageUse it to understand
Durable messagingConversation state and message structure.
Durable executionAgent, task, and workflow runs, events, and supported resume behavior.
Architecture and flowHow a stored message, a run request, and a final answer connect.
Run lineageHow conversations, messages, runs, and child work connect.
Events and streamingSSE, AG-UI events, durable events, and notifications.
AuthorizationAccess boundaries for conversations and runs.
Connect an agentRuntime contract for developer-provided agents.