Skip to content

Commit 75d2066

Browse files
authored
Merge pull request #135 from meowsaic/main
Fix: s_full.py print text responses in __main__ REPL loop
2 parents a9dabf5 + b17fa2b commit 75d2066

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

agents/s_full.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,4 +733,9 @@ def agent_loop(messages: list):
733733
continue
734734
history.append({"role": "user", "content": query})
735735
agent_loop(history)
736+
response_content = history[-1]["content"]
737+
if isinstance(response_content, list):
738+
for block in response_content:
739+
if hasattr(block, "text"):
740+
print(block.text)
736741
print()

0 commit comments

Comments
 (0)