27 KiB
@assistant-ui/react-langchain
0.0.18
Patch Changes
0.0.17
Patch Changes
-
#4497
ddc40b7- fix: tolerate reasoning and image content blocks that omit their declared fields (@okisdev) -
#4515
f5e94b7- feat: forwardonThreadIdChangethrough the adapter entry hooks (useLangGraphRuntime,useStreamRuntime,useChatRuntime,useAdkRuntime,useOpenCodeRuntime,usePiRuntime). the option already existed onuseRemoteThreadListRuntimebut every wrapper dropped it, so routing/persistence built on the settled remote thread id never fired from these hooks. only the settled remote id is emitted; the transient__LOCALID_*placeholder is never surfaced. (@okisdev) -
#4516
99a97a8- feat(react-langchain): expose subagent and subgraph discovery hooks (@ShobhitPatra) -
#4521
b5f9917- feat(react-langchain): edit messages via checkpoint fork (@okisdev) -
#4504
cd3880d- feat(react-langchain): live generative UI via push_ui_message (@ShobhitPatra) -
#4503
99bf3fb- feat(react-langchain): render generative UI from graph state (@ShobhitPatra) -
#4476
e80f7ff- feat(react-langchain): add useLangChainInterrupts reader for pending interrupts (@ShobhitPatra) -
#4448
b3ac74b- feat(react-langchain): regenerate via checkpoint fork (@ShobhitPatra) -
#4523
981687d- feat(react-langchain): expose useStream handle via useLangChainStream (@ShobhitPatra) -
#4550
b8088cf- feat(react-langchain): attach per-message streaming timing via the shared core primitive (@okisdev) -
#4467
0749c94- refactor: split the useStreamRuntime file into hooks/types/converter modules and adopt the shared createRuntimeExtras helper (@okisdev) -
#4519
4b4a0fe- fix: type-check the langchain message converter against the current@langchain/langgraph-sdk(return a single converterMessage, accept the generative-UI metadata extension, and binduiMessagesByParentthrough a memoized callback rather than the converter'smetadatachannel). no runtime behavior change. (@okisdev) -
#4462
befc022- feat(react-langchain): resume parallel interrupts via useLangChainRespondAll (@ShobhitPatra) -
#4591
f582f09- feat: honor startRun false across staged-message-capable runtimes (@Yonom) -
Updated dependencies [
ddc40b7,ea52de0,29c6fdb,d0987a3,cefcf27,0c51b90,3a8f685,ec6adf4,4acd4c0]:- @assistant-ui/core@0.2.19
- assistant-stream@0.3.24
- assistant-cloud@0.1.34
- @assistant-ui/store@0.2.19
0.0.16
Patch Changes
- #4447
e3cdb10- feat(react-langchain): resume interrupts via useLangChainRespond (@ShobhitPatra)
0.0.15
Patch Changes
-
#4435
a5a6d55- feat(react-langchain): forward runConfig to the graph as config.configurable (@ShobhitPatra) -
#4438
0efdfe2- feat(react-langchain): convert file content parts in messages (@ShobhitPatra) -
#4432
c44cec8- feat(react-langchain): surface thread-loading state via isLoading (@ShobhitPatra) -
#4436
11e266b- feat(react-langchain): surface root tool calls via useLangChainToolCalls (@ShobhitPatra) -
#4431
c0ae7f7- feat(react-langchain): surface useStream error via useLangChainError (@ShobhitPatra) -
Updated dependencies [
68dfbaa,fe24ad6]:- @assistant-ui/core@0.2.18
0.0.14
Patch Changes
-
Updated dependencies [
434bba5,bb38d08,4cc7eaa,4cc7eaa]:- assistant-stream@0.3.23
- @assistant-ui/core@0.2.16
- assistant-cloud@0.1.33
- @assistant-ui/store@0.2.18
0.0.13
Patch Changes
-
Updated dependencies [
2a84174,a0a0769,19c5b5f,dbdfb15,ca191dc,15878d8,44ff4bf,01cf957,26a365b]:- @assistant-ui/core@0.2.11
- assistant-stream@0.3.21
- assistant-cloud@0.1.32
- @assistant-ui/store@0.2.14
0.0.12
Patch Changes
-
Updated dependencies [
cba2b42,4145caa,58f80e0,78ff336,5fe118d,dcd5897,0558db2,69540af,d9b3119,ae54c55,7640b31]:- assistant-stream@0.3.20
- @assistant-ui/core@0.2.10
- assistant-cloud@0.1.31
0.0.11
Patch Changes
-
#4151
299d448- chore: drop stalebiome-ignorepragmas now that the repo lints with oxlint (@okisdev) -
#4136
4429aa3- centralize thread-level shared options forwarding across runtime wrapper hooks. follow-up to #4135. (@okisdev)new public exports from
@assistant-ui/core(re-exported from@assistant-ui/react):ExternalStoreSharedOptions, a typedPickoverExternalStoreAdaptercovering the four thread-level optional fields every wrapper forwards:isDisabled,isSendDisabled,unstable_capabilities,suggestions.pickExternalStoreSharedOptions(options), plucks those four fields from a wider options object. the body usessatisfies Required<...>so adding a key to the type without copying it in the function is a compile error rather than a silent missing-field bug.useExternalStoreSharedOptions(options)(from@assistant-ui/core/react), a memoized variant for wrappers that wrap their store inuseMemo. lets the wrapper list a single stablesharedreference as a dep instead of enumerating the four fields. samesatisfiesguard internally so the destructure stays in sync with the type.
internal: every runtime wrapper hook (
useChatRuntime,useAISDKRuntime,useLangGraphRuntime,useA2ARuntime,useAgUiRuntime,useAdkRuntime,useStreamRuntime,useOpenCodeRuntime) now uses these helpers instead of inlining the conditional spreads added in #4135. each wrapper sheds 20 to 40 lines of duplicated declarations and conditional spreads; future additions to the shared option set propagate through a single edit inpickExternalStoreSharedOptionsinstead of touching every wrapper. no user-facing behavior change. -
#4135
e7c2396- align the runtime wrapper hooks so every distribution forwards the same set of optional adapter-level fields touseExternalStoreRuntime. closes #4134. (@okisdev)useChatRuntimeanduseAISDKRuntime(which already acceptedsuggestions) gain three new options:isDisabled, disables the composer input entirely.isSendDisabled, keeps the input usable but makessend()a no-op (paired withcomposer.canSend).unstable_capabilities, per-thread capability overrides (currently{ copy?: boolean }).
useLangGraphRuntime,useA2ARuntime,useAgUiRuntime,useAdkRuntime,useStreamRuntime,useOpenCodeRuntimegain all four (the three above plussuggestions).adapter-level additions, where missing:
useChatRuntime/useAISDKRuntimealready accepteddictationandvoicethrough theExternalStoreAdapteradapter shape; this just confirms the typing.useLangGraphRuntime,useA2ARuntime,useAgUiRuntime,useAdkRuntime,useStreamRuntime,useOpenCodeRuntimenow acceptdictationandvoicein theiradaptersobject and forward them through.useOpenCodeRuntimegains anadaptersoption for the first time (attachments / speech / dictation / voice / feedback).
every new field is optional and defaults to the prior behavior, so existing call sites need no changes.
-
Updated dependencies [
1315789,299d448,4429aa3,e76611f,76f7d16,eef724e,2dec3ae,fcb6baf,c4d3eea,331f2f7]:- assistant-stream@0.3.18
- @assistant-ui/core@0.2.8
- @assistant-ui/store@0.2.13
- assistant-cloud@0.1.30
0.0.10
Patch Changes
- #4125
e639a11- chore: drop tracker-behaviour explainer comments left behind in satellite runtimes (@Yonom)
0.0.9
Patch Changes
0.0.8
Patch Changes
-
#3967
0a0c306- feat(core, react): addMessagePrimitive.GenerativeUIprimitive (@samdickson22)A new first-class primitive for rendering agent-described React UI from a JSON spec, with a consumer-provided component allowlist as the security boundary.
The agent emits a new
generative-uimessage part containing a tree of components by name;MessagePrimitive.GenerativeUIwalks the spec and resolves each name against the registry you pass in. Unknown names throw a typedGenerativeUIRenderError(or invoke the optionalFallback). Composes withMessagePrimitive.Partsvia the newcomponents.generativeUIoption, and supports streaming partial specs.<MessagePrimitive.Parts components={{ generativeUI: { components: { Card, Button } }, }} /> -
Updated dependencies [
13a12c4,0a0c306,6a0ecb2,e4634a5,325de4c,01244a5,f2ec01c,1e21076]:- assistant-stream@0.3.16
- @assistant-ui/core@0.2.5
- assistant-cloud@0.1.29
- @assistant-ui/store@0.2.12
0.0.7
Patch Changes
-
#4049
3eaf583- feat(react-langchain): parity options + send hooks (toward deprecatingreact-langgraph) (@Yonom)- Adds
autoCancelPendingToolCalls(defaulttrue): when a new user message is submitted while previous tool calls are still pending, automatically submittoolmessages cancelling them so the agent's tool-call accounting stays consistent. - Adds
unstable_allowCancellation: routes the Cancel button touseStream().stop(). On by default; passfalseto disable. - Adds
unstable_threadListAdapter: customRemoteThreadListAdapteroverride for self-hosted persistence (takes precedence overcloud). - Adds
createanddeleteoptions, forwarded to the underlyinguseCloudThreadListAdapter. - Adds
useLangChainSend()anduseLangChainSendCommand()parity helpers for migrating away fromuseLangGraphSend/useLangGraphSendCommand.
- Adds
-
#4048
94c2c8e- chore: bump@langchain/reactpeer dependency to^1.0.2(v1 useStream API) (@Yonom) -
Updated dependencies [
845c7c1,db721df,94548fa,94548fa,94548fa,8b6fc88,179895f,7a8bf26,3b2bbce]:- assistant-cloud@0.1.28
- @assistant-ui/store@0.2.11
- assistant-stream@0.3.15
- @assistant-ui/core@0.2.3
0.0.6
Patch Changes
- Updated dependencies [
040d469]:- @assistant-ui/core@0.2.0
0.0.5
Patch Changes
-
Updated dependencies [
7098bab,b090acb,5fdf17e]:- @assistant-ui/core@0.1.18
- assistant-stream@0.3.13
- @assistant-ui/store@0.2.10
0.0.4
Patch Changes
-
Updated dependencies [
549037a,005f83f,976aec5,25b97d5,2008fc9,88fcd35]:- @assistant-ui/core@0.1.16
- @assistant-ui/store@0.2.9
0.0.3
Patch Changes
-
#3866
ad94dd6- feat: adduseLangChainState<T>(key)hook to read arbitrary LangGraph custom state keys (e.g.todos,files) from the current thread, mirroring upstreamuseStream().values[key]. (@okisdev) -
Updated dependencies [
c7a274e,ce865bc,ca8f526,c56f98f,974d15e,4b19d42,da0f598,d53ff4f,20f8404,17958c9]:- @assistant-ui/core@0.1.15
- assistant-stream@0.3.12
- assistant-cloud@0.1.27
- @assistant-ui/store@0.2.8
0.0.2
Patch Changes
- c988db8: chore: update dependencies
- 0ec6bcf: feat: add react-langchain package with useStreamRuntime hook for @langchain/react integration
- Updated dependencies [f20b9ca]
- Updated dependencies [c988db8]
- @assistant-ui/core@0.1.14
- assistant-stream@0.3.11
- assistant-cloud@0.1.26
- @assistant-ui/store@0.2.7