Documentation

Sessions

Conversations that belong to users, not agents.

A Session is one conversation owned by an Application and a User. It does not belong to the agent that answers: each input names its agent, and the history stays when you switch or replace agents.

  • The first input can create a Session. Keep the returned session_id to continue it.
  • Submitting an input returns an acknowledgement: the input is accepted, not yet answered. Read the conversation state for the reply.
  • Sessions are retained, so a user can continue on another device of the same Application.

Runs

Each accepted input starts a run: one agent response, including every model step and tool call inside it. Runs are the unit of pricing.

On this page