Skip to content
reaatechREAATECH

reaatech/structured-function-calling-ai

0Last commit: May 18, 2026GitHub →

These packages provide a unified framework for defining, validating, and executing LLM-compatible tools using Zod schemas. They allow you to standardize tool definitions once and deploy them across multiple LLM providers or MCP-compliant clients without rewriting your integration logic. The system centers on a provider-agnostic registry and a middleware-based execution engine that handles schema enforcement, retries, and telemetry consistently across all tool calls.

Packages

7 packages

@reaatech/structured-function-calling-ai-adapter-anthropic

pending npm
Normalizes tool definitions and execution results between provider-agnostic formats and Anthropic's specific tool-use schema. It provides utility functions to map between these formats and requires `@reaatech/structured-function-calling-ai-core` as a runtime dependency.
status
awaiting publish

@reaatech/structured-function-calling-ai-adapter-google

pending npm
Normalizes tool definitions and function calls between provider-agnostic formats and Google Gemini's specific schema requirements. It provides utility functions to map tool declarations, incoming calls, and execution results, including schema adjustments for Gemini compatibility.
status
awaiting publish

@reaatech/structured-function-calling-ai-adapter-openai

pending npm
Normalizes tool definitions and execution results between a provider-agnostic format and OpenAI’s specific function-calling schema. It provides utility functions to parse JSON arguments, serialize results, and map tool definitions, requiring the `@reaatech/structured-function-calling-ai-core` package as a dependency.
status
awaiting publish

@reaatech/structured-function-calling-ai-cli

pending npm
Scaffold, validate, and dry-run AI tool definitions via a CLI or a set of exported utility functions. It requires `@reaatech/structured-function-calling-ai-core` and `@reaatech/structured-function-calling-ai-engine` to execute and validate tool definitions.
status
awaiting publish

@reaatech/structured-function-calling-ai-core

pending npm
Defines type-safe AI tool interfaces using Zod schemas and provides a `ToolRegistry` class to manage their execution. It includes a utility function to convert these Zod schemas into JSON Schema formats compatible with OpenAI or standard draft-07 requirements.
status
awaiting publish

@reaatech/structured-function-calling-ai-engine

pending npm
Provides a `ToolExecutor` class that manages the lifecycle of AI tool calls, including Zod schema validation, retry logic, and circuit breaking via a composable middleware pipeline. It wraps a tool registry to execute functions with built-in telemetry, error handling, and exponential backoff.
status
awaiting publish

@reaatech/structured-function-calling-ai-mcp-server

pending npm
Exposes a `ToolRegistry` as a Model Context Protocol (MCP) server, allowing MCP clients to discover and execute registered functions. It provides an `McpToolServer` class that wraps the `@modelcontextprotocol/sdk` to handle tool registration, schema conversion, and transport management.
status
awaiting publish

Comments

Sign in with GitHub to comment and vote.

Loading comments…