@@ -32,7 +32,13 @@ class BullResearcher(BaseAgent):
|
||||
|
||||
# Memory
|
||||
situation = f"{market}:{symbol} bull case"
|
||||
memories = self.get_memories(situation, n_matches=2)
|
||||
memory_meta = {
|
||||
"market": market,
|
||||
"symbol": symbol,
|
||||
"timeframe": context.get("timeframe"),
|
||||
"features": context.get("memory_features") or {},
|
||||
}
|
||||
memories = self.get_memories(situation, n_matches=None, metadata=memory_meta)
|
||||
memory_prompt = self.format_memories_for_prompt(memories)
|
||||
|
||||
lang_instruction = self._get_language_instruction(language)
|
||||
@@ -121,7 +127,13 @@ class BearResearcher(BaseAgent):
|
||||
|
||||
# Memory
|
||||
situation = f"{market}:{symbol} bear case"
|
||||
memories = self.get_memories(situation, n_matches=2)
|
||||
memory_meta = {
|
||||
"market": market,
|
||||
"symbol": symbol,
|
||||
"timeframe": context.get("timeframe"),
|
||||
"features": context.get("memory_features") or {},
|
||||
}
|
||||
memories = self.get_memories(situation, n_matches=None, metadata=memory_meta)
|
||||
memory_prompt = self.format_memories_for_prompt(memories)
|
||||
|
||||
lang_instruction = self._get_language_instruction(language)
|
||||
|
||||
Reference in New Issue
Block a user