mcp-subagents
Version:
Multi-Agent AI Orchestration via Model Context Protocol - Access specialized CLI AI agents (Aider, Qwen, Gemini, Goose, etc.) with intelligent fallback and configuration
15 lines • 707 B
TypeScript
import type { AgentName } from '../types/index.js';
/**
* Handles API errors, specifically focusing on 429 Too Many Requests errors
* @param error - The error object from the API call
* @param agentName - The name of the agent making the API call
* @returns A formatted error message
*/
export declare function handleApiError(error: unknown, agentName: AgentName): string;
/**
* Example function that simulates an API call that might return a 429 error
* @param agentName - The name of the agent making the call
* @returns A promise that might reject with a 429 error
*/
export declare function simulateApiCall(agentName: AgentName): Promise<string>;
//# sourceMappingURL=api-error-handler.d.ts.map