From b17fa2b8805d302462c883b0f694abdc0c0c5eb6 Mon Sep 17 00:00:00 2001 From: meowsaic Date: Fri, 27 Mar 2026 00:24:50 +0800 Subject: [PATCH] Update s_full.py - Fix: Print text responses in __main__ REPL loop When running s_full.py directly, the LLM's text responses are not printed to the terminal. Users cannot see the assistant's replies in the REPL, making the interactive loop unusable. --- agents/s_full.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/agents/s_full.py b/agents/s_full.py index 2a816b510..24c9c893d 100644 --- a/agents/s_full.py +++ b/agents/s_full.py @@ -733,4 +733,9 @@ def agent_loop(messages: list): continue 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()