Patch Changes
-
#10879
eb480cbThanks @vignesh-gep! - fix(langchain/createAgent): throw on terminalproviderStrategyparse failure instead of silently resolving withstructuredResponse: undefinedWhen
createAgentwas configured withresponseFormatresolving to aproviderStrategy(either passed explicitly or auto-promoted from a bare Zod / JSON schema for models whose profile reportsstructuredOutput: true), and the model produced a terminal response (notool_calls) whose text could not be JSON-parsed or did not satisfy the schema, the agent silently exited with nostructuredResponse, surfacing later asTypeError: Cannot read properties of undefined. The agent now throws aStructuredOutputParsingErrorin that case while still allowing the agent loop to continue when tool calls are present. Closes #10878. -
#10872
a640079Thanks @hntrl! - chore(deps): remove redundant @types/uuid declarationsRemove
@types/uuidfrom package manifests that rely on@langchain/core/utils/uuidor do not require uuid type stubs directly, and refresh the lockfile entries accordingly. -
#10160
bba900cThanks @JadenKim-dev! - fix(langchain): prevent llmToolSelectorMiddleware from leaking into message stream