/** * Response-builder helpers extracted from index.ts. * * These pure(‑ish) functions build the text fragments that are appended to * MCP tool responses so the agent always has essential context (thread ID, * time, uptime, operating-mode reminders, etc.). */ import type { VoiceAnalysisResult } from "../integrations/openai/voice-emotion.js"; import type { ToolResult } from "../lib/types.js"; /** Tokenize text and strip stop words, returning up to 10 meaningful keywords. */ export declare function extractSearchKeywords(text: string): string; /** * Build human-readable analysis tags from a VoiceAnalysisResult. * Fields that are null / undefined / empty are silently skipped. */ export declare function buildAnalysisTags(analysis: VoiceAnalysisResult | null): string[]; /** * Full reminders β€” only used for wait_for_instructions and start_session * responses where the agent needs the complete context for decision-making. * * @param threadId Current Telegram thread ID (if any). * @param sessionStartedAt Epoch ms when the current session started. * @param autonomousMode Whether the agent is in autonomous orchestrator mode. */ export declare function getReminders(threadId: number | undefined, sessionStartedAt: number, autonomousMode: boolean): string; /** * Medium context β€” lightweight reminder with thread ID, time, uptime, * and mode. Omits memory auto-injection, drive content, and template * overrides to keep the payload lean. * * Used for conversational-intent messages where full context is overkill. * * @param threadId Current Telegram thread ID (if any). * @param sessionStartedAt Epoch ms when the current session started. * @param autonomousMode Whether the agent is in autonomous mode. */ export declare function getMediumReminder(threadId: number | undefined, sessionStartedAt: number, autonomousMode: boolean): string; /** * Minimal context β€” appended to regular tool responses to avoid bloating * the conversation context. Only includes thread ID and timestamp. * * @param threadId Current Telegram thread ID (if any). * @param sessionStartedAt Epoch ms when the current session started. */ export declare function getShortReminder(threadId: number | undefined, sessionStartedAt: number): string; /** * Build the standardised maintenance-mode response returned when a server * update is in progress. The poll-loop handler uses * this, so it lives here to avoid duplication. * * @param effectiveThreadId Current Telegram thread ID. * @param shortReminder Pre-computed short reminder suffix. */ export declare function buildMaintenanceResponse(effectiveThreadId: number, shortReminder: string): ToolResult; //# sourceMappingURL=response-builders.d.ts.map