Expand description
Server- and host-facing contract types.
These types are not needed by a typical in-process agent. They form the
authoritative boundary that agent-server / agent-service-host build
on: per-turn outcome and summary contracts, the durable continuation
envelope, the audit-record protocol, the listen/erased tool plumbing, and
the worker-context reconstruction factory.
They are grouped here so that agent_sdk:: autocomplete and the docs.rs
front page stay dominated by the newcomer-facing surface (see
prelude). Everything here remains a stable, public re-export — moving
a name into advanced is a path change, not a removal.
Structs§
- Agent
Continuation - Continuation state that allows resuming the agent loop.
- Audit
Provenance - Provider / model provenance for an audit record.
- Continuation
Envelope - Versioned wrapper around
AgentContinuation. - Host
Dependencies - Runtime dependencies created by the host when a worker is started.
- Listen
Execution Context - Context captured for listen/execute tools while awaiting confirmation.
- Local
Event Authority - Default event authority for local/CLI execution.
- Tool
Audit Record - Single authoritative audit record for one tool-call lifecycle event.
- Tool
Audit Record Params - Arguments for building a
ToolAuditRecordviaToolAuditRecord::new. - Turn
Summary - Structured server-facing outcome metadata for a single turn.
Enums§
- Erased
Tool Status - Type-erased status for the agent loop.
- Listen
Stop Reason - Reason for stopping a listen session.
- Listen
Tool Update - Update emitted from a
listen()stream. - Tool
Audit Outcome - Lifecycle outcome for a single tool call.
- Turn
Outcome - Outcome of running a single turn.
Constants§
- CONTINUATION_
VERSION - Current envelope version.
Traits§
- Erased
Async Tool - Type-erased async tool trait for registry storage.
- Erased
Listen Tool - Type-erased listen/execute tool trait for registry storage.
- Erased
Tool - Type-erased tool trait for registry storage.
- Event
Authority - Authority that governs how events are wrapped in envelopes.
- Execution
Context Factory - Abstraction for how hosts build a
crate::tools::ToolContextfrom durable seeds and fresh runtime dependencies. - Listen
Execute Tool - A tool whose runtime has two phases: