Expand description
Tool registry and function declarations
Re-exports§
pub use interfaces::McpBridge;pub use interfaces::PtySessionControl;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§
- 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
Group - A namespace-derived grouping of tools, computed from
ToolDefinition::namespace. Purely a client-side view for search results and diagnostics. - 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
Task Telemetry Snapshot - Aggregated tool-use telemetry for one repository task.
- 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
Network Access - Trusted registration metadata, never inferred from model-facing tool names.
- 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§
- native_
cgp_ tool_ factory - sandbox_
policy_ from_ runtime_ config - tool_
groups - Fold tool definitions into namespace-derived groups.
- wrap_
registered_ native_ tool
Type Aliases§
- Native
CgpTool Factory - Session
Model Tools - Tool
Executor Fn - Tool
Progress Callback - Callback for tool progress and output streaming