Skip to content

Commit 9d57162

Browse files
committed
agentic
1 parent edcd83d commit 9d57162

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

hindsight-api/hindsight_api/engine/memory_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3590,7 +3590,7 @@ async def refresh_mental_model(
35903590
}
35913591

35923592
# Build query for the agent - instruct to explore multiple facets
3593-
query = f"""Generate a comprehensive summary about '{model['name']}': {model['description']}
3593+
query = f"""Generate a comprehensive summary about '{model["name"]}': {model["description"]}
35943594
35953595
To create a thorough summary:
35963596
1. Use multiple recall queries to explore different aspects and facets of this topic

hindsight-api/hindsight_api/engine/reflect/agent.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ def _log_completion(answer: str, iterations: int, forced: bool = False):
133133
)
134134
llm_trace.append({"scope": f"agent_{iteration + 1}", "duration_ms": int((time.time() - llm_start) * 1000)})
135135
except Exception as e:
136-
llm_trace.append({"scope": f"agent_{iteration + 1}_err", "duration_ms": int((time.time() - llm_start) * 1000)})
136+
llm_trace.append(
137+
{"scope": f"agent_{iteration + 1}_err", "duration_ms": int((time.time() - llm_start) * 1000)}
138+
)
137139
logger.warning(f"[REFLECT {reflect_id}] LLM call failed: {e}, forcing final response")
138140
prompt = build_final_prompt(query, context_history, bank_profile, context)
139141
llm_start = time.time()

0 commit comments

Comments
 (0)