Summarizes conversation history to fit within token constraints, attempting to preserve key information.
The array of conversation messages to summarize.
The desired maximum token count for the summary.
Information about the model for which the summary is being prepared.
Optional preserveImportantMessages: booleanIf true, attempt to identify and keep important messages verbatim.
A summary (which might be a single system message or a condensed list of messages), and metadata about the summarization.
Summarizes retrieved RAG context to fit token limits, ideally preserving source attribution if possible.
The RAG context to summarize.
The desired maximum token count for the summarized context.
Information about the model.
Optional preserveSourceAttribution: booleanIf true, attempt to retain source information in the summary.
The summarized text and metadata.
Optional analyzeAnalyzes a piece of content for its relevance and importance within the current execution context. This can be used to prioritize which content to include or how to emphasize it.
The text content to analyze.
The current execution context.
Information about the model.
Scores and extracted metadata.
Interface for utility AI services that assist the PromptEngine with complex content processing tasks like summarization and relevance analysis, specifically tailored for prompt construction needs. This is a focused interface used internally by the PromptEngine. IPromptEngineUtilityAI