mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-17 04:31:55 +00:00
fix(gateway): persist runtime session metadata
This commit is contained in:
parent
d1ce358646
commit
4776a34711
5 changed files with 75 additions and 9 deletions
|
|
@ -11865,6 +11865,7 @@ class AIAgent:
|
|||
"estimated_cost_usd": self.session_estimated_cost_usd,
|
||||
"cost_status": self.session_cost_status,
|
||||
"cost_source": self.session_cost_source,
|
||||
"context_length": getattr(self.context_compressor, "context_length", 0) or 0,
|
||||
}
|
||||
# If a /steer landed after the final assistant turn (no more tool
|
||||
# batches to drain into), hand it back to the caller so it can be
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue