/** * Anthropic Memory API Adapter * * A2A 메모리를 Anthropic의 Claude Memory API 형식으로 변환합니다. * Anthropic Memory API가 공개되면 실제 연동으로 전환 가능합니다. * * @see https://www.anthropic.com/news/contextual-retrieval */ import type { Memory, MemoryCreateInput, MemoryCategory } from '../types/index.js'; /** * Anthropic Memory API 형식의 메모리 타입 */ export interface AnthropicMemory { id: string; content: string; type: 'user_preference' | 'learned_info' | 'conversation_context'; source: 'user' | 'assistant' | 'system'; created_at: string; updated_at: string; metadata?: Record; } /** * Anthropic Memory API 응답 형식 (페이지네이션) */ export interface AnthropicMemoryListResponse { data: AnthropicMemory[]; has_more: boolean; first_id?: string; last_id?: string; } /** * A2A 메모리를 Anthropic 형식으로 변환 */ export declare function toAnthropicFormat(memory: Memory): AnthropicMemory; /** * Anthropic 형식을 A2A 메모리 생성 입력으로 변환 */ export declare function fromAnthropicFormat(anthropic: AnthropicMemory): MemoryCreateInput; /** * A2A 카테고리 → Anthropic 타입 매핑 * * A2A 카테고리: * - error_solution: 에러와 해결책 * - code_pattern: 코드 패턴 * - decision: 아키텍처 결정 * - context: 대화 컨텍스트 * - project_knowledge: 프로젝트 지식 * - convention: 규칙/컨벤션 * - learning: 학습 내용 * * Anthropic 타입: * - user_preference: 사용자 선호도 * - learned_info: 학습된 정보 * - conversation_context: 대화 컨텍스트 */ export declare function mapCategoryToAnthropicType(category: MemoryCategory): AnthropicMemory['type']; /** * Anthropic 타입 → A2A 카테고리 매핑 */ export declare function mapAnthropicTypeToCategory(type: AnthropicMemory['type']): MemoryCategory; /** * A2A 메모리 배열을 Anthropic 응답 형식으로 변환 */ export declare function toAnthropicBatch(memories: Memory[]): AnthropicMemoryListResponse; /** * Anthropic 응답 형식을 A2A 메모리 생성 입력 배열로 변환 */ export declare function fromAnthropicBatch(response: AnthropicMemoryListResponse): MemoryCreateInput[]; //# sourceMappingURL=anthropic.d.ts.map