Skip to main content

Module registry

Module registry 

Source
Expand description

Tool registry and function declarations

Re-exports§

pub use interfaces::McpBridge;
pub use interfaces::PtySessionControl;
pub use interfaces::SharedRegistry;
pub use interfaces::ToolCatalog;
pub use interfaces::ToolMetrics;
pub use interfaces::ToolRegistryApi;
pub use interfaces::ToolResilience;
pub use interfaces::ToolSecurity;

Modules§

file_helpers
File operation helpers and the edit_file tool
interfaces
Trait interfaces for ToolRegistry subsystems.
labels

Structs§

AdaptiveTimeoutTuning
Tuning parameters for adaptive timeout adjustment.
ApprovalPattern
Tracks approval patterns to learn from user decisions
ApprovalRecorder
Records tool approval decisions for learning
ExecutionPolicySnapshot
Runtime execution policy snapshot for a single tool call.
HarnessContext
Thread-safe context for harness execution.
HarnessContextSnapshot
Snapshot of harness context for execution records.
JustificationExtractor
Extractor for tool justifications from agent decision context
JustificationManager
Manager for approval pattern learning and justifications
PtySessionGuard
RAII guard to automatically decrement session count when dropped
PtySessionManager
ResiliencyContext
Internal state for resiliency tracking across tool categories.
SessionToolCatalogState
ShellPolicyChecker
ToolExecutionError
ToolExecutionHistory
Thread-safe execution history for recording tool executions.
ToolExecutionOutcome
Canonical execution result for shared runtime adapters.
ToolExecutionRecord
Record of a single tool execution for diagnostics.
ToolExecutionRequest
Canonical tool execution request routed through ToolRegistry kernel.
ToolFailureTracker
Tracks consecutive failures for a tool to enable circuit breaking.
ToolGroup
A namespace-derived grouping of tools, computed from ToolDefinition::namespace. Purely a client-side view for search results and diagnostics.
ToolJustification
Justification provided by the agent for executing a high-risk tool
ToolLatencyStats
Tracks latency samples for adaptive timeout calculation.
ToolMetadata
ToolPreflightOutcome
ToolRegistration
ToolRegistry
ToolRiskContext
Context for risk assessment
ToolRiskScorer
Risk scorer for tool execution
ToolTaskTelemetrySnapshot
Aggregated tool-use telemetry for one repository task.
ToolTimeoutPolicy
Policy for tool execution timeouts per category.

Enums§

CgpRuntimeMode
Runtime mode for CGP pipeline selection.
ExecSettlementMode
Controls how unified exec calls should settle before returning to the caller.
RiskLevel
Risk level classification for tools
ToolCatalogSource
ToolErrorType
ToolHandler
ToolNetworkAccess
Trusted registration metadata, never inferred from model-facing tool names.
ToolPermissionDecision
ToolSource
Source of the tool (internal, MCP, ACP, etc.)
ToolTelemetryEvent
Telemetry events emitted during tool execution
ToolTimeoutCategory
Categories of tools with different timeout requirements.
WorkspaceTrust
Workspace trust level

Functions§

native_cgp_tool_factory
sandbox_policy_from_runtime_config
tool_groups
Fold tool definitions into namespace-derived groups.
wrap_registered_native_tool

Type Aliases§

NativeCgpToolFactory
SessionModelTools
ToolExecutorFn
ToolProgressCallback
Callback for tool progress and output streaming