Skip to content

Streaming final output while iterating over agent graph #1449

Open
@mohamedamr13

Description

@mohamedamr13

Question

Is there a way to stream the final agent answer while using the agent.iter() method and iterating the graph node by node ? Ideally, I would want to stream the final node message similar to agent.run_stream() while having access to the tool calls available through iterating over the graph nodes.

Additional Context

  • Pydantic AI Version: 0.0.40

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalequestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions