Skip to main content

Module tool_call_parser

Module tool_call_parser 

Source
Expand description

Tool call parsing and schema validation for LLM output.

Provides ToolCallParser which scans raw LLM text for JSON tool-call objects, extracts structured ToolCall values, and validates them against registered ToolSchema definitions.

Structs§

ToolCall
A parsed (and optionally validated) tool invocation.
ToolCallBuilder
Fluent builder for constructing ToolCall values programmatically.
ToolCallParser
Parses tool calls from LLM text and validates them against registered schemas.
ToolParameter
A single parameter in a tool schema.
ToolSchema
Full schema for a single tool.

Enums§

ParseError
Errors that can occur while parsing or validating a tool call.