From 3b37542f77b420b7300d2be457bad8ef4c457db9 Mon Sep 17 00:00:00 2001 From: harshalmore31 Date: Tue, 1 Jul 2025 00:03:56 +0530 Subject: [PATCH] Update agent parameters for improved streaming functionality and response clarity --- stream_example.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/stream_example.py b/stream_example.py index a09a4260..82ff97b6 100644 --- a/stream_example.py +++ b/stream_example.py @@ -3,11 +3,15 @@ from swarms import Agent # Enable real-time streaming agent = Agent( agent_name="StoryAgent", - model_name="gpt-4o-mini", + model_name="gpt-4o-mini", streaming_on=True, # 🔥 This enables real streaming! max_loops=1, - print_on=True, # By Default its False, raw streaming !! + print_on=False, + output_type="all", ) # This will now stream in real-time with beautiful UI! -response = agent.run("Tell me a detailed story...") \ No newline at end of file +response = agent.run( + "Tell me a detailed story about Humanity colonizing the stars" +) +print(response) \ No newline at end of file