agents.memory_v2.simple_memory_agent_deepseekยถ

SimpleMemoryAgent that works with DeepSeek - avoiding broken imports.

This is a working version of SimpleMemoryAgent that: 1. Uses DeepSeek LLM configuration 2. Avoids the broken kg_map_merge imports 3. Implements core memory functionality

Classesยถ

SimpleMemoryAgentDeepSeek

Memory-enhanced SimpleAgent that works with DeepSeek.

Functionsยถ

test_with_deepseek()

Test the agent with DeepSeek configuration.

Module Contentsยถ

class agents.memory_v2.simple_memory_agent_deepseek.SimpleMemoryAgentDeepSeek(name='memory_agent', engine=None, user_id='default_user', max_memories=100, **kwargs)ยถ

Bases: haive.agents.simple.agent.SimpleAgent

Memory-enhanced SimpleAgent that works with DeepSeek.

This agent provides: - Memory storage and retrieval - Token-aware memory management - Conversation context preservation - Works with DeepSeek LLM

Initialize the memory agent.

Parameters:
  • name (str) โ€“ Agent name

  • engine (haive.core.engine.aug_llm.AugLLMConfig | None) โ€“ AugLLMConfig (can use DeepSeek)

  • user_id (str) โ€“ User identifier for memories

  • max_memories (int) โ€“ Maximum memories to store

async arun(user_input, **kwargs)ยถ

Process user input with memory awareness.

Parameters:
  • user_input (str) โ€“ Userโ€™s message

  • **kwargs โ€“ Additional arguments

Returns:

Agentโ€™s response

Return type:

str

get_memory_stats()ยถ

Get memory statistics.

Returns:

Memory statistics

Return type:

dict[str, Any]

async agents.memory_v2.simple_memory_agent_deepseek.test_with_deepseek()ยถ

Test the agent with DeepSeek configuration.