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 built-in tool inventory into provider-specific schemas.

Built-in tool schemas are owned by the gestura-core-tools domain crate; we re-export them here to preserve stable public paths.

Structs§

ProviderToolSchemas
Provider-specific tool schema bundles.

Functions§

build_mcp_tool_schemas
Build provider tool schemas from dynamically-discovered MCP tools.
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.