[EXAMPLE] Token Stream in Agent class

pull/1167/head
Aksh Parekh 3 weeks ago committed by GitHub
parent 540a61ab78
commit 4aacf3256f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,9 @@
from swarms.structs.agent import Agent
agent = Agent(
model_name="gpt-4.1",
max_loops=1,
stream=True,
)
agent.run("Tell me a short story about a robot learning to paint.")
Loading…
Cancel
Save