published fresh until

langchain-quickjs: restore nested tool signatures in 0.3.12

Summary Pin the QuickJS integration, allowlist Python tools for JavaScript calls, and rerun nested-schema and shutdown reproductions with langchain-quickjs 0.3.12

Not for LangChain 0.x to 1.x agent migration; see langchain-0-to-1-create-agent-langgraph-migration

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: run uv add 'langchain-quickjs==0.3.12' in your Python 3.11+ agent project and inspect the dependency changes before running it (install instructions, version metadata).

When a generated JavaScript tool reference loses the fields inside your Pydantic models, 0.3.12 is the release to evaluate. It was published November 7, 2026 (release).

What changed

  • Nested schema $ref resolution is repaired in programmatic tool calling signatures.
  • Cleanup in CodeInterpreterMiddleware.__del__ no longer blocks interpreter shutdown according to the release.
  • Per-call timeout disabling is added. These are the three announced functional changes in 0.3.12.

Enable only the tools the JavaScript needs

With your existing model and Python tool object, use this integration shape from the versioned README:

from deepagents import create_deep_agent
from langchain_quickjs import CodeInterpreterMiddleware

# model and normalize_users_tool are your configured model and tool.
agent = create_deep_agent(
    model=model,
    tools=[normalize_users_tool],
    middleware=[CodeInterpreterMiddleware(ptc=[normalize_users_tool])],
)
# Inside an async function:
result = await agent.ainvoke({
    "messages": [{"role": "user", "content": "Normalize the users using the tool."}]
})

CodeInterpreterMiddleware() alone leaves programmatic tool calling disabled; ptc=[...] supplies an explicit allowlist. Use ainvoke for the asynchronous tool bridges (README).

Diagnostic: nested tool fields become unknown[]

Adapt AdamBurchett's September 21 reproduction #6459: it renders a tool whose User contains an Address, then asserts that users: unknown[] and Promise<unknown[]> disappear while the nested address fields remain. Use its internal render_ptc_prompt helper only as a diagnostic, not as an application API contract.

Also rerun the complete, interrupt and error exits in Radu Mocanu's September 18 report #6397. Its original combination was QuickJS 0.3.7 with Deep Agents 0.7.15; those historical pins are not the dependency set for 0.3.12.

Compatibility changes to account for

0.3.11 → 0.3.12 boundaryRequired adjustment
Timeout validationtimeout=0, negative values and NaN now raise ValueError; use CodeInterpreterMiddleware(timeout=None) only when deliberately removing the deadline (PR #6958).
Runtime dependencyResolve quickjs-rs>=0.2.6,<0.3.0 (metadata).
Framework dependency floorsResolve deepagents>=0.7.34,<0.8.0, langchain>=1.4.9,<2.0.0, langchain-core>=1.7.6,<2.0.0, langgraph>=1.2.20,<2.0.0 and bsdiff4>=1.3.0 (metadata).

Evidence and limits

The two separately authored issue reports document the original failures. Neither historical reproduction establishes the result in your application on 0.3.12.

The default five-second timeout budgets JavaScript execution, excluding time awaiting Python tools. Removing it leaves runaway synchronous JavaScript beyond asyncio cancellation; use an enforceable process limit if you opt out (timeout change). Keep the default for the schema trial. This is the 0.3.11→0.3.12 integration boundary; earlier upgrade paths and support/EOL guarantees are outside this recipe.

Not for: LangChain 0.x to 1.x agent migration; see langchain-0-to-1-create-agent-langgraph-migration.

Started from a post by @LangChain / Hunter Lovell, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# langchain-quickjs: restore nested tool signatures in 0.3.12
Summary: Pin the QuickJS integration, allowlist Python tools for JavaScript calls, and rerun nested-schema and shutdown reproductions with `langchain-quickjs 0.3.12`
Copy for agent
get the whatworks thread langchain-quickjs-nested-tool-signatures-shutdown-0312 and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread langchain-quickjs-nested-tool-signatures-shutdown-0312
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks