/** * OpenAI Function Calling Adapter * * Converts tool definitions to OpenAI's function calling format. * * @module ai/adapters/openai */ import type { OpenAITool, ManifestBuilder, ToolResult } from '../types'; /** * Tool input parameters */ export interface ToolInput { [key: string]: unknown; } /** * Get all tools in OpenAI format */ export declare function getOpenAITools(): OpenAITool[]; /** * Execute a tool call and return the result * * Note: AI frameworks send untyped JSON. We trust the AI to provide correctly-shaped data * and rely on runtime validation within the builder methods to catch errors. */ export declare function executeOpenAITool(builder: ManifestBuilder, functionName: string, args: ToolInput): ToolResult; /** * Create a handler for OpenAI tool calls */ export declare function createOpenAIHandler(builder: ManifestBuilder): { tools: OpenAITool[]; execute: (functionName: string, args: ToolInput) => ToolResult; }; //# sourceMappingURL=openai.d.ts.map