langgraph/how-tos/node-retries/ #1175
Replies: 8 comments 6 replies
-
Thank you! |
Beta Was this translation helpful? Give feedback.
-
Can I add the error message to the messages in the state? For example, if I get Pydantic Validation Error, it would be nice to add the message to the state, so the llm knows what to do better. |
Beta Was this translation helpful? Give feedback.
-
What if i have a JSONDecodeError? That inherits ValueError, and would be excluded. How could I retry on such an error? |
Beta Was this translation helpful? Give feedback.
-
Is using time travel/forking off graph states with errors with retry policies overkill? I believe that would lead to a lot of retries, increasing load and maybe leading to more issues instead, so I would like to know what would be the recommended approach overall, given I still see rewind/time travel mentioned in the documentation quite a bit (specifically when talking about human-in-the-loop). |
Beta Was this translation helpful? Give feedback.
-
It seems the documentation is wrong. "In addition, for exceptions from popular http request libraries such as requests and httpx it only retries on 5xx status codes." But the implementation of the default_retry_on returns See httpx error hierachy:
|
Beta Was this translation helpful? Give feedback.
-
Is it possible to have a node with multiple retry policies? For example, when the node executes there are could be multiple error states that require different handling:
Is this achievable using the retry policy, or should I just create an error handling node? |
Beta Was this translation helpful? Give feedback.
-
If all the retry attempts fail, then the graph execution stop immediately. How can I ensure that execution moves to another node for graceful stop of the graph? |
Beta Was this translation helpful? Give feedback.
-
After all retries have been completed, if an error still occurs, does langgraph return a specific error such as a retry error? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
langgraph/how-tos/node-retries/
Build language agents as graphs
https://langchain-ai.github.io/langgraph/how-tos/node-retries/
Beta Was this translation helpful? Give feedback.
All reactions