Fix agent initialization order for memory manager

This commit is contained in:
Songbird
2025-10-03 22:23:42 +02:00
parent 9649e5e87f
commit eef62c3650

View File

@@ -89,6 +89,12 @@ class FuzzForgeAgent:
default_service_url=service_url,
)
# Create Hybrid Memory Manager (ADK + Cognee direct integration)
self.memory_manager = HybridMemoryManager(
memory_service=self.memory_service,
cognee_tools=self.cognee_tools,
)
# Create the executor (the brain) with memory and session services
self.executor = FuzzForgeExecutor(
model=self.model,
@@ -100,12 +106,6 @@ class FuzzForgeAgent:
fuzzforge_mcp_url=os.getenv('FUZZFORGE_MCP_URL'),
)
# Create Hybrid Memory Manager (ADK + Cognee direct integration)
self.memory_manager = HybridMemoryManager(
memory_service=self.memory_service,
cognee_tools=self.cognee_tools,
)
# Get the agent card (the identity)
self.agent_card = get_fuzzforge_agent_card(f"http://localhost:{self.port}")