import { PublicMcpError, InternalMcpError } from './mcp.error'; /** * Agent not found error. */ export declare class AgentNotFoundError extends PublicMcpError { readonly agentId: string; constructor(agentId: string); } /** * Agent execution error - wraps errors during agent execution. */ export declare class AgentExecutionError extends InternalMcpError { readonly agentId: string; readonly originalError?: Error; constructor(agentId: string, cause?: Error); getInternalMessage(): string; } /** * Agent loop exceeded error - thrown when an agent exceeds maximum iterations. */ export declare class AgentLoopExceededError extends PublicMcpError { readonly agentId: string; readonly maxIterations: number; readonly actualIterations: number; constructor(agentId: string, maxIterations: number, actualIterations?: number); } /** * Agent timeout error - thrown when an agent exceeds its timeout. */ export declare class AgentTimeoutError extends PublicMcpError { readonly agentId: string; readonly timeoutMs: number; constructor(agentId: string, timeoutMs: number); } /** * Agent visibility error - thrown when an agent tries to invoke another * agent it doesn't have visibility to. */ export declare class AgentVisibilityError extends PublicMcpError { readonly requestingAgentId: string; readonly targetAgentId: string; constructor(requestingAgentId: string, targetAgentId: string); } /** * Agent LLM error - thrown when the LLM adapter fails. */ export declare class AgentLlmError extends InternalMcpError { readonly agentId: string; readonly originalError?: Error; constructor(agentId: string, cause?: Error); getInternalMessage(): string; } /** * Agent configuration error - thrown when an agent has invalid configuration. */ export declare class AgentConfigurationError extends PublicMcpError { readonly agentId?: string; readonly configErrors: string[]; constructor(message: string, options?: { agentId?: string; errors?: string[]; }); } /** * Agent not configured error - thrown when an agent doesn't have an LLM adapter. */ export declare class AgentNotConfiguredError extends InternalMcpError { readonly agentName: string; constructor(agentName: string); } /** * Agent tool not found error - thrown when a tool is not found in the agent's scope. */ export declare class AgentToolNotFoundError extends InternalMcpError { readonly agentName: string; readonly toolName: string; readonly availableTools: string[]; constructor(agentName: string, toolName: string, availableTools: string[]); } //# sourceMappingURL=agent.errors.d.ts.map