Skip to main content

FunctionDeclaration

Type Alias FunctionDeclaration 

Source
pub type FunctionDeclaration = ToolDefinition;
Expand description

A tool definition describing a callable function.

This is a type alias for ToolDefinition from core types, maintaining backward compatibility with existing code that uses FunctionDeclaration.

Aliased Type§

pub struct FunctionDeclaration {
    pub name: String,
    pub description: String,
    pub parameters: Option<Value>,
}

Fields§

§name: String

Name of the function

§description: String

Description of what the function does

§parameters: Option<Value>

JSON Schema describing the function parameters