UNPKG

route-claudecode

Version:

Advanced routing and transformation system for Claude Code outputs to multiple AI providers

38 lines 1.13 kB
/** * Anthropic Input Format Processor * Handles incoming requests in Anthropic API format */ import { InputProcessor, BaseRequest } from '@/types'; /** * Architecture Note: Preprocessing has been moved to the routing layer. * Input layer now only handles basic format validation and parsing. * All transformations and patches are handled by the Enhanced Routing Engine. */ export declare class AnthropicInputProcessor implements InputProcessor { readonly name = "anthropic"; /** * Check if this processor can handle the request */ canProcess(request: any): boolean; /** * Process the incoming request */ process(request: any): Promise<BaseRequest>; /** * Validate the request format */ validate(request: any): boolean; /** * Check if tools are in Anthropic format */ private isAnthropicToolsFormat; /** * Normalize messages to internal format */ private normalizeMessages; /** * Normalize content to handle both string and array formats */ private normalizeContent; } //# sourceMappingURL=processor.d.ts.map