Conditional and retries with prebuilt patterns #211

Closed
opened 2026-02-15 17:17:24 -05:00 by yindo · 1 comment
Owner

Originally created by @ali-habibzadeh on GitHub (Mar 23, 2025).

Is there any way of using conditionals with createReactAgent and createSupervisor and get an agent to repeat its work due to not passing a validation step?

Originally created by @ali-habibzadeh on GitHub (Mar 23, 2025). Is there any way of using conditionals with createReactAgent and createSupervisor and get an agent to repeat its work due to not passing a validation step?
yindo closed this issue 2026-02-15 17:17:24 -05:00
Author
Owner

@benjamincburns commented on GitHub (Mar 30, 2025):

Moving to discussion, as this isn't an issue or feature request. For quicker answers, I'd recommend joining our Community Slack. Otherwise, please share some more info about what you're trying to achieve. I'm not sure what you mean by "conditionals" here, but you can set a retryPolicy on invocation of a graph. That might be what you're looking for?

@benjamincburns commented on GitHub (Mar 30, 2025): Moving to discussion, as this isn't an issue or feature request. For quicker answers, I'd recommend joining our [Community Slack](https://www.langchain.com/join-community). Otherwise, please share some more info about what you're trying to achieve. I'm not sure what you mean by "conditionals" here, but you can set a `retryPolicy` on invocation of a graph. That might be what you're looking for?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#211