Module tools

Source
Expand description

Tool abstractions for FerricLink Core

This module provides the core abstractions for tools that can be used by language models and other components.

Structs§

FunctionTool
A simple tool that wraps a function
RunnableTool
A tool that can be used as a runnable
ToolCall
A tool call made by a language model
ToolCollection
A collection of tools
ToolResult
A tool result returned by a tool
ToolSchema
Schema for a tool’s input parameters

Traits§

BaseTool
Base trait for all tools
Tool
Trait for tools that can be invoked with a single input

Functions§

function_tool
Helper function to create a simple function tool
function_tool_with_schema
Helper function to create a tool with custom schema