Skip to main content

Module tool

Module tool 

Source

Structs§

Tool

Enums§

ToolCategory
Classifies a tool by its side effects, used to determine whether the tool requires user approval before execution.

Functions§

build_string_params_schema
Build a JSON Schema for a tool that accepts string parameters. required_params: list of (name, description) pairs for required parameters. optional_params: list of (name, description, default_value) for optional parameters.
execute_tool_call
make_tool
Convenience constructor for creating a Tool with a string-parameters schema.
optional_arg
Extract an optional string argument from the tool arguments map. Returns None if the key is missing.
require_arg
Extract a required string argument from the tool arguments map. Returns an error message if the key is missing.

Type Aliases§

BoxFuture