Files
deepagentsjs/examples/package.json
T
Christian Bromann 163c1357e8 fix(deepagents): unwrap responseFormat strategy types so structuredResponse is correctly typed (#222)
* fix(deepagents): unwrap responseFormat strategy types so structuredResponse is correctly typed

Previously, passing responseFormat to createDeepAgent would leak the
strategy wrapper type (e.g. ToolStrategy<{ city: string }>) into the
agent's structuredResponse property instead of the inner parsed type
({ city: string }). This adds an InferStructuredResponse utility type
that extracts T from ToolStrategy<T> / ProviderStrategy<T>, and resolves
to ResponseFormatUndefined when no responseFormat is provided.

Also adds integration tests covering toolStrategy, providerStrategy,
combined tools + responseFormat, nested schemas, and subagents with
structured output.

* format

* Create stale-planes-breathe.md

* improve tests

* update deps

* add type tests
2026-02-11 21:31:03 -08:00

32 lines
816 B
JSON

{
"name": "examples",
"private": true,
"type": "module",
"scripts": {
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
"deepagents": "workspace:*",
"@langchain/modal": "workspace:*",
"@langchain/anthropic": "^1.3.17",
"@langchain/core": "^1.1.24",
"@langchain/daytona": "workspace:*",
"@langchain/deno": "workspace:*",
"@langchain/node-vfs": "workspace:*",
"@langchain/langgraph-checkpoint": "^1.0.0",
"@langchain/openai": "^1.2.7",
"@langchain/tavily": "^1.2.0",
"langchain": "^1.2.23",
"uuid": "^13.0.0",
"yaml": "^2.8.2",
"zod": "^4.3.6"
},
"devDependencies": {
"@tsconfig/recommended": "^1.0.13",
"@types/node": "^25.2.3",
"@types/uuid": "^11.0.0",
"dotenv": "^17.2.4",
"typescript": "^5.9.3"
}
}