Skip to main content

CONSOLIDATION_PROMPT

Constant CONSOLIDATION_PROMPT 

Source
pub const CONSOLIDATION_PROMPT: &str = r#"<operation_mode>consolidation_analysis</operation_mode>

<task>
Analyze the provided memories for potential consolidation actions:
- Identify memories that should be merged (related content, same topic)
- Identify memories that should be archived (outdated, superseded)
- Detect contradictions that need resolution
</task>

<output_format>
{
  "merge_candidates": [
    {
      "memory_ids": ["id1", "id2"],
      "reason": "Why these should be merged",
      "suggested_merged_content": "Combined content summary"
    }
  ],
  "archive_candidates": [
    {
      "memory_id": "id",
      "reason": "Why this should be archived"
    }
  ],
  "contradictions": [
    {
      "memory_ids": ["id1", "id2"],
      "type": "direct|implicit|temporal|scope",
      "description": "Nature of the contradiction",
      "resolution": "supersede|merge|flag_for_review",
      "confidence": float
    }
  ],
  "summary": "Overall consolidation recommendation"
}
</output_format>"#;
Expand description

Operation mode for consolidation analysis.

Used when analyzing memories for potential merging or archival.