Fix is_last_step

This commit is contained in:
Nuno Campos
2024-10-14 17:05:16 -07:00
parent 965849823a
commit bcf335651e
@@ -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 - 1
return self.loop.step == self.loop.stop
IsLastStep = Annotated[bool, IsLastStepManager]