pub struct FunctionToolConfig {
pub name: String,
pub description: String,
pub input_schema: Option<Value>,
pub output_schema: Option<Value>,
pub is_long_running: bool,
pub require_confirmation: bool,
pub origin: ToolOriginKind,
}Expand description
Configuration of a function tool.
A confirmation provider is the typed provider argument of
FunctionTool::with_confirmation_provider / StreamingFunctionTool::with_confirmation_provider.
Fields§
§name: StringThe tool name.
description: StringThe tool description sent to the model.
input_schema: Option<Value>Overrides the input schema inferred from the handler’s argument type.
output_schema: Option<Value>Overrides the output schema inferred from the handler’s result type.
is_long_running: boolWhether the tool is a long-running operation (adds a note to the declaration).
require_confirmation: boolWhether every call requires a Human-in-the-Loop confirmation.
origin: ToolOriginKindWhat Tool::origin_kind reports for the built tool (default ToolOriginKind::Local,
as the analytics plugin classifies a function tool). gadk’s skill tools set
ToolOriginKind::Skill here instead.
Implementations§
Trait Implementations§
Source§impl Clone for FunctionToolConfig
impl Clone for FunctionToolConfig
Source§impl Default for FunctionToolConfig
impl Default for FunctionToolConfig
Source§fn default() -> Self
fn default() -> Self
Every field at its zero value except origin, which is
ToolOriginKind::Local.