mirror of
https://github.com/shareAI-lab/analysis_claude_code.git
synced 2026-05-06 16:26:16 +08:00
Merge pull request #135 from meowsaic/main
Fix: s_full.py print text responses in __main__ REPL loop
This commit is contained in:
@@ -733,4 +733,9 @@ if __name__ == "__main__":
|
|||||||
continue
|
continue
|
||||||
history.append({"role": "user", "content": query})
|
history.append({"role": "user", "content": query})
|
||||||
agent_loop(history)
|
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()
|
print()
|
||||||
|
|||||||
Reference in New Issue
Block a user