Skip to content

Conversation

@dmontagu
Copy link
Contributor

Graphs are using uuid.uuid4() currently which is too random for temporal.

This PR changes things so we use a deterministic approach to generating task and node-run IDs, and eliminates the (essentially unused) graph run ID.

This PR also adds an example of a multi-agent graph for research that runs using temporal.

@github-actions
Copy link

github-actions bot commented Nov 17, 2025

Docs Preview

commit: fcb7f0c
Preview URL: https://d53b394f-pydantic-ai-previews.pydantic.workers.dev


def _task_to_node(
self, task: EndMarker[FinalResult[OutputDataT]] | JoinItem | Sequence[GraphTask]
self, task: EndMarker[FinalResult[OutputDataT]] | JoinItem | Sequence[GraphTaskRequest]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this needed to be changed

task_id: TaskID = field(default_factory=lambda: TaskID(str(uuid.uuid4())), repr=False)

@dataclass
class GraphTask(GraphTaskRequest):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't you say you were going to make this not be a subclass of the other?

@DouweM DouweM merged commit e7b2f82 into main Nov 18, 2025
29 checks passed
@DouweM DouweM deleted the temporal-graph-fix branch November 18, 2025 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants