llmgleam/tools
Values
pub fn decode_arguments(
call: types.ToolCall,
using decoder: decode.Decoder(arguments),
) -> Result(arguments, json.DecodeError)
Decodes and validates a tool call’s JSON arguments.
pub fn function(
name name: String,
description description: String,
parameters parameters: schema.Parameters,
) -> types.Tool
Defines a function tool using a JSON Schema for its arguments.
Strict schema validation is requested on providers that expose per-tool strict mode. The generated schema marks every property as required.
pub fn function_with_strictness(
name name: String,
description description: String,
parameters parameters: schema.Parameters,
strict strict: Bool,
) -> types.Tool
Defines a function tool and explicitly controls strict schema validation.
pub fn output(
call: types.ToolCall,
output: String,
) -> types.ToolOutput
pub fn output_for(
call_id: String,
output: String,
) -> types.ToolOutput