Recursion error when printing app #2

Closed
opened 2026-02-20 17:21:28 -05:00 by yindo · 1 comment
Owner

Originally created by @eyurtsev on GitHub (Nov 14, 2023).


from permchain import Channel, Pregel

grow_value = (
    Channel.subscribe_to("value")
    | (lambda x: x + x)
    | Channel.write_to(value=lambda x: x if len(x) < 10 else None)
)

app = Pregel(
    chains={"grow_value": grow_value,},
    input="value",
    output="value",
)

print(app) # <-- fails
Originally created by @eyurtsev on GitHub (Nov 14, 2023). ```python from permchain import Channel, Pregel grow_value = ( Channel.subscribe_to("value") | (lambda x: x + x) | Channel.write_to(value=lambda x: x if len(x) < 10 else None) ) app = Pregel( chains={"grow_value": grow_value,}, input="value", output="value", ) print(app) # <-- fails ```
yindo closed this issue 2026-02-20 17:21:28 -05:00
Author
Owner

@nfcampos commented on GitHub (Jan 7, 2024):

This has been fixed

@nfcampos commented on GitHub (Jan 7, 2024): This has been fixed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#2