Module schemas

Module schemas 

Source
Expand description

Provider-specific tool schemas (OpenAI / Anthropic / Gemini)

Gestura’s pipeline keeps a text prompt format for portability, but some LLM providers require tool definitions to be passed out-of-band (as JSON schema) to enable structured tool calls.

This module converts Gestura’s ToolDefinition inventory into provider- specific schemas.

Structs§

ProviderToolSchemas
Provider-specific tool schema bundles.

Functions§

build_provider_tool_schemas
Build provider tool schemas for a set of tool definitions.
normalize_openai_parameters_schema
Normalize a JSON Schema into the stricter top-level object shape required by OpenAI-compatible function calling APIs.