live_search_agent_stream.py
Run the Example
1
Set up your virtual environment
2
Install dependencies
3
Export your xAI API key
4
Run the example
Save the code above as
live_search_agent_stream.py, then run:Stream a world news digest from Grok using xAI Live Search with citations.
Set up your virtual environment
Install dependencies
Export your xAI API key
Run the example
live_search_agent_stream.py, then run: