deepagents 1.7.5 → 1.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1392,7 +1392,8 @@ function getSubagents(options) {
1392
1392
  model: defaultModel,
1393
1393
  systemPrompt: DEFAULT_SUBAGENT_PROMPT,
1394
1394
  tools: defaultTools,
1395
- middleware: generalPurposeMiddleware
1395
+ middleware: generalPurposeMiddleware,
1396
+ name: "general-purpose"
1396
1397
  });
1397
1398
  subagentDescriptions.push(`- general-purpose: ${DEFAULT_GENERAL_PURPOSE_DESCRIPTION}`);
1398
1399
  }
@@ -1407,7 +1408,8 @@ function getSubagents(options) {
1407
1408
  model: agentParams.model ?? defaultModel,
1408
1409
  systemPrompt: agentParams.systemPrompt,
1409
1410
  tools: agentParams.tools ?? defaultTools,
1410
- middleware
1411
+ middleware,
1412
+ name: agentParams.name
1411
1413
  });
1412
1414
  }
1413
1415
  }
@@ -3822,7 +3824,7 @@ function createDeepAgent(params = {}) {
3822
3824
  ];
3823
3825
  /**
3824
3826
  * Return as DeepAgent with proper DeepAgentTypeConfig
3825
- * - Response: TResponse (from responseFormat parameter)
3827
+ * - Response: InferStructuredResponse<TResponse> (unwraps ToolStrategy<T>/ProviderStrategy<T> → T)
3826
3828
  * - State: undefined (state comes from middleware)
3827
3829
  * - Context: ContextSchema
3828
3830
  * - Middleware: AllMiddleware (built-in + custom + subagent middleware for state inference)
@@ -3859,7 +3861,7 @@ function createDeepAgent(params = {}) {
3859
3861
  ...interruptOn ? [(0, langchain.humanInTheLoopMiddleware)({ interruptOn })] : [],
3860
3862
  ...customMiddleware
3861
3863
  ],
3862
- responseFormat,
3864
+ ...responseFormat != null && { responseFormat },
3863
3865
  contextSchema,
3864
3866
  checkpointer,
3865
3867
  store,