The Swarms framework provides powerful real-time streaming capabilities for agents, allowing you to see responses being generated token by token as theyβre produced by the language model. This creates a more engaging and interactive experience, especially useful for long-form content generation, debugging, or when you want to provide immediate feedback to users.Documentation Index
Fetch the complete documentation index at: https://docs.swarms.world/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Install the swarms package using pip:Basic Setup
- First, set up your environment variables:
Step by Step
-
Install and put your keys in
.env -
Turn on streaming in
Agent()withstreaming_on=True -
Optional: If you want to pretty print it, you can do
print_on=True; if not, it will print normally
Code
Connect With Us
If youβd like technical support, join our Discord below and stay updated on our Twitter for new updates!| Platform | Link | Description |
|---|---|---|
| π Documentation | docs.swarms.world | Official documentation and guides |
| π Blog | Medium | Latest updates and technical articles |
| π¬ Discord | Join Discord | Live chat and community support |
| π¦ Twitter | @kyegomez | Latest news and announcements |
| π₯ LinkedIn | The Swarm Corporation | Professional network and updates |
| πΊ YouTube | Swarms Channel | Tutorials and demos |
| π« Events | Sign up here | Join our community events |