Expand description
Tool execution and user interaction. Tool execution framework with built-in tools.
Re-exports§
pub use crate::client::models::Tool as LLMTool;
Structs§
- Answer
- Answer to a question - simplified to just question text and answer values.
- AskFor
Permissions Tool - Tool that requests permission from the user for sensitive actions.
- AskUser
Questions Request - Request to ask user questions.
- AskUser
Questions Response - Response containing answers to questions.
- AskUser
Questions Tool - Tool that asks the user structured questions.
- Display
Config - Configuration for how a tool should be displayed in the UI.
- Display
Result - Formatted display result from a tool.
- Pending
Permission Info - Information about a pending permission request for UI display.
- Pending
Question Info - Information about a pending interaction for UI display.
- Permission
Grant - A grant that was approved for the session.
- Permission
Registry - Registry for managing permission requests and session-level grants.
- Permission
Request - Request for permission to perform an action.
- Permission
Response - Response to a permission request.
- Tool
Batch Result - Batch result containing all results from parallel tool executions.
- Tool
Context - Context provided to tools during execution.
- Tool
Definition - Tool definition for the LLM.
- Tool
Executor - Manages tool execution with support for parallel batch execution.
- Tool
Registry - Thread-safe registry for managing available tools.
- Tool
Request - Request to execute a tool.
- Tool
Result - Result from a single tool execution.
- User
Interaction Registry - Registry for managing pending user interactions.
- Validation
Error - Validation error response.
- Validation
Error Detail - Detail about a single validation error.
- WebSearch
Tool - Tool that performs web searches using Claude’s built-in capability.
Enums§
- Permission
Category - Categories of permissions that can be requested.
- Permission
Error - Error types for permission operations.
- Permission
Scope - Scope of the permission grant.
- Question
- Question types supported by the tool.
- Registry
Error - Error type for tool registry operations.
- Result
Content Type - Content type for formatting tool results.
- Tool
Result Status - Result status from tool execution.
- Tool
Type - Tool type classification.
- User
Interaction Error - Error types for user interaction operations.
- Validation
Error Code - Error codes for validation failures.
Constants§
- ASK_
FOR_ PERMISSIONS_ TOOL_ DESCRIPTION - AskForPermissions tool description constant.
- ASK_
FOR_ PERMISSIONS_ TOOL_ NAME - AskForPermissions tool name constant.
- ASK_
FOR_ PERMISSIONS_ TOOL_ SCHEMA - AskForPermissions tool JSON schema constant.
- ASK_
USER_ QUESTIONS_ TOOL_ DESCRIPTION - AskUserQuestions tool description constant.
- ASK_
USER_ QUESTIONS_ TOOL_ NAME - AskUserQuestions tool name constant.
- ASK_
USER_ QUESTIONS_ TOOL_ SCHEMA - AskUserQuestions tool JSON schema constant.
- WEB_
SEARCH_ TOOL_ DESCRIPTION - Web Search tool description constant.
- WEB_
SEARCH_ TOOL_ NAME - Web Search tool name constant.
- WEB_
SEARCH_ TOOL_ SCHEMA - Web Search tool JSON schema constant.
Traits§
- Executable
- Trait for executable tools.