1. Limited Submit Options in useStream Hook
The current useStream hook from @langchain/langgraph-sdk/react only supports basic submit options:
// Current limited options supported by useStream
stream.submit(
{ messages: [...toolMessages, newHumanMessage], context },
{
streamMode: ["values"],
onDisconnect: "continue",
multitaskStrategy: "reject",
optimisticValues: (prev) => ({ /* optimistic update logic */ }),
},
);
2. Missing Webhook Support
The useStream hook’s submit function does not support advanced options like:
-
webhook - for external notifications
-
streamResumable - for resumable streams
-
checkpointDuring - for checkpoint management
-
metadata - for custom metadata