import type OpenAI from 'openai'; import type { AzureOpenAI } from 'openai'; import type { AgentLLMIntegration } from '../types'; import type { OpenAILlmIntegrationConfig } from './types'; /** * Creates an Arvo-compatible LLM Adapter for OpenAI and compatible models (e.g., Azure OpenAI). * * This factory configures an integration that bridges the generic `Arvo` agent runner with the specific * OpenAI API requirements. It includes built-in features for: * * - **Structured Outputs:** Automatically converts Zod schemas provided in `outputFormat` to OpenAI's `json_schema` format. * - **Token Optimization:** Automatically replaces large media payloads (images/files) with placeholder text in the conversational history after they have been processed once to reduce context window usage. * - **Observability:** Instruments calls with OpenInference-compliant OpenTelemetry attributes, including detailed input/output recording and token usage. * - **Safety:** Automatically injects a "tool limit reached" system instruction when the agent exhausts its configured tool budget. * * @param client - An initialized `OpenAI` or `AzureOpenAI` SDK client instance. * @param config - Configuration for model parameters (e.g., temperature, max tokens), cost calculations, and telemetry metadata. * @returns An `AgentLLMIntegration` function ready for use with `createArvoAgent`. */ export declare const openaiLLMIntegration: (client: TClient, config?: OpenAILlmIntegrationConfig) => AgentLLMIntegration; //# sourceMappingURL=index.d.ts.map