Expand description
Shared agent contracts for conversation state, runtime protocol, extension SPI, and storage.
Re-exports§
pub use thread::gen_message_id;pub use thread::CheckpointReason;pub use thread::Message;pub use thread::MessageMetadata;pub use thread::Role;pub use thread::RunMeta;pub use thread::Thread;pub use thread::ThreadChangeSet;pub use thread::ThreadMetadata;pub use thread::ToolCall;pub use thread::Version;pub use thread::Visibility;pub use io::AgentEvent;pub use io::ResumeDecisionAction;pub use io::RunRequest;pub use io::RuntimeInput;pub use io::RuntimeOutput;pub use io::ToolCallDecision;pub use runtime::build_read_only_context_from_step;pub use runtime::reduce_state_actions;pub use runtime::Action;pub use runtime::ActivityContext;pub use runtime::ActivityManager;pub use runtime::AfterInferenceContext;pub use runtime::AfterToolExecuteContext;pub use runtime::AgentBehavior;pub use runtime::AnyStateAction;pub use runtime::BeforeInferenceContext;pub use runtime::BeforeToolExecuteContext;pub use runtime::DecisionReplayPolicy;pub use runtime::Extensions;pub use runtime::NoOpBehavior;pub use runtime::Phase;pub use runtime::PhaseContext;pub use runtime::PhasePolicy;pub use runtime::ReadOnlyContext;pub use runtime::RunAction;pub use runtime::RunContext;pub use runtime::RunDelta;pub use runtime::RunEndContext;pub use runtime::RunStartContext;pub use runtime::ScopeContext;pub use runtime::SerializedStateAction;pub use runtime::StateActionDecodeError;pub use runtime::StateActionDeserializerRegistry;pub use runtime::StateScopeRegistry;pub use runtime::StepContext;pub use runtime::StepEndContext;pub use runtime::StepOutcome;pub use runtime::StepStartContext;pub use runtime::StoppedReason;pub use runtime::StreamResult;pub use runtime::SuspendTicket;pub use runtime::Suspension;pub use runtime::SuspensionResponse;pub use runtime::TerminationReason;pub use runtime::TokenUsage;pub use runtime::ToolCallAction;pub use runtime::ToolCallContext;pub use runtime::ToolCallOutcome;pub use runtime::ToolCallProgressSink;pub use runtime::ToolCallProgressState;pub use runtime::ToolCallProgressStatus;pub use runtime::ToolCallProgressUpdate;pub use runtime::ToolExecution;pub use runtime::ToolExecutionEffect;pub use runtime::ToolExecutionRequest;pub use runtime::ToolExecutionResult;pub use runtime::ToolExecutor;pub use runtime::ToolExecutorError;pub use runtime::ToolGate;pub use runtime::ToolProgressState;pub use runtime::TOOL_CALL_PROGRESS_ACTIVITY_TYPE;pub use runtime::TOOL_CALL_PROGRESS_SCHEMA;pub use runtime::TOOL_CALL_PROGRESS_TYPE;pub use runtime::TOOL_PROGRESS_ACTIVITY_TYPE;pub use runtime::TOOL_PROGRESS_ACTIVITY_TYPE_LEGACY;pub use storage::paginate_in_memory;pub use storage::paginate_runs_in_memory;pub use storage::Committed;pub use storage::MessagePage;pub use storage::MessageQuery;pub use storage::MessageWithCursor;pub use storage::RunOrigin;pub use storage::RunPage;pub use storage::RunQuery;pub use storage::RunReader;pub use storage::RunRecord;pub use storage::RunStore;pub use storage::RunStoreError;pub use storage::RunWriter;pub use storage::SortOrder;pub use storage::ThreadHead;pub use storage::ThreadListPage;pub use storage::ThreadListQuery;pub use storage::ThreadReader;pub use storage::ThreadStore;pub use storage::ThreadStoreError;pub use storage::ThreadSync;pub use storage::ThreadWriter;pub use storage::VersionPrecondition;pub use transport::Identity;pub use transport::Transcoder;
Modules§
- io
- Runtime input/output contracts and command DTOs.
- runtime
- Runtime contracts grouped by domain boundaries.
- scope
- storage
- Persistent Thread storage contracts and abstractions.
- thread
- Persistent thread model: messages, changesets, and metadata.
- transport
- Transport-level stream conversion contracts.
Macros§
- declare_
plugin_ states - Declares the
StateSpectypes managed by a plugin behavior. - impl_
shared_ agent_ builder_ methods - Builder methods for pure-data fields shared by both BaseAgent and AgentDefinition.
Enums§
- State
Scope - Lifecycle scope of a
StateSpectype.
Traits§
Type Aliases§
- RunPolicy
- Per-run scope and execution policy.