Expand description
§Orchestral Runtime
Agent Protocol control plane, Generic Agent, guarded tools, and context.
Re-exports§
pub use agent_control::AgentControlError;pub use agent_control::AgentControlEvent;pub use agent_control::AgentController;pub use agent_directory::AgentDirectory;pub use agent_directory::AgentDirectoryError;pub use agent_sdk::AgentClient;pub use agent_sdk::AgentRunHandle;pub use agent_sdk::AgentSdkError;pub use agent_sdk::AgentTurn;pub use approval_bridge::AgentApprovalBridge;pub use approval_bridge::ApprovalBridgeError;pub use approval_bridge::InMemoryHostApprovalBroker;pub use exec_process::ExecPollResult;pub use exec_process::ExecProcessError;pub use exec_process::ExecSessionEvent;pub use exec_process::ExecSessionId;pub use exec_process::ExecSessionSnapshot;pub use exec_process::ExecSessionStatus;pub use exec_process::ExecSpawnSpec;pub use exec_process::ExecWaitMode;pub use exec_process::ExecWaitOptions;pub use exec_process::ProcessSupervisor;pub use generic_agent::ContinuationPolicy;pub use generic_agent::GenericAgentConfig;pub use generic_agent::InternalGenericAgentProvider;pub use generic_agent::ModelCostPolicy;pub use generic_agent_checkpoint::replay_generic_agent_checkpoint;pub use generic_agent_checkpoint::AppendGenericCheckpointOutcome;pub use generic_agent_checkpoint::CommandCheckpoint;pub use generic_agent_checkpoint::CreateGenericRunOutcome;pub use generic_agent_checkpoint::GenericAgentCheckpointProjection;pub use generic_agent_checkpoint::GenericAgentCheckpointStore;pub use generic_agent_checkpoint::GenericAgentRunRegistration;pub use generic_agent_checkpoint::GenericCheckpointDraft;pub use generic_agent_checkpoint::GenericCheckpointError;pub use generic_agent_checkpoint::GenericCheckpointEvent;pub use generic_agent_checkpoint::GenericCheckpointEventId;pub use generic_agent_checkpoint::GenericCheckpointPhase;pub use generic_agent_checkpoint::GenericCheckpointRecord;pub use generic_agent_checkpoint::GenericLoopBoundary;pub use generic_agent_checkpoint::GenericModelContextTrace;pub use generic_agent_checkpoint::GenericModelObservation;pub use generic_agent_checkpoint::GenericObservedToolCall;pub use generic_agent_checkpoint::InMemoryGenericAgentCheckpointStore;pub use generic_agent_checkpoint::StoredGenericAgentRun;pub use pty_process::PtyProcessError;pub use pty_process::PtyProcessId;pub use pty_process::PtyProcessManager;pub use pty_process::PtyReadResult;pub use pty_process::PtySpawnSpec;pub use session_context::AgentSessionCompactor;pub use session_context::AgentSessionContextEngine;pub use session_context::AgentSessionSummarizer;pub use session_context::DeterministicExtractiveSessionSummarizer;pub use session_context::JsonSizeTokenMeter;pub use session_context::SessionCompactionGroup;pub use session_context::SessionCompactionInput;pub use session_context::SessionCompactionPolicy;pub use session_context::SessionContextError;pub use session_context::SessionContextProjection;pub use session_context::SessionContextRequest;pub use session_context::SessionSummarizerDescriptor;pub use skill::LoadedSkillSet;pub use skill::SkillConflict;pub use skill::SkillLoadOutcome;pub use skill::SkillRoot;pub use skill::SkillRuntime;pub use skill::SkillRuntimeError;pub use tool_runtime::tool_permission_decision_digest;pub use tool_runtime::AgentToolRuntime;pub use tool_runtime::DescriptorPermissionPolicy;pub use tool_runtime::GuardedToolExecution;pub use tool_runtime::GuardedToolExecutor;pub use tool_runtime::GuardedToolResult;pub use tool_runtime::GuardedToolRuntime;pub use tool_runtime::ToolArtifactError;pub use tool_runtime::ToolArtifactStore;pub use tool_runtime::ToolOutcomeRecoveryError;pub use tool_runtime::ToolPermissionDecision;pub use tool_runtime::ToolPermissionPolicy;pub use tool_runtime::ToolRuntimeError;pub use tool_runtime::WorkspacePermissionPolicy;pub use tools::GuardedMcpServerConfig;pub use tools::McpServerConnectionManager;pub use tools::McpServerHealth;pub use tools::McpToolsAdapterError;pub use tools::McpToolsAdapterRegistry;pub use tools::StdioMcpSandboxPolicy;pub use tools::StdioMcpTransportFactory;pub use tools::MCP_STDIO_SANDBOX_PROFILE;pub use workflow_strategy::workflow_plan_digest;pub use workflow_strategy::workflow_step_call_id;pub use workflow_strategy::RunBoundGuardedToolPort;pub use workflow_strategy::WorkflowExecutionError;pub use workflow_strategy::WorkflowExecutionRequest;pub use workflow_strategy::WorkflowExecutionSnapshot;pub use workflow_strategy::WorkflowExecutionStrategy;
Modules§
- agent_
control - Host-side control plane for one provider binding.
- agent_
directory - Runtime registry for provider-neutral Agent session connectors.
- agent_
sdk - Provider-neutral SDK surface over the Agent Protocol control plane.
- api
- approval_
bridge - Host-owned bridge from Agent approval requests to Tool capabilities.
- exec_
process - Run-scoped process sessions behind the model-visible unified exec Tools.
- generic_
agent - Provider-neutral Generic Agent implementation.
- generic_
agent_ checkpoint - Provider-private write-ahead journal for the in-process Generic Agent.
- pty_
process - Run-scoped PTY process ownership for guarded Agent Tools.
- session_
context - Replay-derived model context for the Generic Agent.
- session_
history - Read-only session discovery derived from authoritative journals.
- skill
- Skill Context Plane for the Generic Agent.
- tool_
runtime - Guarded, provider-neutral Tool execution boundary.
- tools
- Host-guarded Tool implementations and MCP-to-Tool adapter.
- workflow_
strategy - Guarded workflow execution built on the existing Plan/DAG/Executor assets.
Structs§
- Artifact
Publish Request - A Host-local file selected by an Agent for publication to remote users.
workspace_rootis an authorization boundary, not merely a path hint. - Blob
Head - Blob metadata fetched from physical backend.
- BlobId
- Strongly-typed blob id.
- Blob
Meta - Blob metadata.
- Blob
Read - Read result.
- Blob
Write Request - Write request.
- Component
Registry - Context
Recovery Policy - Recovery after a definite context-capacity rejection, separate from transport retries. Recovery first reduces output reservation to its floor, then reprojects/compacts whole exchanges under a smaller input ceiling. Zero disables recovery. Rejections consume model steps; successful generation resets this count.
- DagNode
- A node in the execution DAG
- Execution
Dag - Execution DAG - supports dynamic modification
- Execution
Progress Event - Realtime execution progress event.
- Executor
- Deterministic DAG scheduler. Side effects remain owned by the injected port.
- Executor
Context - Executor context
- Hook
Dispatch Error - Hook
Error - Hook
Execution Policy - Hook
Registry - InMemory
Blob Store - Model
Retry Policy - Host-owned retries within one logical model step. A zero retry count disables retries. Once an attempt has produced text, a Tool call, or Finish, it cannot be retried by this policy. Usage-only failures retain their reported usage; strict token or cost ceilings still prohibit retrying incomplete accounting.
- Model
Token Meter Descriptor - Immutable identity of the token accounting strategy used to build model context. The descriptor is bound into the Generic Agent configuration digest so recovery cannot silently select history with a different meter.
- Normalized
Plan - Normalized plan ready for execution
- Plan
- Execution plan - the primary asset of the system
- Plan
Normalizer - Plan normalizer - the stability core
- Resolved
Artifact - Short-lived, provider-consumable access to one immutable Artifact.
- Runtime
Build Request - Runtime
Hook Context - Runtime
Hook Event Envelope - SpiMeta
- Step
- A single step in the execution plan
- Step
Execution Request - Fully resolved request presented to a run-scoped step execution boundary.
- StepId
- Strongly-typed Step ID.
- Step
IoBinding - Data binding from an upstream task key to this step’s input key.
- Workflow
Id - Identity of one concrete Plan/DAG execution.
- Working
Set - Weakly typed, bounded data plane for DAG step bindings.
Enums§
- Artifact
Publish Error - Artifact
Resolve Error - Blob
IoError - Storage-neutral blob errors.
- Execution
Result - Execution result
- FixError
- Fix errors
- Hook
Dispatch Mode - Hook
Failure Policy - Node
State - Node state in the execution DAG
- Normalize
Error - Normalization errors
- Scope
- Scope of a working-set value.
- SpiError
- Step
Kind - Step type - distinguishes control semantics
- Step
Outcome - Result returned by the mandatory run-scoped
StepExecutionPort. Input and approval remain Agent control-plane concerns, not DAG outcomes. - Validation
Error - Validation errors
Traits§
- Artifact
Publisher - Storage-neutral publication capability that Agent adapters can expose through their native tool/function mechanism.
- Artifact
Resolver - Storage-neutral bridge from durable Artifact identity to temporary Agent access. Concrete R2/S3/filesystem implementations belong in plugins.
- Blob
Store - Blob store abstraction.
- Execution
Progress Reporter - Sink interface for execution progress reporting.
- Model
Token Meter - Model-family token accounting boundary. A production adapter must provide either its exact tokenizer or a documented conservative upper bound over the provider-specific serialized request input.
- Plan
Fixer - Plan fixer trait
- Plan
Validator - Plan validator trait
- Runtime
Component Factory - Runtime
Hook - Step
Execution Port - The mandatory run-scoped execution seam for every executable DAG Step.
Type Aliases§
- Blob
Stream - Streaming blob body.