mirror of
https://github.com/turnstonelabs/turnstone.git
synced 2026-08-12 23:12:23 -06:00
fix: mypy no-any-return in agent context overflow handler
This commit is contained in:
@@ -2559,7 +2559,7 @@ class ChatSession:
|
||||
# Find the last assistant content we have
|
||||
for msg in reversed(agent_messages):
|
||||
if msg.get("role") == "assistant" and msg.get("content"):
|
||||
return msg["content"]
|
||||
return str(msg["content"])
|
||||
return f"({label} stopped: context limit exceeded)"
|
||||
raise
|
||||
|
||||
|
||||
Reference in New Issue
Block a user