Refactor agent initialization parameters for improved clarity and functionality

pull/933/head
harshalmore31 3 days ago
parent a25741ffd4
commit d0efa7ab96

@ -3,15 +3,11 @@ from swarms import Agent
# Enable real-time streaming
agent = Agent(
agent_name="StoryAgent",
model_name="gpt-4o-mini", # 🔥 This enables real streaming!
max_loops=4,
streaming_on=True,
print_on=True,
output_type="all",
model_name="gpt-4o-mini",
streaming_on=True, # 🔥 This enables real streaming!
max_loops=1,
print_on=True, # By Default its False, raw streaming !!
)
# This will now stream in real-time with beautiful UI!
response = agent.run(
"Tell me a detailed story about Humanity colonizing the stars"
)
# print(response)
response = agent.run("Tell me a detailed story...")
Loading…
Cancel
Save