"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
Merge branch 'main' into codex/fix-pr1618
Haozhe Wue1cb50a1113a
diff --cc agent/src/agent/loop.pyindex 88a7b5414,f90a6de41..754a0177d--- a/agent/src/agent/loop.py+++ b/agent/src/agent/loop.py@@@ -1626,9 -1482,13 +1482,14 @@@ class AgentLoopself._last_activity_wall = _time.time()usage = getattr(response, "usage_metadata", None)+ current_response_model = getattr(response, "response_model", None)+ # `messages` is still exactly what this request sent.+ self._context_meter.observe(+ usage.get("input_tokens") if isinstance(usage, dict) else None,+ messages,+ )- if getattr(response, "response_model", None):- last_response_model = response.response_model+ if current_response_model:+ last_response_model = current_response_modelusage_delta = _record_llm_usage(run_dir,llm_usage_summary,