Memory Types
Xagent organizes memories into categories to make them more useful and searchable.Memory Categories
Plan Execution Memory
Stores insights from task planning and DAG generation: What’s Stored:- Planning strategies that worked
- Step decomposition approaches
- DAG generation patterns
- Tool selection insights
- Task complexity analysis
- Starting similar tasks
- Planning multi-step workflows
- Selecting execution strategies
Execution Memory
Stores results and learnings from task execution: What’s Stored:- Execution outcomes (success/failure)
- User feedback and corrections
- Tool effectiveness ratings
- Performance bottlenecks
- Error patterns and solutions
- Encountering similar challenges
- Optimizing performance
- Avoiding known issues
ReAct Memory
Stores insights from ReAct (Reasoning-Action) loop execution: What’s Stored:- Reasoning patterns
- Tool usage effectiveness
- Step-by-step execution insights
- Iteration strategies
- Using ReAct execution mode
- Choosing reasoning strategies
- Optimizing tool sequences
General Memory
Stores general insights and user preferences: What’s Stored:- User communication preferences
- Format and style preferences
- Project-specific context
- Domain knowledge patterns
- Behavioral observations
- Personalizing responses
- Adapting communication style
- Understanding user context
Memory Structure
Each memory contains:Core Fields
content (required)- The memory content in natural language
- Structured as clear, actionable insights
- Can include examples and recommendations
- Unique identifier
- UUID format
- Used for referencing specific memories
- Memory category (plan_execution, execution, react, general)
- Determines when memory is retrieved
- Helps filter search results
Metadata Fields
keywords (optional)- List of relevant keywords
- Improves searchability
- Extracted automatically or manually added
- Custom labels for organization
- User-defined classifications
- Enables filtering by topic
- When the memory was created
- Used for time-based filtering
- Helps identify recent vs. old memories
- Additional custom fields
- Flexible key-value pairs
- Stores related information
- Task type
- Tools used
- User ID
- Project name
Memory Search
Semantic Search
When searching for relevant memories:- Embed query - Convert search query to vector
- Similarity search - Find semantically similar memories
- Score results - Rank by relevance
- Filter by category - Only search relevant categories
- Return top-k - Limit results for performance
- Processing large files
- Data optimization techniques
- Performance tips
- Similar tool combinations
Text Search
Falls back to text-based search when:- Embedding model not available
- Vector search fails
- Exact keyword matching needed
- Content field
- Keywords
- Tags
Filter Options
Narrow search results with filters: By CategoryMemory Lifecycle
Creation
Memories are created:- Automatically after task completion
- Manually by users or admins
- Periodically from aggregated insights
Updates
Memories can be updated:- Content refinement - Improve clarity
- Add metadata - Enhance searchability
- Merge duplicates - Combine similar memories
- Adjust scores - Update relevance ratings
Deletion
Memories are deleted:- Manual deletion - User removes specific memories
- Automatic cleanup - Remove old/unused memories
- Privacy requests - “Right to be forgotten”
- Data retention - Per retention policies
Memory Quality
Good Memories
Characteristics:- Clear and specific
- Actionable insights
- Relevant context
- Properly categorized
Poor Memories
Characteristics:- Vague or generic
- Lack context
- Not actionable
- Wrong category
Important Notes
Automatic Management
Memory categories and content are fully managed by Xagent:- Automatic categorization - LLM decides which category to use
- Automatic content generation - LLM creates memory content from task execution
- Automatic tagging - Keywords and tags extracted automatically
- No manual control - Users cannot directly create or edit memories
What Influences Memory
While you can’t directly control memory, your interactions affect what gets stored:- Task patterns - Repeated approaches get recognized and stored
- Explicit preferences - Stated preferences get recorded in general memory
- Success/failure - What works and what doesn’t gets remembered
- Corrections - Your feedback during execution creates learning memories
Next Steps
- Memory Overview - Learn about memory concepts
- Memory Configuration - Configure memory settings
- Building Agents - Create memory-enabled agents