@ai-sdk/harness-deepagents 1.0.91 → 1.0.93

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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @ai-sdk/harness-deepagents
2
2
 
3
+ ## 1.0.93
4
+
5
+ ### Patch Changes
6
+
7
+ - 7608210: feat(harness): add `model` parameter to `HarnessAgent` instead of having each harness adapter support it on their own constructor functions
8
+ - f7bd978: chore(harness): update underlying adapter SDKs to their latest versions
9
+ - 14d4fc0: feat(harness): allow changing harness settings between turns via `prepareCall()` support on `HarnessAgent`
10
+ - Updated dependencies [cc9f6ce]
11
+ - Updated dependencies [7608210]
12
+ - Updated dependencies [6f8a2d7]
13
+ - Updated dependencies [14d4fc0]
14
+ - Updated dependencies [90192f1]
15
+ - @ai-sdk/harness@1.0.93
16
+ - @ai-sdk/provider-utils@5.0.33
17
+
18
+ ## 1.0.92
19
+
20
+ ### Patch Changes
21
+
22
+ - e0d7cfb: feat(harness): allow harness sessions to optionally authenticate from an isolated environment supplied through the `auth` option, and remove support for the formerly deprecated legacy auth options types
23
+ - Updated dependencies [e0d7cfb]
24
+ - @ai-sdk/harness@1.0.92
25
+
3
26
  ## 1.0.91
4
27
 
5
28
  ### Patch Changes
package/README.md CHANGED
@@ -39,20 +39,19 @@ const agent = new HarnessAgent({
39
39
  });
40
40
  ```
41
41
 
42
- Configure the model and auth via `createDeepAgents({ model, auth })`.
43
-
44
42
  ## Auth
45
43
 
46
- Auth is optional and provider-aware: the provider is resolved from the model id
47
- (`anthropic/…` or `openai/…`, defaulting to Anthropic). With none configured the
48
- adapter falls back to ambient AI Gateway credentials (`AI_GATEWAY_API_KEY`, then
49
- `VERCEL_OIDC_TOKEN`), then ambient provider creds (`ANTHROPIC_*` / `OPENAI_*`).
50
- Pin explicitly with `auth.anthropic`, `auth.openai`, or `auth.gateway`:
44
+ Deep Agents uses the Anthropic client directly or through AI Gateway. With no
45
+ mode configured, the adapter prefers ambient AI Gateway credentials and falls
46
+ back to ambient Anthropic credentials. Pass an authentication environment to
47
+ use programmatically resolved credentials without reading `process.env`:
51
48
 
52
49
  ```ts
53
- createDeepAgents({
54
- model: 'openai/gpt-5',
55
- auth: { openai: { apiKey: process.env.OPENAI_API_KEY } },
50
+ const agent = new HarnessAgent({
51
+ harness: createDeepAgents({
52
+ auth: { ANTHROPIC_API_KEY: token },
53
+ }),
54
+ model: 'anthropic/claude-sonnet-4.5',
56
55
  });
57
56
  ```
58
57