/** * Agent-Handler Integration * * Integration with @ameshkin/agent-handler package (non-TSX, server-side only). * Uses agent-handler's server APIs for AI execution. */ import type { AgentIntegration, AgentTools } from "./agent-integration"; import OpenAI from "openai"; /** * Agent integration options */ export interface AgentHandlerIntegrationOptions { /** * OpenAI assistant ID (optional, uses chat completions if not provided) */ assistantId?: string; /** * Maximum iterations for agent loop */ maxIterations?: number; /** * Additional tools to provide to agent */ additionalTools?: Record; /** * Repository root for file operations */ repoRoot?: string; /** * OpenAI API key (optional, uses OPENAI_API_KEY env var if not provided) */ apiKey?: string; /** * Model to use (default: gpt-4-turbo-preview) */ model?: string; } /** * Create agent tools from repository context * * This creates tools that work with the repository filesystem. */ export declare function createAgentToolsFromRepo(repoRoot: string): AgentTools; /** * Create agent integration using OpenAI API directly * * This uses OpenAI's chat completions API with tool calling for AI execution. */ export declare function createAgentIntegrationFromHandler(options?: AgentHandlerIntegrationOptions): Promise; /** * Check if OpenAI is available (always true if API key is set) */ export declare function isAgentHandlerAvailable(): Promise; /** * Get OpenAI client if available */ export declare function getAgentHandler(): Promise; /** * List available assistants from OpenAI * Note: This requires OpenAI API access and may need additional setup */ export declare function listAgentHandlerAssistants(): Promise>; //# sourceMappingURL=agent-handler-integration.d.ts.map