You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Run the agent with a user prompt in sync streaming mode.
591
591
592
592
This method builds an internal agent graph (using system prompts, tools and output schemas) and then
593
593
runs the graph until the model produces output matching the `output_type`, for example text or structured data.
594
-
At this point, a streaming run result object is collected and -- once this output has completed streaming -- you can iterate over the complete output, message history, and usage.
594
+
At this point, a streaming run result object is yielded from which you can stream the output as it comes in,
595
+
and -- once this output has completed streaming -- get the complete output, message history, and usage.
595
596
596
597
As this method will consider the first output matching the `output_type` to be the final output,
597
598
it will stop running the agent graph and will not execute any tool calls made by the model after this "final" output.
0 commit comments