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
11 changed files with 55 additions and 0 deletions

View File

@@ -772,4 +772,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()