mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-22 15:42:25 +02:00
Merge pull request #2115 from langchain-ai/nc/15oct/update-is-last-step
Return IsLastStep to previous definition
This commit is contained in:
@@ -5,7 +5,7 @@ from langgraph.managed.base import ManagedValue
|
||||
|
||||
class IsLastStepManager(ManagedValue[bool]):
|
||||
def __call__(self) -> bool:
|
||||
return self.loop.step == self.loop.stop
|
||||
return self.loop.step == self.loop.stop - 1
|
||||
|
||||
|
||||
IsLastStep = Annotated[bool, IsLastStepManager]
|
||||
|
||||
Reference in New Issue
Block a user