Skip to main content

Crate codewhale_tools

Crate codewhale_tools 

Source

Structs§

ConfiguredToolSpec
A ToolSpec together with its runtime configuration.
ToolCall
A tool invocation request before it has been validated and dispatched.
ToolCallRuntime
Manages concurrent tool execution via a read/write lock.
ToolInvocation
A validated tool invocation ready to be handled.
ToolRegistry
Central registry that maps tool names to their specs and handlers.
ToolResult
Result of a tool execution.
ToolSpec
Specification that describes a tool available in the registry.

Enums§

ApprovalRequirement
Approval requirement for a tool.
FunctionCallError
Errors that can occur during tool dispatch and execution.
ToolCallSource
Identifies where a tool call originated from.
ToolCapability
Capabilities that a tool may have or require.
ToolError
Errors that can occur during tool execution.

Traits§

ToolHandler
Trait implemented by concrete tool handlers.

Functions§

optional_bool
Helper to extract an optional bool field with default.
optional_str
Helper to extract an optional string field from JSON input.
optional_u64
Helper to extract an optional u64 field with default.
required_str
Helper to extract a required string field from JSON input.
required_u64
Helper to extract a required u64 field from JSON input.