CommencerCommencez gratuitement

Streaming output and events

Cet exercice fait partie du cours

<cours>Building Agentic Workflows with LlamaIndex</cours>
Voir le cours

Instructions de l’exercice

Make the agent’s thoughts visible by streaming intermediate AgentStream events to the notebook output.

  • Iterate over the event handler using .stream_events() to get the streaming output.
  • Print details on the output if an output is produced.


Note: If you’re running DataLab in Restricted Mode, this exercise isn’t supported yet. We’re actively working on making it available in the future.


Exercice interactif pratique

Transformez la théorie en action avec l’un de nos exercices interactifs

Commencer l’exercice