/** * Base Adapter - Abstract base class for all agent system adapters * * Provides sensible defaults so adapter authors only need to implement * the core `executeAgent` method. Everything else works out of the box. * * @module BaseAdapter * @version 1.0.0 */ import type { IAgentAdapter, AdapterConfig, AdapterCapabilities, AgentPayload, AgentContext, AgentResult, AgentInfo } from '../types/agent-adapter'; export declare abstract class BaseAdapter implements IAgentAdapter { abstract readonly name: string; abstract readonly version: string; protected config: AdapterConfig; protected ready: boolean; protected registeredAgents: Map; /** Override to declare what your adapter supports */ get capabilities(): AdapterCapabilities; initialize(config: AdapterConfig): Promise; shutdown(): Promise; isReady(): boolean; abstract executeAgent(agentId: string, payload: AgentPayload, context: AgentContext): Promise; listAgents(): Promise; isAgentAvailable(agentId: string): Promise; healthCheck(): Promise<{ healthy: boolean; details?: string; }>; /** * Register an agent as available through this adapter. * Adapters call this during init or discovery to declare their agents. */ protected registerLocalAgent(agent: Omit): void; /** * Remove an agent from the registry */ protected unregisterAgent(agentId: string): void; /** * Create a standard success result */ protected successResult(data: unknown, executionTimeMs?: number): AgentResult; /** * Create a standard error result */ protected errorResult(code: string, message: string, recoverable?: boolean, nativeError?: unknown): AgentResult; /** * Ensures the adapter is initialized before use */ protected ensureReady(): void; } //# sourceMappingURL=base-adapter.d.ts.map