Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rjambrecic committed Jun 12, 2024
1 parent c1ccb40 commit 56610de
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions captn/captn_agents/backend/tools/_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,9 +688,7 @@ def _format_last_message(url: str, summary: Summary) -> str:
def _is_termination_msg(x: Dict[str, Optional[str]]) -> bool:
content = x.get("content")
if content is None or not isinstance(content, str):
print("Content is None or not a string")
return False

return (
content.startswith('{"type":"SUMMARY"')
or content.startswith('{"type": "SUMMARY"')
Expand Down

0 comments on commit 56610de

Please sign in to comment.