@anthropic-ai/sdk 0.119.0 → 0.120.0
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 +13 -0
- package/helpers/beta/environments.d.mts +5 -4
- package/helpers/beta/environments.d.mts.map +1 -1
- package/helpers/beta/environments.d.ts +5 -4
- package/helpers/beta/environments.d.ts.map +1 -1
- package/helpers/beta/environments.js +5 -4
- package/helpers/beta/environments.js.map +1 -1
- package/helpers/beta/environments.mjs +5 -4
- package/helpers/beta/environments.mjs.map +1 -1
- package/internal/file-store.d.mts +136 -0
- package/internal/file-store.d.mts.map +1 -0
- package/internal/file-store.d.ts +136 -0
- package/internal/file-store.d.ts.map +1 -0
- package/internal/file-store.js +531 -0
- package/internal/file-store.js.map +1 -0
- package/internal/file-store.mjs +523 -0
- package/internal/file-store.mjs.map +1 -0
- package/lib/environments/poller.d.mts +6 -0
- package/lib/environments/poller.d.mts.map +1 -1
- package/lib/environments/poller.d.ts +6 -0
- package/lib/environments/poller.d.ts.map +1 -1
- package/lib/environments/poller.js +46 -1
- package/lib/environments/poller.js.map +1 -1
- package/lib/environments/poller.mjs +46 -1
- package/lib/environments/poller.mjs.map +1 -1
- package/lib/environments/worker.d.mts +89 -12
- package/lib/environments/worker.d.mts.map +1 -1
- package/lib/environments/worker.d.ts +89 -12
- package/lib/environments/worker.d.ts.map +1 -1
- package/lib/environments/worker.js +336 -67
- package/lib/environments/worker.js.map +1 -1
- package/lib/environments/worker.mjs +336 -68
- package/lib/environments/worker.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/agents/agents.d.mts +322 -27
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +322 -27
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/agents/index.d.mts +1 -1
- package/resources/beta/agents/index.d.mts.map +1 -1
- package/resources/beta/agents/index.d.ts +1 -1
- package/resources/beta/agents/index.d.ts.map +1 -1
- package/resources/beta/agents/index.js.map +1 -1
- package/resources/beta/agents/index.mjs.map +1 -1
- package/resources/beta/beta.d.mts +2 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +2 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/environments/work.d.mts +5 -1
- package/resources/beta/environments/work.d.mts.map +1 -1
- package/resources/beta/environments/work.d.ts +5 -1
- package/resources/beta/environments/work.d.ts.map +1 -1
- package/resources/beta/environments/work.js +0 -17
- package/resources/beta/environments/work.js.map +1 -1
- package/resources/beta/environments/work.mjs +0 -17
- package/resources/beta/environments/work.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/messages/messages.d.mts +1 -1
- package/resources/beta/messages/messages.d.ts +1 -1
- package/resources/messages/messages.d.mts +1 -1
- package/resources/messages/messages.d.ts +1 -1
- package/src/helpers/beta/environments.ts +5 -4
- package/src/internal/file-store.ts +550 -0
- package/src/lib/environments/poller.ts +47 -1
- package/src/lib/environments/worker.ts +419 -79
- package/src/resources/beta/agents/agents.ts +435 -30
- package/src/resources/beta/agents/index.ts +17 -0
- package/src/resources/beta/beta.ts +34 -0
- package/src/resources/beta/environments/work.ts +7 -0
- package/src/resources/beta/index.ts +17 -0
- package/src/resources/beta/messages/messages.ts +1 -1
- package/src/resources/messages/messages.ts +1 -1
- package/src/tools/agent-toolset/fs-util.ts +40 -24
- package/src/tools/agent-toolset/memories.ts +1017 -0
- package/src/tools/agent-toolset/node.browser.ts +68 -0
- package/src/tools/agent-toolset/node.ts +139 -53
- package/src/tools/agent-toolset/skills.ts +29 -9
- package/src/tools/agent-toolset/sync-interval.ts +30 -0
- package/src/version.ts +1 -1
- package/tools/agent-toolset/fs-util.d.mts +23 -10
- package/tools/agent-toolset/fs-util.d.mts.map +1 -1
- package/tools/agent-toolset/fs-util.d.ts +23 -10
- package/tools/agent-toolset/fs-util.d.ts.map +1 -1
- package/tools/agent-toolset/fs-util.js +40 -25
- package/tools/agent-toolset/fs-util.js.map +1 -1
- package/tools/agent-toolset/fs-util.mjs +38 -25
- package/tools/agent-toolset/fs-util.mjs.map +1 -1
- package/tools/agent-toolset/memories.d.mts +173 -0
- package/tools/agent-toolset/memories.d.mts.map +1 -0
- package/tools/agent-toolset/memories.d.ts +173 -0
- package/tools/agent-toolset/memories.d.ts.map +1 -0
- package/tools/agent-toolset/memories.js +902 -0
- package/tools/agent-toolset/memories.js.map +1 -0
- package/tools/agent-toolset/memories.mjs +895 -0
- package/tools/agent-toolset/memories.mjs.map +1 -0
- package/tools/agent-toolset/node.browser.d.mts +31 -0
- package/tools/agent-toolset/node.browser.d.mts.map +1 -1
- package/tools/agent-toolset/node.browser.d.ts +31 -0
- package/tools/agent-toolset/node.browser.d.ts.map +1 -1
- package/tools/agent-toolset/node.browser.js +59 -1
- package/tools/agent-toolset/node.browser.js.map +1 -1
- package/tools/agent-toolset/node.browser.mjs +54 -0
- package/tools/agent-toolset/node.browser.mjs.map +1 -1
- package/tools/agent-toolset/node.d.mts +54 -22
- package/tools/agent-toolset/node.d.mts.map +1 -1
- package/tools/agent-toolset/node.d.ts +54 -22
- package/tools/agent-toolset/node.d.ts.map +1 -1
- package/tools/agent-toolset/node.js +83 -44
- package/tools/agent-toolset/node.js.map +1 -1
- package/tools/agent-toolset/node.mjs +77 -44
- package/tools/agent-toolset/node.mjs.map +1 -1
- package/tools/agent-toolset/skills.d.mts +16 -7
- package/tools/agent-toolset/skills.d.mts.map +1 -1
- package/tools/agent-toolset/skills.d.ts +16 -7
- package/tools/agent-toolset/skills.d.ts.map +1 -1
- package/tools/agent-toolset/skills.js +27 -9
- package/tools/agent-toolset/skills.js.map +1 -1
- package/tools/agent-toolset/skills.mjs +27 -9
- package/tools/agent-toolset/skills.mjs.map +1 -1
- package/tools/agent-toolset/sync-interval.d.mts +19 -0
- package/tools/agent-toolset/sync-interval.d.mts.map +1 -0
- package/tools/agent-toolset/sync-interval.d.ts +19 -0
- package/tools/agent-toolset/sync-interval.d.ts.map +1 -0
- package/tools/agent-toolset/sync-interval.js +29 -0
- package/tools/agent-toolset/sync-interval.js.map +1 -0
- package/tools/agent-toolset/sync-interval.mjs +25 -0
- package/tools/agent-toolset/sync-interval.mjs.map +1 -0
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -231,40 +231,28 @@ export interface BetaManagedAgentsAgentReference {
|
|
|
231
231
|
/**
|
|
232
232
|
* Configuration for a specific agent tool.
|
|
233
233
|
*/
|
|
234
|
-
export
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
* Permission policy for tool execution.
|
|
244
|
-
*/
|
|
245
|
-
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
246
|
-
}
|
|
234
|
+
export type BetaManagedAgentsAgentToolConfig =
|
|
235
|
+
| BetaManagedAgentsBashToolConfig
|
|
236
|
+
| BetaManagedAgentsEditToolConfig
|
|
237
|
+
| BetaManagedAgentsReadToolConfig
|
|
238
|
+
| BetaManagedAgentsWriteToolConfig
|
|
239
|
+
| BetaManagedAgentsGlobToolConfig
|
|
240
|
+
| BetaManagedAgentsGrepToolConfig
|
|
241
|
+
| BetaManagedAgentsWebFetchToolConfig
|
|
242
|
+
| BetaManagedAgentsWebSearchToolConfig;
|
|
247
243
|
|
|
248
244
|
/**
|
|
249
245
|
* Configuration override for a specific tool within a toolset.
|
|
250
246
|
*/
|
|
251
|
-
export
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
*/
|
|
261
|
-
enabled?: boolean | null;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Permission policy for tool execution.
|
|
265
|
-
*/
|
|
266
|
-
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
267
|
-
}
|
|
247
|
+
export type BetaManagedAgentsAgentToolConfigParams =
|
|
248
|
+
| BetaManagedAgentsBashToolConfigParams
|
|
249
|
+
| BetaManagedAgentsEditToolConfigParams
|
|
250
|
+
| BetaManagedAgentsReadToolConfigParams
|
|
251
|
+
| BetaManagedAgentsWriteToolConfigParams
|
|
252
|
+
| BetaManagedAgentsGlobToolConfigParams
|
|
253
|
+
| BetaManagedAgentsGrepToolConfigParams
|
|
254
|
+
| BetaManagedAgentsWebFetchToolConfigParams
|
|
255
|
+
| BetaManagedAgentsWebSearchToolConfigParams;
|
|
268
256
|
|
|
269
257
|
/**
|
|
270
258
|
* Resolved default configuration for agent tools.
|
|
@@ -484,6 +472,45 @@ export interface BetaManagedAgentsAnthropicSkillParams {
|
|
|
484
472
|
version?: string | null;
|
|
485
473
|
}
|
|
486
474
|
|
|
475
|
+
/**
|
|
476
|
+
* Configuration for the bash tool.
|
|
477
|
+
*/
|
|
478
|
+
export interface BetaManagedAgentsBashToolConfig {
|
|
479
|
+
enabled: boolean;
|
|
480
|
+
|
|
481
|
+
name: 'bash';
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Permission policy for tool execution.
|
|
485
|
+
*/
|
|
486
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
487
|
+
|
|
488
|
+
type: 'bash';
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Configuration override for the bash tool.
|
|
493
|
+
*/
|
|
494
|
+
export interface BetaManagedAgentsBashToolConfigParams {
|
|
495
|
+
/**
|
|
496
|
+
* Must be "bash".
|
|
497
|
+
*/
|
|
498
|
+
name: 'bash';
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Whether this tool is enabled and available to Claude. Overrides the
|
|
502
|
+
* default_config setting.
|
|
503
|
+
*/
|
|
504
|
+
enabled?: boolean | null;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Permission policy for tool execution.
|
|
508
|
+
*/
|
|
509
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
510
|
+
|
|
511
|
+
type?: 'bash';
|
|
512
|
+
}
|
|
513
|
+
|
|
487
514
|
/**
|
|
488
515
|
* A resolved user-created custom skill.
|
|
489
516
|
*/
|
|
@@ -568,6 +595,45 @@ export interface BetaManagedAgentsCustomToolParams {
|
|
|
568
595
|
type: 'custom';
|
|
569
596
|
}
|
|
570
597
|
|
|
598
|
+
/**
|
|
599
|
+
* Configuration for the edit tool.
|
|
600
|
+
*/
|
|
601
|
+
export interface BetaManagedAgentsEditToolConfig {
|
|
602
|
+
enabled: boolean;
|
|
603
|
+
|
|
604
|
+
name: 'edit';
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Permission policy for tool execution.
|
|
608
|
+
*/
|
|
609
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
610
|
+
|
|
611
|
+
type: 'edit';
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Configuration override for the edit tool.
|
|
616
|
+
*/
|
|
617
|
+
export interface BetaManagedAgentsEditToolConfigParams {
|
|
618
|
+
/**
|
|
619
|
+
* Must be "edit".
|
|
620
|
+
*/
|
|
621
|
+
name: 'edit';
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Whether this tool is enabled and available to Claude. Overrides the
|
|
625
|
+
* default_config setting.
|
|
626
|
+
*/
|
|
627
|
+
enabled?: boolean | null;
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Permission policy for tool execution.
|
|
631
|
+
*/
|
|
632
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
633
|
+
|
|
634
|
+
type?: 'edit';
|
|
635
|
+
}
|
|
636
|
+
|
|
571
637
|
/**
|
|
572
638
|
* High effort. Favors reasoning depth.
|
|
573
639
|
*/
|
|
@@ -603,6 +669,84 @@ export interface BetaManagedAgentsEffortXhigh {
|
|
|
603
669
|
type: 'xhigh';
|
|
604
670
|
}
|
|
605
671
|
|
|
672
|
+
/**
|
|
673
|
+
* Configuration for the glob tool.
|
|
674
|
+
*/
|
|
675
|
+
export interface BetaManagedAgentsGlobToolConfig {
|
|
676
|
+
enabled: boolean;
|
|
677
|
+
|
|
678
|
+
name: 'glob';
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Permission policy for tool execution.
|
|
682
|
+
*/
|
|
683
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
684
|
+
|
|
685
|
+
type: 'glob';
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Configuration override for the glob tool.
|
|
690
|
+
*/
|
|
691
|
+
export interface BetaManagedAgentsGlobToolConfigParams {
|
|
692
|
+
/**
|
|
693
|
+
* Must be "glob".
|
|
694
|
+
*/
|
|
695
|
+
name: 'glob';
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Whether this tool is enabled and available to Claude. Overrides the
|
|
699
|
+
* default_config setting.
|
|
700
|
+
*/
|
|
701
|
+
enabled?: boolean | null;
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* Permission policy for tool execution.
|
|
705
|
+
*/
|
|
706
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
707
|
+
|
|
708
|
+
type?: 'glob';
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* Configuration for the grep tool.
|
|
713
|
+
*/
|
|
714
|
+
export interface BetaManagedAgentsGrepToolConfig {
|
|
715
|
+
enabled: boolean;
|
|
716
|
+
|
|
717
|
+
name: 'grep';
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Permission policy for tool execution.
|
|
721
|
+
*/
|
|
722
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
723
|
+
|
|
724
|
+
type: 'grep';
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Configuration override for the grep tool.
|
|
729
|
+
*/
|
|
730
|
+
export interface BetaManagedAgentsGrepToolConfigParams {
|
|
731
|
+
/**
|
|
732
|
+
* Must be "grep".
|
|
733
|
+
*/
|
|
734
|
+
name: 'grep';
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Whether this tool is enabled and available to Claude. Overrides the
|
|
738
|
+
* default_config setting.
|
|
739
|
+
*/
|
|
740
|
+
enabled?: boolean | null;
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Permission policy for tool execution.
|
|
744
|
+
*/
|
|
745
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
746
|
+
|
|
747
|
+
type?: 'grep';
|
|
748
|
+
}
|
|
749
|
+
|
|
606
750
|
/**
|
|
607
751
|
* URL-based MCP server connection as returned in API responses.
|
|
608
752
|
*/
|
|
@@ -854,6 +998,45 @@ export interface BetaManagedAgentsMultiagentSelfParams {
|
|
|
854
998
|
type: 'self';
|
|
855
999
|
}
|
|
856
1000
|
|
|
1001
|
+
/**
|
|
1002
|
+
* Configuration for the read tool.
|
|
1003
|
+
*/
|
|
1004
|
+
export interface BetaManagedAgentsReadToolConfig {
|
|
1005
|
+
enabled: boolean;
|
|
1006
|
+
|
|
1007
|
+
name: 'read';
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* Permission policy for tool execution.
|
|
1011
|
+
*/
|
|
1012
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
1013
|
+
|
|
1014
|
+
type: 'read';
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Configuration override for the read tool.
|
|
1019
|
+
*/
|
|
1020
|
+
export interface BetaManagedAgentsReadToolConfigParams {
|
|
1021
|
+
/**
|
|
1022
|
+
* Must be "read".
|
|
1023
|
+
*/
|
|
1024
|
+
name: 'read';
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
* Whether this tool is enabled and available to Claude. Overrides the
|
|
1028
|
+
* default_config setting.
|
|
1029
|
+
*/
|
|
1030
|
+
enabled?: boolean | null;
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Permission policy for tool execution.
|
|
1034
|
+
*/
|
|
1035
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
1036
|
+
|
|
1037
|
+
type?: 'read';
|
|
1038
|
+
}
|
|
1039
|
+
|
|
857
1040
|
/**
|
|
858
1041
|
* Resolved `agent` definition for a single `session_thread`. Snapshot of the agent
|
|
859
1042
|
* at thread creation time. The multiagent roster is not repeated here; read it
|
|
@@ -911,6 +1094,211 @@ export interface BetaManagedAgentsURLMCPServerParams {
|
|
|
911
1094
|
url: string;
|
|
912
1095
|
}
|
|
913
1096
|
|
|
1097
|
+
/**
|
|
1098
|
+
* Approximate user location for search result localization.
|
|
1099
|
+
*/
|
|
1100
|
+
export interface BetaManagedAgentsUserLocation {
|
|
1101
|
+
/**
|
|
1102
|
+
* Location precision. Only "approximate" is supported.
|
|
1103
|
+
*/
|
|
1104
|
+
type: 'approximate';
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* City name.
|
|
1108
|
+
*/
|
|
1109
|
+
city?: string | null;
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Two-letter ISO 3166-1 country code, uppercase.
|
|
1113
|
+
*/
|
|
1114
|
+
country?: string | null;
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* Region or state name.
|
|
1118
|
+
*/
|
|
1119
|
+
region?: string | null;
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* IANA timezone identifier, e.g. "America/Los_Angeles".
|
|
1123
|
+
*/
|
|
1124
|
+
timezone?: string | null;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* Configuration for the web_fetch tool.
|
|
1129
|
+
*/
|
|
1130
|
+
export interface BetaManagedAgentsWebFetchToolConfig {
|
|
1131
|
+
enabled: boolean;
|
|
1132
|
+
|
|
1133
|
+
name: 'web_fetch';
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* Permission policy for tool execution.
|
|
1137
|
+
*/
|
|
1138
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
1139
|
+
|
|
1140
|
+
type: 'web_fetch';
|
|
1141
|
+
|
|
1142
|
+
allowed_domains?: Array<string>;
|
|
1143
|
+
|
|
1144
|
+
blocked_domains?: Array<string>;
|
|
1145
|
+
|
|
1146
|
+
max_content_tokens?: number | null;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* Configuration override for the web_fetch tool.
|
|
1151
|
+
*/
|
|
1152
|
+
export interface BetaManagedAgentsWebFetchToolConfigParams {
|
|
1153
|
+
/**
|
|
1154
|
+
* Must be "web_fetch".
|
|
1155
|
+
*/
|
|
1156
|
+
name: 'web_fetch';
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* Only fetch URLs whose host is one of these domains or a subdomain of one. Each
|
|
1160
|
+
* entry is a plain hostname like "docs.example.com" (no scheme, port, or path). At
|
|
1161
|
+
* most 64 entries; an empty list is rejected (omit the field instead). Cannot be
|
|
1162
|
+
* combined with blocked_domains.
|
|
1163
|
+
*/
|
|
1164
|
+
allowed_domains?: Array<string>;
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
* Never fetch URLs whose host is one of these domains or a subdomain of one. Each
|
|
1168
|
+
* entry is a plain hostname like "ads.example.com" (no scheme, port, or path). At
|
|
1169
|
+
* most 64 entries; an empty list is rejected (omit the field instead). Cannot be
|
|
1170
|
+
* combined with allowed_domains.
|
|
1171
|
+
*/
|
|
1172
|
+
blocked_domains?: Array<string>;
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Whether this tool is enabled and available to Claude. Overrides the
|
|
1176
|
+
* default_config setting.
|
|
1177
|
+
*/
|
|
1178
|
+
enabled?: boolean | null;
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* Maximum number of tokens of fetched text content to include in context per call.
|
|
1182
|
+
* Does not apply to binary content such as PDFs.
|
|
1183
|
+
*/
|
|
1184
|
+
max_content_tokens?: number | null;
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* Permission policy for tool execution.
|
|
1188
|
+
*/
|
|
1189
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
1190
|
+
|
|
1191
|
+
type?: 'web_fetch';
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* Configuration for the web_search tool.
|
|
1196
|
+
*/
|
|
1197
|
+
export interface BetaManagedAgentsWebSearchToolConfig {
|
|
1198
|
+
enabled: boolean;
|
|
1199
|
+
|
|
1200
|
+
name: 'web_search';
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Permission policy for tool execution.
|
|
1204
|
+
*/
|
|
1205
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
1206
|
+
|
|
1207
|
+
type: 'web_search';
|
|
1208
|
+
|
|
1209
|
+
allowed_domains?: Array<string>;
|
|
1210
|
+
|
|
1211
|
+
blocked_domains?: Array<string>;
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* Approximate user location for search result localization.
|
|
1215
|
+
*/
|
|
1216
|
+
user_location?: BetaManagedAgentsUserLocation | null;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Configuration override for the web_search tool.
|
|
1221
|
+
*/
|
|
1222
|
+
export interface BetaManagedAgentsWebSearchToolConfigParams {
|
|
1223
|
+
/**
|
|
1224
|
+
* Must be "web_search".
|
|
1225
|
+
*/
|
|
1226
|
+
name: 'web_search';
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* Only return search results whose host is one of these domains or a subdomain of
|
|
1230
|
+
* one. Each entry is a plain hostname like "docs.example.com" (no scheme or port;
|
|
1231
|
+
* an optional path suffix is accepted). At most 64 entries; an empty list is
|
|
1232
|
+
* rejected (omit the field instead). Cannot be combined with blocked_domains.
|
|
1233
|
+
*/
|
|
1234
|
+
allowed_domains?: Array<string>;
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* Never return search results whose host is one of these domains or a subdomain of
|
|
1238
|
+
* one. Each entry is a plain hostname like "ads.example.com" (no scheme or port;
|
|
1239
|
+
* an optional path suffix is accepted). At most 64 entries; an empty list is
|
|
1240
|
+
* rejected (omit the field instead). Cannot be combined with allowed_domains.
|
|
1241
|
+
*/
|
|
1242
|
+
blocked_domains?: Array<string>;
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* Whether this tool is enabled and available to Claude. Overrides the
|
|
1246
|
+
* default_config setting.
|
|
1247
|
+
*/
|
|
1248
|
+
enabled?: boolean | null;
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* Permission policy for tool execution.
|
|
1252
|
+
*/
|
|
1253
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
1254
|
+
|
|
1255
|
+
type?: 'web_search';
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* Approximate user location for search result localization.
|
|
1259
|
+
*/
|
|
1260
|
+
user_location?: BetaManagedAgentsUserLocation | null;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* Configuration for the write tool.
|
|
1265
|
+
*/
|
|
1266
|
+
export interface BetaManagedAgentsWriteToolConfig {
|
|
1267
|
+
enabled: boolean;
|
|
1268
|
+
|
|
1269
|
+
name: 'write';
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* Permission policy for tool execution.
|
|
1273
|
+
*/
|
|
1274
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
1275
|
+
|
|
1276
|
+
type: 'write';
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* Configuration override for the write tool.
|
|
1281
|
+
*/
|
|
1282
|
+
export interface BetaManagedAgentsWriteToolConfigParams {
|
|
1283
|
+
/**
|
|
1284
|
+
* Must be "write".
|
|
1285
|
+
*/
|
|
1286
|
+
name: 'write';
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* Whether this tool is enabled and available to Claude. Overrides the
|
|
1290
|
+
* default_config setting.
|
|
1291
|
+
*/
|
|
1292
|
+
enabled?: boolean | null;
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* Permission policy for tool execution.
|
|
1296
|
+
*/
|
|
1297
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
1298
|
+
|
|
1299
|
+
type?: 'write';
|
|
1300
|
+
}
|
|
1301
|
+
|
|
914
1302
|
export interface AgentCreateParams {
|
|
915
1303
|
/**
|
|
916
1304
|
* Body param: Model identifier. Accepts the
|
|
@@ -1121,16 +1509,24 @@ export declare namespace Agents {
|
|
|
1121
1509
|
type BetaManagedAgentsAlwaysAskPolicy as BetaManagedAgentsAlwaysAskPolicy,
|
|
1122
1510
|
type BetaManagedAgentsAnthropicSkill as BetaManagedAgentsAnthropicSkill,
|
|
1123
1511
|
type BetaManagedAgentsAnthropicSkillParams as BetaManagedAgentsAnthropicSkillParams,
|
|
1512
|
+
type BetaManagedAgentsBashToolConfig as BetaManagedAgentsBashToolConfig,
|
|
1513
|
+
type BetaManagedAgentsBashToolConfigParams as BetaManagedAgentsBashToolConfigParams,
|
|
1124
1514
|
type BetaManagedAgentsCustomSkill as BetaManagedAgentsCustomSkill,
|
|
1125
1515
|
type BetaManagedAgentsCustomSkillParams as BetaManagedAgentsCustomSkillParams,
|
|
1126
1516
|
type BetaManagedAgentsCustomTool as BetaManagedAgentsCustomTool,
|
|
1127
1517
|
type BetaManagedAgentsCustomToolInputSchema as BetaManagedAgentsCustomToolInputSchema,
|
|
1128
1518
|
type BetaManagedAgentsCustomToolParams as BetaManagedAgentsCustomToolParams,
|
|
1519
|
+
type BetaManagedAgentsEditToolConfig as BetaManagedAgentsEditToolConfig,
|
|
1520
|
+
type BetaManagedAgentsEditToolConfigParams as BetaManagedAgentsEditToolConfigParams,
|
|
1129
1521
|
type BetaManagedAgentsEffortHigh as BetaManagedAgentsEffortHigh,
|
|
1130
1522
|
type BetaManagedAgentsEffortLow as BetaManagedAgentsEffortLow,
|
|
1131
1523
|
type BetaManagedAgentsEffortMax as BetaManagedAgentsEffortMax,
|
|
1132
1524
|
type BetaManagedAgentsEffortMedium as BetaManagedAgentsEffortMedium,
|
|
1133
1525
|
type BetaManagedAgentsEffortXhigh as BetaManagedAgentsEffortXhigh,
|
|
1526
|
+
type BetaManagedAgentsGlobToolConfig as BetaManagedAgentsGlobToolConfig,
|
|
1527
|
+
type BetaManagedAgentsGlobToolConfigParams as BetaManagedAgentsGlobToolConfigParams,
|
|
1528
|
+
type BetaManagedAgentsGrepToolConfig as BetaManagedAgentsGrepToolConfig,
|
|
1529
|
+
type BetaManagedAgentsGrepToolConfigParams as BetaManagedAgentsGrepToolConfigParams,
|
|
1134
1530
|
type BetaManagedAgentsMCPServerURLDefinition as BetaManagedAgentsMCPServerURLDefinition,
|
|
1135
1531
|
type BetaManagedAgentsMCPToolConfig as BetaManagedAgentsMCPToolConfig,
|
|
1136
1532
|
type BetaManagedAgentsMCPToolConfigParams as BetaManagedAgentsMCPToolConfigParams,
|
|
@@ -1144,9 +1540,18 @@ export declare namespace Agents {
|
|
|
1144
1540
|
type BetaManagedAgentsMultiagentCoordinator as BetaManagedAgentsMultiagentCoordinator,
|
|
1145
1541
|
type BetaManagedAgentsMultiagentCoordinatorParams as BetaManagedAgentsMultiagentCoordinatorParams,
|
|
1146
1542
|
type BetaManagedAgentsMultiagentSelfParams as BetaManagedAgentsMultiagentSelfParams,
|
|
1543
|
+
type BetaManagedAgentsReadToolConfig as BetaManagedAgentsReadToolConfig,
|
|
1544
|
+
type BetaManagedAgentsReadToolConfigParams as BetaManagedAgentsReadToolConfigParams,
|
|
1147
1545
|
type BetaManagedAgentsSessionThreadAgent as BetaManagedAgentsSessionThreadAgent,
|
|
1148
1546
|
type BetaManagedAgentsSkillParams as BetaManagedAgentsSkillParams,
|
|
1149
1547
|
type BetaManagedAgentsURLMCPServerParams as BetaManagedAgentsURLMCPServerParams,
|
|
1548
|
+
type BetaManagedAgentsUserLocation as BetaManagedAgentsUserLocation,
|
|
1549
|
+
type BetaManagedAgentsWebFetchToolConfig as BetaManagedAgentsWebFetchToolConfig,
|
|
1550
|
+
type BetaManagedAgentsWebFetchToolConfigParams as BetaManagedAgentsWebFetchToolConfigParams,
|
|
1551
|
+
type BetaManagedAgentsWebSearchToolConfig as BetaManagedAgentsWebSearchToolConfig,
|
|
1552
|
+
type BetaManagedAgentsWebSearchToolConfigParams as BetaManagedAgentsWebSearchToolConfigParams,
|
|
1553
|
+
type BetaManagedAgentsWriteToolConfig as BetaManagedAgentsWriteToolConfig,
|
|
1554
|
+
type BetaManagedAgentsWriteToolConfigParams as BetaManagedAgentsWriteToolConfigParams,
|
|
1150
1555
|
type BetaManagedAgentsAgentsPageCursor as BetaManagedAgentsAgentsPageCursor,
|
|
1151
1556
|
type AgentCreateParams as AgentCreateParams,
|
|
1152
1557
|
type AgentRetrieveParams as AgentRetrieveParams,
|
|
@@ -21,16 +21,24 @@ export {
|
|
|
21
21
|
type BetaManagedAgentsAlwaysAskPolicy,
|
|
22
22
|
type BetaManagedAgentsAnthropicSkill,
|
|
23
23
|
type BetaManagedAgentsAnthropicSkillParams,
|
|
24
|
+
type BetaManagedAgentsBashToolConfig,
|
|
25
|
+
type BetaManagedAgentsBashToolConfigParams,
|
|
24
26
|
type BetaManagedAgentsCustomSkill,
|
|
25
27
|
type BetaManagedAgentsCustomSkillParams,
|
|
26
28
|
type BetaManagedAgentsCustomTool,
|
|
27
29
|
type BetaManagedAgentsCustomToolInputSchema,
|
|
28
30
|
type BetaManagedAgentsCustomToolParams,
|
|
31
|
+
type BetaManagedAgentsEditToolConfig,
|
|
32
|
+
type BetaManagedAgentsEditToolConfigParams,
|
|
29
33
|
type BetaManagedAgentsEffortHigh,
|
|
30
34
|
type BetaManagedAgentsEffortLow,
|
|
31
35
|
type BetaManagedAgentsEffortMax,
|
|
32
36
|
type BetaManagedAgentsEffortMedium,
|
|
33
37
|
type BetaManagedAgentsEffortXhigh,
|
|
38
|
+
type BetaManagedAgentsGlobToolConfig,
|
|
39
|
+
type BetaManagedAgentsGlobToolConfigParams,
|
|
40
|
+
type BetaManagedAgentsGrepToolConfig,
|
|
41
|
+
type BetaManagedAgentsGrepToolConfigParams,
|
|
34
42
|
type BetaManagedAgentsMCPServerURLDefinition,
|
|
35
43
|
type BetaManagedAgentsMCPToolConfig,
|
|
36
44
|
type BetaManagedAgentsMCPToolConfigParams,
|
|
@@ -44,9 +52,18 @@ export {
|
|
|
44
52
|
type BetaManagedAgentsMultiagentCoordinator,
|
|
45
53
|
type BetaManagedAgentsMultiagentCoordinatorParams,
|
|
46
54
|
type BetaManagedAgentsMultiagentSelfParams,
|
|
55
|
+
type BetaManagedAgentsReadToolConfig,
|
|
56
|
+
type BetaManagedAgentsReadToolConfigParams,
|
|
47
57
|
type BetaManagedAgentsSessionThreadAgent,
|
|
48
58
|
type BetaManagedAgentsSkillParams,
|
|
49
59
|
type BetaManagedAgentsURLMCPServerParams,
|
|
60
|
+
type BetaManagedAgentsUserLocation,
|
|
61
|
+
type BetaManagedAgentsWebFetchToolConfig,
|
|
62
|
+
type BetaManagedAgentsWebFetchToolConfigParams,
|
|
63
|
+
type BetaManagedAgentsWebSearchToolConfig,
|
|
64
|
+
type BetaManagedAgentsWebSearchToolConfigParams,
|
|
65
|
+
type BetaManagedAgentsWriteToolConfig,
|
|
66
|
+
type BetaManagedAgentsWriteToolConfigParams,
|
|
50
67
|
type AgentCreateParams,
|
|
51
68
|
type AgentRetrieveParams,
|
|
52
69
|
type AgentUpdateParams,
|
|
@@ -218,16 +218,24 @@ import {
|
|
|
218
218
|
BetaManagedAgentsAlwaysAskPolicy,
|
|
219
219
|
BetaManagedAgentsAnthropicSkill,
|
|
220
220
|
BetaManagedAgentsAnthropicSkillParams,
|
|
221
|
+
BetaManagedAgentsBashToolConfig,
|
|
222
|
+
BetaManagedAgentsBashToolConfigParams,
|
|
221
223
|
BetaManagedAgentsCustomSkill,
|
|
222
224
|
BetaManagedAgentsCustomSkillParams,
|
|
223
225
|
BetaManagedAgentsCustomTool,
|
|
224
226
|
BetaManagedAgentsCustomToolInputSchema,
|
|
225
227
|
BetaManagedAgentsCustomToolParams,
|
|
228
|
+
BetaManagedAgentsEditToolConfig,
|
|
229
|
+
BetaManagedAgentsEditToolConfigParams,
|
|
226
230
|
BetaManagedAgentsEffortHigh,
|
|
227
231
|
BetaManagedAgentsEffortLow,
|
|
228
232
|
BetaManagedAgentsEffortMax,
|
|
229
233
|
BetaManagedAgentsEffortMedium,
|
|
230
234
|
BetaManagedAgentsEffortXhigh,
|
|
235
|
+
BetaManagedAgentsGlobToolConfig,
|
|
236
|
+
BetaManagedAgentsGlobToolConfigParams,
|
|
237
|
+
BetaManagedAgentsGrepToolConfig,
|
|
238
|
+
BetaManagedAgentsGrepToolConfigParams,
|
|
231
239
|
BetaManagedAgentsMCPServerURLDefinition,
|
|
232
240
|
BetaManagedAgentsMCPToolConfig,
|
|
233
241
|
BetaManagedAgentsMCPToolConfigParams,
|
|
@@ -241,9 +249,18 @@ import {
|
|
|
241
249
|
BetaManagedAgentsMultiagentCoordinator,
|
|
242
250
|
BetaManagedAgentsMultiagentCoordinatorParams,
|
|
243
251
|
BetaManagedAgentsMultiagentSelfParams,
|
|
252
|
+
BetaManagedAgentsReadToolConfig,
|
|
253
|
+
BetaManagedAgentsReadToolConfigParams,
|
|
244
254
|
BetaManagedAgentsSessionThreadAgent,
|
|
245
255
|
BetaManagedAgentsSkillParams,
|
|
246
256
|
BetaManagedAgentsURLMCPServerParams,
|
|
257
|
+
BetaManagedAgentsUserLocation,
|
|
258
|
+
BetaManagedAgentsWebFetchToolConfig,
|
|
259
|
+
BetaManagedAgentsWebFetchToolConfigParams,
|
|
260
|
+
BetaManagedAgentsWebSearchToolConfig,
|
|
261
|
+
BetaManagedAgentsWebSearchToolConfigParams,
|
|
262
|
+
BetaManagedAgentsWriteToolConfig,
|
|
263
|
+
BetaManagedAgentsWriteToolConfigParams,
|
|
247
264
|
} from './agents/agents';
|
|
248
265
|
import * as EnvironmentsAPI from './environments/environments';
|
|
249
266
|
import {
|
|
@@ -1179,16 +1196,24 @@ export declare namespace Beta {
|
|
|
1179
1196
|
type BetaManagedAgentsAlwaysAskPolicy as BetaManagedAgentsAlwaysAskPolicy,
|
|
1180
1197
|
type BetaManagedAgentsAnthropicSkill as BetaManagedAgentsAnthropicSkill,
|
|
1181
1198
|
type BetaManagedAgentsAnthropicSkillParams as BetaManagedAgentsAnthropicSkillParams,
|
|
1199
|
+
type BetaManagedAgentsBashToolConfig as BetaManagedAgentsBashToolConfig,
|
|
1200
|
+
type BetaManagedAgentsBashToolConfigParams as BetaManagedAgentsBashToolConfigParams,
|
|
1182
1201
|
type BetaManagedAgentsCustomSkill as BetaManagedAgentsCustomSkill,
|
|
1183
1202
|
type BetaManagedAgentsCustomSkillParams as BetaManagedAgentsCustomSkillParams,
|
|
1184
1203
|
type BetaManagedAgentsCustomTool as BetaManagedAgentsCustomTool,
|
|
1185
1204
|
type BetaManagedAgentsCustomToolInputSchema as BetaManagedAgentsCustomToolInputSchema,
|
|
1186
1205
|
type BetaManagedAgentsCustomToolParams as BetaManagedAgentsCustomToolParams,
|
|
1206
|
+
type BetaManagedAgentsEditToolConfig as BetaManagedAgentsEditToolConfig,
|
|
1207
|
+
type BetaManagedAgentsEditToolConfigParams as BetaManagedAgentsEditToolConfigParams,
|
|
1187
1208
|
type BetaManagedAgentsEffortHigh as BetaManagedAgentsEffortHigh,
|
|
1188
1209
|
type BetaManagedAgentsEffortLow as BetaManagedAgentsEffortLow,
|
|
1189
1210
|
type BetaManagedAgentsEffortMax as BetaManagedAgentsEffortMax,
|
|
1190
1211
|
type BetaManagedAgentsEffortMedium as BetaManagedAgentsEffortMedium,
|
|
1191
1212
|
type BetaManagedAgentsEffortXhigh as BetaManagedAgentsEffortXhigh,
|
|
1213
|
+
type BetaManagedAgentsGlobToolConfig as BetaManagedAgentsGlobToolConfig,
|
|
1214
|
+
type BetaManagedAgentsGlobToolConfigParams as BetaManagedAgentsGlobToolConfigParams,
|
|
1215
|
+
type BetaManagedAgentsGrepToolConfig as BetaManagedAgentsGrepToolConfig,
|
|
1216
|
+
type BetaManagedAgentsGrepToolConfigParams as BetaManagedAgentsGrepToolConfigParams,
|
|
1192
1217
|
type BetaManagedAgentsMCPServerURLDefinition as BetaManagedAgentsMCPServerURLDefinition,
|
|
1193
1218
|
type BetaManagedAgentsMCPToolConfig as BetaManagedAgentsMCPToolConfig,
|
|
1194
1219
|
type BetaManagedAgentsMCPToolConfigParams as BetaManagedAgentsMCPToolConfigParams,
|
|
@@ -1202,9 +1227,18 @@ export declare namespace Beta {
|
|
|
1202
1227
|
type BetaManagedAgentsMultiagentCoordinator as BetaManagedAgentsMultiagentCoordinator,
|
|
1203
1228
|
type BetaManagedAgentsMultiagentCoordinatorParams as BetaManagedAgentsMultiagentCoordinatorParams,
|
|
1204
1229
|
type BetaManagedAgentsMultiagentSelfParams as BetaManagedAgentsMultiagentSelfParams,
|
|
1230
|
+
type BetaManagedAgentsReadToolConfig as BetaManagedAgentsReadToolConfig,
|
|
1231
|
+
type BetaManagedAgentsReadToolConfigParams as BetaManagedAgentsReadToolConfigParams,
|
|
1205
1232
|
type BetaManagedAgentsSessionThreadAgent as BetaManagedAgentsSessionThreadAgent,
|
|
1206
1233
|
type BetaManagedAgentsSkillParams as BetaManagedAgentsSkillParams,
|
|
1207
1234
|
type BetaManagedAgentsURLMCPServerParams as BetaManagedAgentsURLMCPServerParams,
|
|
1235
|
+
type BetaManagedAgentsUserLocation as BetaManagedAgentsUserLocation,
|
|
1236
|
+
type BetaManagedAgentsWebFetchToolConfig as BetaManagedAgentsWebFetchToolConfig,
|
|
1237
|
+
type BetaManagedAgentsWebFetchToolConfigParams as BetaManagedAgentsWebFetchToolConfigParams,
|
|
1238
|
+
type BetaManagedAgentsWebSearchToolConfig as BetaManagedAgentsWebSearchToolConfig,
|
|
1239
|
+
type BetaManagedAgentsWebSearchToolConfigParams as BetaManagedAgentsWebSearchToolConfigParams,
|
|
1240
|
+
type BetaManagedAgentsWriteToolConfig as BetaManagedAgentsWriteToolConfig,
|
|
1241
|
+
type BetaManagedAgentsWriteToolConfigParams as BetaManagedAgentsWriteToolConfigParams,
|
|
1208
1242
|
type BetaManagedAgentsAgentsPageCursor as BetaManagedAgentsAgentsPageCursor,
|
|
1209
1243
|
type AgentCreateParams as AgentCreateParams,
|
|
1210
1244
|
type AgentRetrieveParams as AgentRetrieveParams,
|
|
@@ -302,6 +302,13 @@ export class Work extends APIResource {
|
|
|
302
302
|
* await client.beta.environments.work.worker({ workdir: '/workspace' }).handleItem();
|
|
303
303
|
* ```
|
|
304
304
|
*/
|
|
305
|
+
worker(opts: Omit<RunnerEnvironmentWorkerOptions, 'client' | 'unrestrictedPaths'>): EnvironmentWorker;
|
|
306
|
+
/** @deprecated `unrestrictedPaths` is no longer accepted — see {@link RunnerEnvironmentWorkerOptions.unrestrictedPaths}. */
|
|
307
|
+
worker(
|
|
308
|
+
opts: Omit<RunnerEnvironmentWorkerOptions, 'client' | 'unrestrictedPaths'> & {
|
|
309
|
+
unrestrictedPaths: boolean;
|
|
310
|
+
},
|
|
311
|
+
): EnvironmentWorker; // help language servers see deprecation
|
|
305
312
|
worker(opts: Omit<RunnerEnvironmentWorkerOptions, 'client'>): EnvironmentWorker {
|
|
306
313
|
return new EnvironmentWorker({ ...opts, client: this._client as Anthropic });
|
|
307
314
|
}
|