Available on crate feature
managed-agents-preview only.Expand description
Sessions: provision, retrieve, list, archive, delete.
A session is a running agent instance within an environment. Each session references an agent (by ID or pinned to a version) and an environment, and maintains conversation history across multiple interactions.
Structs§
- Cache
Creation Usage - Prompt-cache write tokens, split by ephemeral TTL.
- Create
Session Request - Request body for
POST /v1/sessions. - Create
Session Request Builder - Builder for
CreateSessionRequest. - List
Sessions Params - Optional knobs for
Sessions::list. - Session
- A Managed Agents session.
- Session
Agent - Snapshot of an agent’s configuration at the moment a session was
created. Mirrors
Agentbut is pinned – later edits to the agent don’t change a session’s recorded snapshot. - Session
Stats - Wall-clock and active-runtime statistics for a session.
- Session
Usage - Cumulative token usage on a session.
- Sessions
- Namespace handle for the Sessions API.
- Update
Session Request - Request body for
Sessions::update. All fields optional with merge-patch semantics: omit a field to preserve.
Enums§
- Agent
Ref - Reference to an agent: either a string ID (latest version) or a
pinned
{type, id, version}object. - Session
Status - Session lifecycle status.