Is Last step logic doesn't work per execution #277

Closed
opened 2026-02-20 17:35:02 -05:00 by yindo · 0 comments
Owner

Originally created by @abprime on GitHub (Oct 11, 2024).

The step count keeps increasing every invoke. How can we reset or make the lastStepManager start from 1 again for every invoke. The recursion_limit is per invoke not for across the invoke calls.

image

langgraph/how-tos/return-when-recursion-limit-hits/

Build language agents as graphs

https://langchain-ai.github.io/langgraph/how-tos/return-when-recursion-limit-hits/?h=recursion

Originally posted by @giscus in https://github.com/langchain-ai/langgraph/discussions/2025

Originally created by @abprime on GitHub (Oct 11, 2024). The step count keeps increasing every invoke. How can we reset or make the lastStepManager start from 1 again for every invoke. The recursion_limit is per invoke not for across the invoke calls. ![image](https://github.com/user-attachments/assets/77a13527-fa55-4937-9a31-6c7c79b51c9e) # langgraph/how-tos/return-when-recursion-limit-hits/ Build language agents as graphs https://langchain-ai.github.io/langgraph/how-tos/return-when-recursion-limit-hits/?h=recursion <!-- sha1: 5421f2d384c448fa915b61b0956c0f94a1f4bab0 --> _Originally posted by @giscus in https://github.com/langchain-ai/langgraph/discussions/2025_
yindo closed this issue 2026-02-20 17:35:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#277