Skip to main content

Module registry

Module registry 

Source
Expand description

Tool registry and function declarations

Modules§

file_helpers
File operation helpers and the edit_file tool
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.
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
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
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§

classify_error
Classify an anyhow::Error into a ToolErrorType.
native_cgp_tool_factory
wrap_registered_native_tool

Type Aliases§

NativeCgpToolFactory
ToolExecutorFn
ToolProgressCallback
Callback for tool progress and output streaming