BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.
Python ai-agentsai-memoryknowledge-graphknowledge-managementknowledge-representationreccomendation-system
fix(observations): default context in observe() and pass it from ingest_data
Cursor Agent95e55b168400
diff --git a/src/core/agents/observations_agent.py b/src/core/agents/observations_agent.pyindex ae250f1..dc82fbd 100644--- a/src/core/agents/observations_agent.py+++ b/src/core/agents/observations_agent.py@@ -24,7 +24,10 @@ class ObservationsAgent:self.llm_adapter = llm_adapterdef observe(- self, text: str, observate_for: Optional[List[str]], context: Optional[str]+ self,+ text: str,+ observate_for: Optional[List[str]] = None,+ context: Optional[str] = None,) -> list[str]:"""Observe the world and update the knowledge graph with new information.diff --git a/src/workers/tasks/ingestion.py b/src/workers/tasks/ingestion.pyindex 81d2879..ec09967 100644--- a/src/workers/tasks/ingestion.py+++ b/src/workers/tasks/ingestion.py@@ -350,6 +350,7 @@ def ingest_data(self, args: dict):else json.dumps(payload.data.json_data)),observate_for=payload.observate_for,+ context=None,)data_adapter.save_observations(