Expand description
Tool registry and function declarations
Modules§
- file_
helpers - File operation helpers and the edit_file tool
- labels
Structs§
- Adaptive
Timeout Tuning - Tuning parameters for adaptive timeout adjustment.
- Approval
Pattern - Tracks approval patterns to learn from user decisions
- Approval
Recorder - Records tool approval decisions for learning
- Execution
Policy Snapshot - Runtime execution policy snapshot for a single tool call.
- Harness
Context - Thread-safe context for harness execution.
- Harness
Context Snapshot - Snapshot of harness context for execution records.
- Justification
Extractor - Extractor for tool justifications from agent decision context
- Justification
Manager - Manager for approval pattern learning and justifications
- PtySession
Guard - RAII guard to automatically decrement session count when dropped
- PtySession
Manager - Resiliency
Context - Internal state for resiliency tracking across tool categories.
- Session
Tool Catalog State - Shell
Policy Checker - Tool
Execution Error - Tool
Execution History - Thread-safe execution history for recording tool executions.
- Tool
Execution Outcome - Canonical execution result for shared runtime adapters.
- Tool
Execution Record - Record of a single tool execution for diagnostics.
- Tool
Execution Request - Canonical tool execution request routed through ToolRegistry kernel.
- Tool
Failure Tracker - Tracks consecutive failures for a tool to enable circuit breaking.
- Tool
Justification - Justification provided by the agent for executing a high-risk tool
- Tool
Latency Stats - Tracks latency samples for adaptive timeout calculation.
- Tool
Metadata - Tool
Preflight Outcome - Tool
Registration - Tool
Registry - Tool
Risk Context - Context for risk assessment
- Tool
Risk Scorer - Risk scorer for tool execution
- Tool
Timeout Policy - Policy for tool execution timeouts per category.
Enums§
- CgpRuntime
Mode - Runtime mode for CGP pipeline selection.
- Exec
Settlement Mode - Controls how unified exec calls should settle before returning to the caller.
- Risk
Level - Risk level classification for tools
- Tool
Catalog Source - Tool
Error Type - Tool
Handler - Tool
Permission Decision - Tool
Source - Source of the tool (internal, MCP, ACP, etc.)
- Tool
Telemetry Event - Telemetry events emitted during tool execution
- Tool
Timeout Category - Categories of tools with different timeout requirements.
- Workspace
Trust - Workspace trust level
Functions§
- classify_
error - Classify an
anyhow::Errorinto aToolErrorType. - native_
cgp_ tool_ factory - wrap_
registered_ native_ tool
Type Aliases§
- Native
CgpTool Factory - Tool
Executor Fn - Tool
Progress Callback - Callback for tool progress and output streaming