@deepagents/toolbox 4.3.0 → 6.0.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.
@@ -1,6 +1,252 @@
1
- export declare const execute_os_command: import("ai").Tool<{
2
- command: string[];
3
- working_directory?: string | undefined;
4
- environment_vars?: Record<string, string> | undefined;
5
- }, string>;
1
+ export declare const execute_os_command: ({
2
+ title?: string;
3
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
4
+ metadata?: import("@ai-sdk/provider").JSONObject;
5
+ inputSchema: import("ai").FlexibleSchema<{
6
+ command: string[];
7
+ working_directory?: string | undefined;
8
+ environment_vars?: Record<string, string> | undefined;
9
+ }>;
10
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
11
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
12
+ command: string[];
13
+ working_directory?: string | undefined;
14
+ environment_vars?: Record<string, string> | undefined;
15
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
16
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
17
+ onInputDelta?: ((options: {
18
+ inputTextDelta: string;
19
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
20
+ onInputAvailable?: ((options: {
21
+ input: {
22
+ command: string[];
23
+ working_directory?: string | undefined;
24
+ environment_vars?: Record<string, string> | undefined;
25
+ };
26
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
27
+ toModelOutput?: ((options: {
28
+ toolCallId: string;
29
+ input: {
30
+ command: string[];
31
+ working_directory?: string | undefined;
32
+ environment_vars?: Record<string, string> | undefined;
33
+ };
34
+ output: string;
35
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
36
+ } & {
37
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
38
+ execute: import("ai").ToolExecuteFunction<{
39
+ command: string[];
40
+ working_directory?: string | undefined;
41
+ environment_vars?: Record<string, string> | undefined;
42
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
43
+ } & {
44
+ description?: string | ((options: {
45
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
46
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
47
+ }) => string) | undefined;
48
+ strict?: boolean;
49
+ inputExamples?: {
50
+ input: NoInfer<{
51
+ command: string[];
52
+ working_directory?: string | undefined;
53
+ environment_vars?: Record<string, string> | undefined;
54
+ }>;
55
+ }[] | undefined;
56
+ id?: never;
57
+ isProviderExecuted?: never;
58
+ args?: never;
59
+ supportsDeferredResults?: never;
60
+ } & {
61
+ type?: undefined | "function";
62
+ } & {
63
+ execute: import("ai").ToolExecuteFunction<{
64
+ command: string[];
65
+ working_directory?: string | undefined;
66
+ environment_vars?: Record<string, string> | undefined;
67
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
68
+ }) | ({
69
+ title?: string;
70
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
71
+ metadata?: import("@ai-sdk/provider").JSONObject;
72
+ inputSchema: import("ai").FlexibleSchema<{
73
+ command: string[];
74
+ working_directory?: string | undefined;
75
+ environment_vars?: Record<string, string> | undefined;
76
+ }>;
77
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
78
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
79
+ command: string[];
80
+ working_directory?: string | undefined;
81
+ environment_vars?: Record<string, string> | undefined;
82
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
83
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
84
+ onInputDelta?: ((options: {
85
+ inputTextDelta: string;
86
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
87
+ onInputAvailable?: ((options: {
88
+ input: {
89
+ command: string[];
90
+ working_directory?: string | undefined;
91
+ environment_vars?: Record<string, string> | undefined;
92
+ };
93
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
94
+ toModelOutput?: ((options: {
95
+ toolCallId: string;
96
+ input: {
97
+ command: string[];
98
+ working_directory?: string | undefined;
99
+ environment_vars?: Record<string, string> | undefined;
100
+ };
101
+ output: string;
102
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
103
+ } & {
104
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
105
+ execute: import("ai").ToolExecuteFunction<{
106
+ command: string[];
107
+ working_directory?: string | undefined;
108
+ environment_vars?: Record<string, string> | undefined;
109
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
110
+ } & {
111
+ description?: string | ((options: {
112
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
113
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
114
+ }) => string) | undefined;
115
+ strict?: boolean;
116
+ inputExamples?: {
117
+ input: NoInfer<{
118
+ command: string[];
119
+ working_directory?: string | undefined;
120
+ environment_vars?: Record<string, string> | undefined;
121
+ }>;
122
+ }[] | undefined;
123
+ id?: never;
124
+ isProviderExecuted?: never;
125
+ args?: never;
126
+ supportsDeferredResults?: never;
127
+ } & {
128
+ type: "dynamic";
129
+ } & {
130
+ execute: import("ai").ToolExecuteFunction<{
131
+ command: string[];
132
+ working_directory?: string | undefined;
133
+ environment_vars?: Record<string, string> | undefined;
134
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
135
+ }) | ({
136
+ title?: string;
137
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
138
+ metadata?: import("@ai-sdk/provider").JSONObject;
139
+ inputSchema: import("ai").FlexibleSchema<{
140
+ command: string[];
141
+ working_directory?: string | undefined;
142
+ environment_vars?: Record<string, string> | undefined;
143
+ }>;
144
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
145
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
146
+ command: string[];
147
+ working_directory?: string | undefined;
148
+ environment_vars?: Record<string, string> | undefined;
149
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
150
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
151
+ onInputDelta?: ((options: {
152
+ inputTextDelta: string;
153
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
154
+ onInputAvailable?: ((options: {
155
+ input: {
156
+ command: string[];
157
+ working_directory?: string | undefined;
158
+ environment_vars?: Record<string, string> | undefined;
159
+ };
160
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
161
+ toModelOutput?: ((options: {
162
+ toolCallId: string;
163
+ input: {
164
+ command: string[];
165
+ working_directory?: string | undefined;
166
+ environment_vars?: Record<string, string> | undefined;
167
+ };
168
+ output: string;
169
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
170
+ } & {
171
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
172
+ execute: import("ai").ToolExecuteFunction<{
173
+ command: string[];
174
+ working_directory?: string | undefined;
175
+ environment_vars?: Record<string, string> | undefined;
176
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
177
+ } & {
178
+ type: "provider";
179
+ id: `${string}.${string}`;
180
+ args: Record<string, unknown>;
181
+ description?: never;
182
+ strict?: never;
183
+ inputExamples?: never;
184
+ } & {
185
+ isProviderExecuted: false;
186
+ supportsDeferredResults?: never;
187
+ } & {
188
+ execute: import("ai").ToolExecuteFunction<{
189
+ command: string[];
190
+ working_directory?: string | undefined;
191
+ environment_vars?: Record<string, string> | undefined;
192
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
193
+ }) | ({
194
+ title?: string;
195
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
196
+ metadata?: import("@ai-sdk/provider").JSONObject;
197
+ inputSchema: import("ai").FlexibleSchema<{
198
+ command: string[];
199
+ working_directory?: string | undefined;
200
+ environment_vars?: Record<string, string> | undefined;
201
+ }>;
202
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
203
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
204
+ command: string[];
205
+ working_directory?: string | undefined;
206
+ environment_vars?: Record<string, string> | undefined;
207
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
208
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
209
+ onInputDelta?: ((options: {
210
+ inputTextDelta: string;
211
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
212
+ onInputAvailable?: ((options: {
213
+ input: {
214
+ command: string[];
215
+ working_directory?: string | undefined;
216
+ environment_vars?: Record<string, string> | undefined;
217
+ };
218
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
219
+ toModelOutput?: ((options: {
220
+ toolCallId: string;
221
+ input: {
222
+ command: string[];
223
+ working_directory?: string | undefined;
224
+ environment_vars?: Record<string, string> | undefined;
225
+ };
226
+ output: string;
227
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
228
+ } & {
229
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
230
+ execute: import("ai").ToolExecuteFunction<{
231
+ command: string[];
232
+ working_directory?: string | undefined;
233
+ environment_vars?: Record<string, string> | undefined;
234
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
235
+ } & {
236
+ type: "provider";
237
+ id: `${string}.${string}`;
238
+ args: Record<string, unknown>;
239
+ description?: never;
240
+ strict?: never;
241
+ inputExamples?: never;
242
+ } & {
243
+ isProviderExecuted: true;
244
+ supportsDeferredResults?: boolean;
245
+ } & {
246
+ execute: import("ai").ToolExecuteFunction<{
247
+ command: string[];
248
+ working_directory?: string | undefined;
249
+ environment_vars?: Record<string, string> | undefined;
250
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
251
+ });
6
252
  //# sourceMappingURL=container.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../src/lib/container.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;UA+B7B,CAAC"}
1
+ {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../src/lib/container.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+B7B,CAAC"}