Patch Changes
-
#9983
ea7e791Thanks @encodedz! - Support concurrentagentNodedynamic prompts properly. -
#9986
8a52dadThanks @brettshollenberger! - Don't re-emit input state from middleware hooks that return void -
#9982
4558fa6Thanks @hntrl! - feat(langchain): add optionaltoolsparameter tocountTokensApproximatelyfor more accurate token estimates when tools are bound to a model -
#9981
5f28338Thanks @hntrl! - feat(agents): support returning Command from wrapModelCall middlewareAllow
wrapModelCallmiddleware hooks to returnCommandobjects for advanced
control flow (routing, state updates), matching the existingwrapToolCall
pattern. The framework tracks the effective AIMessage through the middleware
chain so outer middleware always receive an AIMessage fromhandler(), even
when an inner middleware returns a Command. -
Updated dependencies [
d5e3db0]:- @langchain/core@1.1.21