You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After interrupting execution of a Runnable graph, Langgraph requires reinvoking stream with input=None:
for event in app.stream(None, config, stream_mode="values"):
event["messages"][-1].pretty_print()
LangServe does not support this, though, because of the non-optional "input" in the InvokeRequestShallowValidator.
class InvokeRequestShallowValidator(BaseModel):
"""Shallow validator for Invoke Request.
Validate basic shape of invoke request, downstream code
is expected to do further validation.
"""
input: Any = Field(..., description="The input to the runnable.")
config: Optional[Dict[str, Any]] = Field(default_factory=dict)
Would it be ok to open a PR to modify this and make it optional? Or are there any other suggested workarounds?
The text was updated successfully, but these errors were encountered:
After interrupting execution of a Runnable graph, Langgraph requires reinvoking stream with input=None:
LangServe does not support this, though, because of the non-optional "input" in the
InvokeRequestShallowValidator
.Would it be ok to open a PR to modify this and make it optional? Or are there any other suggested workarounds?
The text was updated successfully, but these errors were encountered: