# Run with detailed streaming - each token shows metadata
agent.run("Tell me a short story about a robot learning to paint.")
```
## Agent Structured Outputs
- Create a structured output schema for the agent [List[Dict]]
@ -1112,4 +1129,4 @@ The `run` method now supports several new parameters for advanced functionality:
| `tool_retry_attempts` | Configure tool_retry_attempts for robust tool execution in production environments. |
| `handoffs` | Use handoffs to create specialized agent teams that can intelligently route tasks based on complexity and expertise requirements. |
By following these guidelines and leveraging the Swarm Agent's extensive features, you can create powerful, flexible, and efficient autonomous agents for a wide range of applications.
By following these guidelines and leveraging the Swarm Agent's extensive features, you can create powerful, flexible, and efficient autonomous agents for a wide range of applications.