Repository navigation
deepagents@1.17.1
Patch Changes
-
#557
e21fb23Thanks @johannes117! - fix(acp): run the filesystem backend in virtual mode so tool searches stay within the workspace instead of scanning (and crashing on) the host filesystem -
#1084
e261b7cThanks @hntrl! - fix(deepagents): align the edit_file prompt with Python by removing the incorrect claim that editing an unread file raises an error -
#1090
2dd1d79Thanks @thushanth-bengre-langchain! - fix(deepagents): drop the redundant backend line from theexecutetool description; the tool is already hidden when the backend can't run commands -
#1097
a979eb9Thanks @ccurme! - Reject laterwrite_file,edit_file, anddeletecalls targeting the same normalized path within one model response, matching Python's filesystem middleware guard. This prevents same-response lost updates without changing backend atomicity. -
#1096
cc136b0Thanks @gethin-langchain! - fix(deepagents): make the placeholderToolMessagefor a tool call with no recorded result cause-neutral, so it no longer claims another message cancelled the call when a run was stopped or restarted mid-tool -
#1104
ea4e981Thanks @eliornl! - Remove the experimental v3 streaming types and thestreamTransformersoption.The v3 event stream (
streamEvents(..., { version: "v3" })) was documented as experimental, andlangchain1.6.8 deprecated it. deepagents no longer layers its own types and options on top of it:DeepAgentRunStreamandSubagentRunStreamare no longer exported fromdeepagents. If you still need them, importAgentRunStreamandSubagentRunStreamfromlangchainwhile it ships them.createDeepAgentno longer acceptsstreamTransformers. TypeScript rejects the option, and plain JavaScript callers get it ignored.agent.streamEvents(..., { version: "v3" })still runs. It now has the return type of langchain'sReactAgent, sorun.subagentsis no longer narrowed to the declared subagents, andrun.toolCallsis typed from thetoolsoption alone. Built-in tools such astaskstill arrive at run time but are no longer part of that type, and with no custom tools the element type isnever. Annotate the run as langchain'sAgentRunStream(const run: AgentRunStream = await agent.streamEvents(...)) to read every call withname: string.- The
TStreamTransformerstype parameter is removed fromcreateDeepAgent,CreateDeepAgentParamsandDeepAgentTypeConfig. OncreateDeepAgentandCreateDeepAgentParamsit was the 6th of 8, soTStateSchemaandTSkillseach move up one position, and code that passes six or more explicit type arguments has to drop the sixth. OnDeepAgentTypeConfigit was the 7th and last.
To follow subagents, use
agent.stream()withstreamModeandsubgraphs: true. Each subagent's chunks arrive under its owntools:<id>namespace, with the subagent's name aslc_agent_namein the message metadata:for await (const [namespace, mode, data] of await agent.stream(input, { streamMode: ["messages", "updates"], subgraphs: true, })) { if (mode === "messages" && namespace.length > 0) { const [message, metadata] = data; console.log(namespace[0], metadata.lc_agent_name, message.text); } }
The
@langchain/langgraph-sdkpeer range now also accepts 2.x from 2.0.1. The 2.0.0 on npm is a deprecated build and stays excluded. -
#1103
d2f82caThanks @eliornl! - fix(deepagents): keep the summarization middleware's summary model call off themessagesstream, so the summary text no longer arrives as an AI message before the real answer