Skip to content

Graph Edge Mapping / Looping? #1428

Open
@Ox54

Description

@Ox54

Question

Hi all -- I've been trying to answer this question, but haven't been able to find anything in the docs or issues.

Does Pydantic Graph support Mapped Edges? This is one of the main features of LangGraph that has made it impossible for us to switch to anything else. To illustrate further, here's an example:

Say my graph state looks like:

class GraphState(TypedDict):
    listA: list[str]
    listB: list[str]

I need to construct a graph that maps each item of listA into an agent, who then maps each item of listB to an agent.

Image

Is this currently possible with Pydantic Graph?

Thanks!!

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions