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
$refresolution 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 boundary | Required adjustment |
|---|---|
| Timeout validation | timeout=0, negative values and NaN now raise ValueError; use CodeInterpreterMiddleware(timeout=None) only when deliberately removing the deadline (PR #6958). |
| Runtime dependency | Resolve quickjs-rs>=0.2.6,<0.3.0 (metadata). |
| Framework dependency floors | Resolve 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