fix(agents): print final assistant response in s02-s12 (#39)

This commit is contained in:
Gaarahan 2026-02-28 00:10:39 +08:00 committed by GitHub
parent dbffe7c8d0
commit aaa93bcfc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 55 additions and 0 deletions

View file

@ -217,4 +217,9 @@ if __name__ == "__main__":
break
history.append({"role": "user", "content": query})
agent_loop(history)
response_content = history[-1]["content"]
if isinstance(response_content, list):
for block in response_content:
if hasattr(block, "text"):
print(block.text)
print()