Module tool_builder

Module tool_builder 

Source
Expand description

Simplified tool creation with the builder pattern.

§Tool Builder Module

This module provides a simplified way to create tools without implementing the Tool trait manually. Users can create tools by providing a name, description, parameters, and a function to execute.

Structs§

ToolBuilder
A builder for creating tools with a simplified API.

Traits§

FromValue
Trait for converting JSON values to Rust types. This enables automatic type inference in the ftool API.

Type Aliases§

ToolFunction
Type alias for the tool execution function. This is a boxed async function that takes JSON arguments and returns a ToolResult.