create-ai-chat-context-experimental
Version:
Phase 2: TypeScript rewrite - AI Chat Context & Memory System with conversation extraction and AICF format support (powered by aicf-core v2.1.0).
46 lines • 1.48 kB
TypeScript
/**
* This file is part of create-ai-chat-context-experimental.
* Licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).
* See LICENSE file for details.
*/
/**
* Action Extractor
* Extracts AI actions from conversation summary
* October 2025
*/
import type { Message, ConversationSummary, AIAction } from '../types/index.js';
import type { Result } from '../types/index.js';
/**
* Extract AI actions using priority-based approach
* PRIORITY 1: Use conversation summary (full content)
* PRIORITY 2: Extract from individual messages (fallback)
*/
export declare class ActionExtractor {
/**
* Extract AI actions from messages and summary
*
* @param messages - Array of messages
* @param summary - Conversation summary (optional)
* @returns Result with AIAction[] or error
*/
extract(messages: Message[], summary: ConversationSummary | null): Result<AIAction[]>;
/**
* Extract actions from conversation summary
* @param summary - Conversation summary
* @returns AIAction[]
*/
private extractFromSummary;
/**
* Extract actions from individual messages
* @param messages - Array of messages
* @returns AIAction[]
*/
private extractFromMessages;
/**
* Detect action type from content
* @param content - Action content
* @returns Action type
*/
private detectActionType;
}
//# sourceMappingURL=ActionExtractor.d.ts.map