Re-exports§
pub use attachments::AttachmentStore;pub use attachments::AttachmentStoreError;pub use attachments::FileAttachmentStore;pub use attachments::InMemoryAttachmentStore;pub use attachments::StoredAttachment;pub use chronological::BorrowedChronologicalEntry;pub use chronological::BorrowedChronologicalMessage;pub use chronological::BorrowedChronologicalPayload;pub use chronological::ChronologicalEntry;pub use chronological::ChronologicalPayload;pub use chronological::ChronologicalProjection;pub use chronological::visit_turn_view;pub use direct::DirectJsonSchema;pub use direct::DirectLlmClient;pub use direct::DirectLlmError;pub use direct::DirectMessage;pub use direct::DirectOutputSpec;pub use direct::DirectPart;pub use direct::DirectRequest;pub use direct::DirectRole;pub use standard_context_approach::ObservationalMemoryConfig;pub use standard_context_approach::RollingHistoryConfig;pub use standard_context_approach::StandardContextApproach;pub use standard_context_approach::StandardContextApproachKind;pub use tool_registry::ReconfigureError;pub use tool_registry::ToolRegistry;pub use tool_registry::ToolSourceHandle;pub use tool_registry::ToolState;pub use tool_registry::ToolStateEntry;pub use llm::transport::LlmTransportError;pub use llm::transport::ProviderFailure;pub use llm::transport::ProviderFailureKind;pub use model_info::CachedModelCatalog;pub use model_info::FileModelCatalogStore;pub use model_info::MemoryModelCatalogStore;pub use model_info::ModelCatalog;pub use model_info::ModelCatalogSource;pub use model_info::ModelCatalogStore;pub use model_info::ModelInfo;pub use model_info::ModelsDevHttpSource;pub use model_info::ResolvedModelSpec;pub use monitor::MAX_MONITOR_TIMEOUT_MS;pub use monitor::MonitorArmOn;pub use monitor::MonitorEvent;pub use monitor::MonitorRunState;pub use monitor::MonitorSnapshot;pub use monitor::MonitorSpec;pub use monitor::MonitorStatus;pub use monitor::MonitorUpdateBatch;pub use monitor::MonitorWakePolicy;pub use plugin::AckWakeArgs;pub use plugin::AppendSessionNodesRequest;pub use plugin::AppendSessionNodesResult;pub use plugin::AssistantResponseHookContext;pub use plugin::AssistantResponseTransform;pub use plugin::AssistantStreamHookContext;pub use plugin::AssistantStreamTransform;pub use plugin::CheckpointHookContext;pub use plugin::DirectCompletion;pub use plugin::DirectLlmCompletion;pub use plugin::HistoryError;pub use plugin::HistoryRegistrations;pub use plugin::HistoryRewriteMetadata;pub use plugin::HistoryRewriter;pub use plugin::HistoryState;pub use plugin::ModeBeforeLlmCallContext;pub use plugin::ModeExtras;pub use plugin::ModeLlmCallAction;pub use plugin::MonitorAckWakeOp;pub use plugin::MonitorEmptyArgs;pub use plugin::MonitorRegisterSpecsOp;pub use plugin::MonitorRegistrations;pub use plugin::MonitorStartOp;pub use plugin::MonitorStatusOp;pub use plugin::MonitorStopOp;pub use plugin::MonitorTakeUpdatesOp;pub use plugin::OwnedMonitorSpec;pub use plugin::PersistentRuntimeServices;pub use plugin::PluginAction;pub use plugin::PluginActionContext;pub use plugin::PluginActionDef;pub use plugin::PluginActionFailure;pub use plugin::PluginActionInvokeError;pub use plugin::PluginActionKind;pub use plugin::PluginDirective;pub use plugin::PluginError;pub use plugin::PluginFactory;pub use plugin::PluginHost;pub use plugin::PluginOwned;pub use plugin::PluginRegistrar;pub use plugin::PluginRuntimeEvent;pub use plugin::PluginRuntimeEventHook;pub use plugin::PluginSession;pub use plugin::PluginSessionContext;pub use plugin::PluginSessionSnapshot;pub use plugin::PluginSnapshotArtifact;pub use plugin::PluginSnapshotEntry;pub use plugin::PluginSnapshotMeta;pub use plugin::PluginSpec;pub use plugin::PluginSpecFactory;pub use plugin::PromptHookContext;pub use plugin::RegisterSpecsArgs;pub use plugin::RewriteContext;pub use plugin::RewriteTrigger;pub use plugin::RuntimeServices;pub use plugin::SessionAppendNode;pub use plugin::SessionConfigChangedContext;pub use plugin::SessionContextSurface;pub use plugin::SessionCreateRequest;pub use plugin::SessionHandle;pub use plugin::SessionParam;pub use plugin::SessionPlugin;pub use plugin::SessionPluginMode;pub use plugin::SessionReadView;pub use plugin::SessionRelation;pub use plugin::SessionSnapshot;pub use plugin::SessionStartPoint;pub use plugin::SessionStateChangedContext;pub use plugin::SessionToolAccess;pub use plugin::SessionTurnHandle;pub use plugin::SnapshotReader;pub use plugin::SnapshotWriter;pub use plugin::StandardCreateExtras;pub use plugin::StartMonitorArgs;pub use plugin::StopMonitorArgs;pub use plugin::SubagentSessionAuthority;pub use plugin::ToolDiscoveryContext;pub use plugin::ToolDiscoveryContribution;pub use plugin::ToolDiscoveryContributor;pub use plugin::ToolDiscoveryToolContribution;pub use plugin::ToolOutputBudgetConfig;pub use plugin::ToolOutputBudgetMode;pub use plugin::ToolOutputBudgetPluginFactory;pub use plugin::ToolResultProjectionContext;pub use plugin::ToolResultProjector;pub use plugin::TurnContextTransform;pub use plugin::TurnHookContext;pub use plugin::TurnResultHookContext;pub use plugin::TurnResultSummary;pub use plugin::TurnTransformContext;pub use plugin::plugin_action_def;pub use provider::AgentModelSelection;pub use provider::CacheRetention;pub use provider::LlmTimeouts;pub use provider::ProviderComponents;pub use provider::ProviderFactory;pub use provider::ProviderHandle;pub use provider::ProviderModelPolicy;pub use provider::ProviderOptions;pub use provider::ProviderRegistry;pub use provider::ProviderSpec;pub use provider::ProviderState;pub use provider::ProviderThinkingPolicy;pub use provider::ProviderTransport;pub use provider::RequestTimeout;pub use provider::StaticModelPolicy;pub use provider::VariantRequestConfig;pub use provider::build_provider;pub use provider::provider_factory;pub use provider::register_provider_factory;pub use runtime::AssembledTurn;pub use runtime::AssistantOutput;pub use runtime::BackgroundCancelPolicy;pub use runtime::BackgroundClosePolicy;pub use runtime::BackgroundRuntimeHost;pub use runtime::BackgroundTaskAttempt;pub use runtime::BackgroundTaskEvent;pub use runtime::BackgroundTaskFilter;pub use runtime::BackgroundTaskHost;pub use runtime::BackgroundTaskId;pub use runtime::BackgroundTaskKind;pub use runtime::BackgroundTaskOutcome;pub use runtime::BackgroundTaskRecord;pub use runtime::BackgroundTaskRegistration;pub use runtime::BackgroundTaskScope;pub use runtime::BackgroundTaskState;pub use runtime::CodeOutputRecord;pub use runtime::EmbeddedRuntimeBuilder;pub use runtime::EmbeddedRuntimeHost;pub use runtime::EventSink;pub use runtime::ExecutionSummary;pub use runtime::FollowedTurn;pub use runtime::InputItem;pub use runtime::LashRuntime;pub use runtime::LocalBackgroundTaskCancel;pub use runtime::LocalBackgroundTaskHost;pub use runtime::ModeSessionExtension;pub use runtime::ModeSessionExtensionHandle;pub use runtime::ModeTurnExtension;pub use runtime::ModeTurnExtensionHandle;pub use runtime::NoopEventSink;pub use runtime::NoopTurnActivitySink;pub use runtime::OutputState;pub use runtime::ParkedSession;pub use runtime::PersistedSessionState;pub use runtime::Residency;pub use runtime::RuntimeCoreConfig;pub use runtime::RuntimeEnvironment;pub use runtime::RuntimeEnvironmentBuilder;pub use runtime::RuntimeError;pub use runtime::RuntimeHandle;pub use runtime::RuntimeObservation;pub use runtime::SessionStateEnvelope;pub use runtime::SessionStoreCreateRequest;pub use runtime::SessionStoreFactory;pub use runtime::SessionUsageReport;pub use runtime::TerminationPolicy;pub use runtime::TokenLedgerEntry;pub use runtime::TurnActivity;pub use runtime::TurnActivityId;pub use runtime::TurnActivitySink;pub use runtime::TurnContext;pub use runtime::TurnEvent;pub use runtime::TurnInput;pub use runtime::TurnIssue;pub use runtime::UsageReportRow;pub use runtime::UsageTotals;pub use runtime::diff_token_ledger;pub use runtime::diff_usage_reports;pub use runtime_controls::BuiltinMonitorToolPluginFactory;pub use runtime_controls::BuiltinTaskControlsPluginFactory;pub use session::ExecRequest;pub use session::InjectedTurnInput;pub use session::ModeExecutionContext;pub use session::ModeToolBatchItem;pub use session::ModeToolReply;pub use session::Session;pub use session::SessionError;pub use session::TurnInjectionBridge;pub use session::TurnInputInjectionBridge;pub use session_graph::PersistedSessionConfig;pub use session_graph::PersistedTurnState;pub use session_graph::SessionGraph;pub use session_graph::SessionMessageTreeNode;pub use session_graph::SessionNodePayload;pub use session_graph::SessionNodeRecord;pub use session_model::context::PreparedContext;pub use session_model::ModeEvent;pub use session_model::SessionEventRecord;pub use session_model::SessionPolicy;pub use session_model::SessionSpec;pub use store::BlobRef;pub use store::GcReport;pub use store::GraphCommitDelta;pub use store::HydratedSessionCheckpoint;pub use store::PersistedSessionRead;pub use store::RuntimeCommit;pub use store::RuntimeCommitResult;pub use store::RuntimePersistence;pub use store::SessionCheckpoint;pub use store::SessionHead;pub use store::SessionHeadMeta;pub use store::SessionMeta;pub use store::SessionPickerInfo;pub use store::SessionReadScope;pub use store::StoreError;pub use store::VacuumReport;pub use store::load_persisted_session_state;pub use store::load_persisted_session_state_active_path;pub use store::refresh_persisted_session_state;
Modules§
- attachments
- chronological
- direct
- llm
- model_
info - monitor
- plugin
- provider
- Provider components and registry for pluggable LLM backends.
- runtime
- runtime_
controls - Mode-agnostic runtime-control tools (
monitor,tasks_list,tasks_stop). - sansio
- Sans-IO state machine for session turns.
- search
- session
- session_
graph - session_
model - standard_
context_ approach - store
- tool_
dispatch - tool_
registry
Structs§
- Accepted
Injected Turn Input - Attachment
Create Meta - Attachment
Id - Attachment
Meta - Attachment
Ref - Compact
Tool Contract - Conversation
Record - Effect
Id - Opaque identifier linking an effect to its response.
- Error
Envelope - Exec
Response - Execution
Mode - Stable string id for the execution backend that owns a session turn.
- Host
Mode Protocol - Jsonl
Trace Sink - LlmCall
Error - LlmRequest
- LlmResponse
- Message
- A structured message with typed parts for context management.
- Message
Sequence - Mode
Build Input - Mode
Turn Options - Model
Tool Return - Part
- Plugin
Message - Plugin
Stack - Prepared
Prompt - Prompt
Build Input - Prompt
Context - Prompt
Contribution - Prompt
Contribution Gate - Prompt
Contribution Set - Prompt
Fingerprint - Prompt
Layer - Prompt
Panel - Prompt
Request - Prompt
Slot Layer - Prompt
Template - Prompt
Template Section - Prompt
Usage - Exact prompt-usage snapshot from the most recent completed LLM call.
- Rendered
Prompt - Resolved
Prompt Layer - RlmPrint
Image - Sandbox
Message - A message sent from the sandbox to the host during execution.
- Schema
Projection Override - Text
Projection Metadata - Token
Usage - Token usage statistics from an LLM call.
- Tool
Availability Config - Tool
Call - Per-call inputs handed to
ToolProvider::execute. - Tool
Call Output - Tool
Call Record - Tool
Cancellation - Tool
Context - Per-call environment for
ToolProvider::execute. Fields are sealed so the runtime can add capabilities without breaking tool authors. - Tool
Contract - Heavy tool contract resolved only when a prompt or call needs schemas/docs.
- Tool
Definition - Static authoring helper for tools.
- Tool
Discovery Metadata - Tool
Failure - Tool
Manifest - Cheap tool metadata exposed to prompts, catalogs, UI, and availability checks.
- Tool
Result - Tool
Session Control - Tool
Session Model - Tool
Surface - Tool
Surface Build Input - Tool
Surface Contribution - Tool
Surface Entry - Tool
Surface Override - Tool
Task Control - Trace
Attachment - Trace
Context - Trace
Error - Trace
LlmMessage - Trace
LlmRequest - Trace
LlmResponse - Trace
Prompt Component - Trace
Provider Stream Event - Trace
Record - Trace
Runtime Stream Event - Trace
Token Usage - Trace
Tool Spec
Enums§
- Checkpoint
Kind - Image
Media Type - LlmOutput
Part - LlmTerminal
Reason - Media
Type - Message
Origin - Message
Role - Model
Tool Return Part - Part
Kind - Plugin
Surface Event - Prompt
Builtin - Prompt
Response - Prompt
Selection Mode - Prompt
Slot - Prompt
Template Entry - Prune
State - Response
- A response to a previously emitted effect.
- Session
Event - State
Snapshot Event - Tool
Activation - Tool
Availability - Tool
Call Outcome - Tool
Call Status - Tool
Control - Tool
Event - Tool
Execution Mode - How a tool’s invocations should be scheduled relative to other tools in the same batch of model-produced tool calls.
- Tool
Failure Class - Tool
Failure Source - Tool
Output Contract - Tool
Retry Disposition - Tool
Retry Policy - Automatic retry policy for a tool’s execution.
- Tool
Value - Trace
Content Block - Trace
Event - Trace
Level - Trace
Sink Error - Turn
Finish - Turn
Outcome - Turn
Stop
Constants§
Traits§
- Json
Schema - A type which can be described as a JSON Schema document.
- Tool
Provider - Trait for providing tools to the sandbox. Implement this per-project.
- Trace
Sink
Functions§
- append_
assistant_ text_ part - Append a streamed text part to the running assistant text, inserting the right number of blank lines so consecutive parts don’t glue together.
- build_
prompt - build_
tool_ surface - build_
turn - default_
execution_ mode - default_
prompt_ template - execution_
mode_ supported - head_
tail_ truncate - messages_
are_ prompt_ resume_ safe - normalized_
response_ parts - Convert a raw
LlmResponseinto a stream ofLlmOutputParts that downstream code can iterate. When the response only carriesfull_text(provider didn’t populateparts), synthesize a singleTextpart. - prompt_
template_ fingerprint - prompt_
text_ fingerprint - prompt_
tool_ names_ fingerprint - reasoning_
part - Build a Reasoning
Partfrom a reasoning item.metais Some when the item carries provider replay metadata; None for display-only summaries. - resolve_
prompt_ layers - shared_
parts - Wrap a
Vec<Part>for theMessage::partsfield. Use this in struct literals and tests (parts: shared_parts(vec![Part { ... }])) so the call sites stay short and uniform. - turn_
limit_ exhausted_ message - System-level “turn limit reached” message that both protocol
drivers append when their mode_iteration count exceeds
max_turns.
Type Aliases§
- Base
Render Cache - Memoized render of a
MessageSequence’sbase. Shared across the per-iterationMessageSequenceinstances that wrap the same base (typically theSessionGraphCache’s projected messages) so the chat projector’srender_promptwalk happens once per turn instead of once per LLM iteration. - Driver
Action - Driver
Context View - Effect
- Mode
Config - Mode
Preamble - Prepared
Turn Machine - Progress
Sender - Sender for streaming progress messages from tools (e.g. live bash output).
- Projector
Context - Sans
IoTurn Input - Turn
Machine - Turn
Machine Config