You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/tests/structs/test_agent_stream_token.py

10 lines
188 B

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.")