Workflows
Streaming
Workflows are all about control and flexibility. You have full control over the multi-agent process, how the input is processed, which agents are used and in what order.
You also have full control over how the output is streamed.
Streaming
To stream the output, yield an Iterator[RunResponse]
from the run()
method of your workflow.
news_report_generator.py
Batch
Simply return a RunResponse
object from the run()
method of your workflow to return a single output.
news_report_generator.py
Was this page helpful?