|
|
@ -6,8 +6,12 @@ agent = Agent(
|
|
|
|
model_name="gpt-4o-mini",
|
|
|
|
model_name="gpt-4o-mini",
|
|
|
|
streaming_on=True, # 🔥 This enables real streaming!
|
|
|
|
streaming_on=True, # 🔥 This enables real streaming!
|
|
|
|
max_loops=1,
|
|
|
|
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!
|
|
|
|
# This will now stream in real-time with beautiful UI!
|
|
|
|
response = agent.run("Tell me a detailed story...")
|
|
|
|
response = agent.run(
|
|
|
|
|
|
|
|
"Tell me a detailed story about Humanity colonizing the stars"
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
print(response)
|