@ai-sdk/harness-claude-code 1.0.36 → 1.0.38

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.d.ts CHANGED
@@ -1,4 +1,6 @@
1
+ import * as _ai_sdk_provider from '@ai-sdk/provider';
1
2
  import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
3
+ import { Experimental_SandboxSession } from '@ai-sdk/provider-utils';
2
4
  import * as _ai_sdk_harness from '@ai-sdk/harness';
3
5
  import { HarnessV1, HarnessV1BuiltinTool } from '@ai-sdk/harness';
4
6
 
@@ -205,10 +207,387 @@ declare const CLAUDE_CODE_BUILTIN_TOOLS: {
205
207
  source?: string | undefined;
206
208
  } | undefined;
207
209
  }, any, any>;
208
- readonly Skill: _ai_sdk_provider_utils.Tool<{
209
- skill: string;
210
- args?: string | undefined;
211
- }, any, any>;
210
+ readonly Skill: {
211
+ readonly toolUseKind: "readonly";
212
+ readonly title?: string;
213
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
214
+ readonly metadata?: _ai_sdk_provider.JSONObject;
215
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
216
+ skill: string;
217
+ args?: string | undefined;
218
+ }>;
219
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
220
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
221
+ skill: string;
222
+ args?: string | undefined;
223
+ }, any> | undefined;
224
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
225
+ readonly onInputDelta?: ((options: {
226
+ inputTextDelta: string;
227
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
228
+ readonly onInputAvailable?: ((options: {
229
+ input: {
230
+ skill: string;
231
+ args?: string | undefined;
232
+ };
233
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
234
+ readonly toModelOutput?: ((options: {
235
+ toolCallId: string;
236
+ input: {
237
+ skill: string;
238
+ args?: string | undefined;
239
+ };
240
+ output: any;
241
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
242
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
243
+ readonly execute?: never;
244
+ readonly description?: string | ((options: {
245
+ context: any;
246
+ experimental_sandbox?: Experimental_SandboxSession;
247
+ }) => string) | undefined;
248
+ readonly strict?: boolean;
249
+ readonly inputExamples?: {
250
+ input: NoInfer<{
251
+ skill: string;
252
+ args?: string | undefined;
253
+ }>;
254
+ }[] | undefined;
255
+ readonly id?: never;
256
+ readonly isProviderExecuted?: never;
257
+ readonly args?: never;
258
+ readonly supportsDeferredResults?: never;
259
+ readonly type?: undefined | "function";
260
+ } | {
261
+ readonly toolUseKind: "readonly";
262
+ readonly title?: string;
263
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
264
+ readonly metadata?: _ai_sdk_provider.JSONObject;
265
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
266
+ skill: string;
267
+ args?: string | undefined;
268
+ }>;
269
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
270
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
271
+ skill: string;
272
+ args?: string | undefined;
273
+ }, any> | undefined;
274
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
275
+ readonly onInputDelta?: ((options: {
276
+ inputTextDelta: string;
277
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
278
+ readonly onInputAvailable?: ((options: {
279
+ input: {
280
+ skill: string;
281
+ args?: string | undefined;
282
+ };
283
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
284
+ readonly toModelOutput?: ((options: {
285
+ toolCallId: string;
286
+ input: {
287
+ skill: string;
288
+ args?: string | undefined;
289
+ };
290
+ output: any;
291
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
292
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
293
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
294
+ skill: string;
295
+ args?: string | undefined;
296
+ }, any, any> | undefined;
297
+ readonly description?: string | ((options: {
298
+ context: any;
299
+ experimental_sandbox?: Experimental_SandboxSession;
300
+ }) => string) | undefined;
301
+ readonly strict?: boolean;
302
+ readonly inputExamples?: {
303
+ input: NoInfer<{
304
+ skill: string;
305
+ args?: string | undefined;
306
+ }>;
307
+ }[] | undefined;
308
+ readonly id?: never;
309
+ readonly isProviderExecuted?: never;
310
+ readonly args?: never;
311
+ readonly supportsDeferredResults?: never;
312
+ readonly type?: undefined | "function";
313
+ } | {
314
+ readonly toolUseKind: "readonly";
315
+ readonly title?: string;
316
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
317
+ readonly metadata?: _ai_sdk_provider.JSONObject;
318
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
319
+ skill: string;
320
+ args?: string | undefined;
321
+ }>;
322
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
323
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
324
+ skill: string;
325
+ args?: string | undefined;
326
+ }, any> | undefined;
327
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
328
+ readonly onInputDelta?: ((options: {
329
+ inputTextDelta: string;
330
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
331
+ readonly onInputAvailable?: ((options: {
332
+ input: {
333
+ skill: string;
334
+ args?: string | undefined;
335
+ };
336
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
337
+ readonly toModelOutput?: ((options: {
338
+ toolCallId: string;
339
+ input: {
340
+ skill: string;
341
+ args?: string | undefined;
342
+ };
343
+ output: any;
344
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
345
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
346
+ readonly execute?: never;
347
+ readonly description?: string | ((options: {
348
+ context: any;
349
+ experimental_sandbox?: Experimental_SandboxSession;
350
+ }) => string) | undefined;
351
+ readonly strict?: boolean;
352
+ readonly inputExamples?: {
353
+ input: NoInfer<{
354
+ skill: string;
355
+ args?: string | undefined;
356
+ }>;
357
+ }[] | undefined;
358
+ readonly id?: never;
359
+ readonly isProviderExecuted?: never;
360
+ readonly args?: never;
361
+ readonly supportsDeferredResults?: never;
362
+ readonly type: "dynamic";
363
+ } | {
364
+ readonly toolUseKind: "readonly";
365
+ readonly title?: string;
366
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
367
+ readonly metadata?: _ai_sdk_provider.JSONObject;
368
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
369
+ skill: string;
370
+ args?: string | undefined;
371
+ }>;
372
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
373
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
374
+ skill: string;
375
+ args?: string | undefined;
376
+ }, any> | undefined;
377
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
378
+ readonly onInputDelta?: ((options: {
379
+ inputTextDelta: string;
380
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
381
+ readonly onInputAvailable?: ((options: {
382
+ input: {
383
+ skill: string;
384
+ args?: string | undefined;
385
+ };
386
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
387
+ readonly toModelOutput?: ((options: {
388
+ toolCallId: string;
389
+ input: {
390
+ skill: string;
391
+ args?: string | undefined;
392
+ };
393
+ output: any;
394
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
395
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
396
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
397
+ skill: string;
398
+ args?: string | undefined;
399
+ }, any, any> | undefined;
400
+ readonly description?: string | ((options: {
401
+ context: any;
402
+ experimental_sandbox?: Experimental_SandboxSession;
403
+ }) => string) | undefined;
404
+ readonly strict?: boolean;
405
+ readonly inputExamples?: {
406
+ input: NoInfer<{
407
+ skill: string;
408
+ args?: string | undefined;
409
+ }>;
410
+ }[] | undefined;
411
+ readonly id?: never;
412
+ readonly isProviderExecuted?: never;
413
+ readonly args?: never;
414
+ readonly supportsDeferredResults?: never;
415
+ readonly type: "dynamic";
416
+ } | {
417
+ readonly toolUseKind: "readonly";
418
+ readonly title?: string;
419
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
420
+ readonly metadata?: _ai_sdk_provider.JSONObject;
421
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
422
+ skill: string;
423
+ args?: string | undefined;
424
+ }>;
425
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
426
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
427
+ skill: string;
428
+ args?: string | undefined;
429
+ }, any> | undefined;
430
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
431
+ readonly onInputDelta?: ((options: {
432
+ inputTextDelta: string;
433
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
434
+ readonly onInputAvailable?: ((options: {
435
+ input: {
436
+ skill: string;
437
+ args?: string | undefined;
438
+ };
439
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
440
+ readonly toModelOutput?: ((options: {
441
+ toolCallId: string;
442
+ input: {
443
+ skill: string;
444
+ args?: string | undefined;
445
+ };
446
+ output: any;
447
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
448
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
449
+ readonly execute?: never;
450
+ readonly type: "provider";
451
+ readonly id: `${string}.${string}`;
452
+ readonly args: Record<string, unknown>;
453
+ readonly description?: never;
454
+ readonly strict?: never;
455
+ readonly inputExamples?: never;
456
+ readonly isProviderExecuted: false;
457
+ readonly supportsDeferredResults?: never;
458
+ } | {
459
+ readonly toolUseKind: "readonly";
460
+ readonly title?: string;
461
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
462
+ readonly metadata?: _ai_sdk_provider.JSONObject;
463
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
464
+ skill: string;
465
+ args?: string | undefined;
466
+ }>;
467
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
468
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
469
+ skill: string;
470
+ args?: string | undefined;
471
+ }, any> | undefined;
472
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
473
+ readonly onInputDelta?: ((options: {
474
+ inputTextDelta: string;
475
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
476
+ readonly onInputAvailable?: ((options: {
477
+ input: {
478
+ skill: string;
479
+ args?: string | undefined;
480
+ };
481
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
482
+ readonly toModelOutput?: ((options: {
483
+ toolCallId: string;
484
+ input: {
485
+ skill: string;
486
+ args?: string | undefined;
487
+ };
488
+ output: any;
489
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
490
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
491
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
492
+ skill: string;
493
+ args?: string | undefined;
494
+ }, any, any> | undefined;
495
+ readonly type: "provider";
496
+ readonly id: `${string}.${string}`;
497
+ readonly args: Record<string, unknown>;
498
+ readonly description?: never;
499
+ readonly strict?: never;
500
+ readonly inputExamples?: never;
501
+ readonly isProviderExecuted: false;
502
+ readonly supportsDeferredResults?: never;
503
+ } | {
504
+ readonly toolUseKind: "readonly";
505
+ readonly title?: string;
506
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
507
+ readonly metadata?: _ai_sdk_provider.JSONObject;
508
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
509
+ skill: string;
510
+ args?: string | undefined;
511
+ }>;
512
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
513
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
514
+ skill: string;
515
+ args?: string | undefined;
516
+ }, any> | undefined;
517
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
518
+ readonly onInputDelta?: ((options: {
519
+ inputTextDelta: string;
520
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
521
+ readonly onInputAvailable?: ((options: {
522
+ input: {
523
+ skill: string;
524
+ args?: string | undefined;
525
+ };
526
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
527
+ readonly toModelOutput?: ((options: {
528
+ toolCallId: string;
529
+ input: {
530
+ skill: string;
531
+ args?: string | undefined;
532
+ };
533
+ output: any;
534
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
535
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
536
+ readonly execute?: never;
537
+ readonly type: "provider";
538
+ readonly id: `${string}.${string}`;
539
+ readonly args: Record<string, unknown>;
540
+ readonly description?: never;
541
+ readonly strict?: never;
542
+ readonly inputExamples?: never;
543
+ readonly isProviderExecuted: true;
544
+ readonly supportsDeferredResults?: boolean;
545
+ } | {
546
+ readonly toolUseKind: "readonly";
547
+ readonly title?: string;
548
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
549
+ readonly metadata?: _ai_sdk_provider.JSONObject;
550
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
551
+ skill: string;
552
+ args?: string | undefined;
553
+ }>;
554
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
555
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
556
+ skill: string;
557
+ args?: string | undefined;
558
+ }, any> | undefined;
559
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
560
+ readonly onInputDelta?: ((options: {
561
+ inputTextDelta: string;
562
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
563
+ readonly onInputAvailable?: ((options: {
564
+ input: {
565
+ skill: string;
566
+ args?: string | undefined;
567
+ };
568
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
569
+ readonly toModelOutput?: ((options: {
570
+ toolCallId: string;
571
+ input: {
572
+ skill: string;
573
+ args?: string | undefined;
574
+ };
575
+ output: any;
576
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
577
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
578
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
579
+ skill: string;
580
+ args?: string | undefined;
581
+ }, any, any> | undefined;
582
+ readonly type: "provider";
583
+ readonly id: `${string}.${string}`;
584
+ readonly args: Record<string, unknown>;
585
+ readonly description?: never;
586
+ readonly strict?: never;
587
+ readonly inputExamples?: never;
588
+ readonly isProviderExecuted: true;
589
+ readonly supportsDeferredResults?: boolean;
590
+ };
212
591
  readonly ToolSearch: _ai_sdk_provider_utils.Tool<{
213
592
  query: string;
214
593
  max_results?: number | undefined;
@@ -380,10 +759,387 @@ declare const claudeCode: _ai_sdk_harness.HarnessV1<{
380
759
  source?: string | undefined;
381
760
  } | undefined;
382
761
  }, any, any>;
383
- readonly Skill: _ai_sdk_provider_utils.Tool<{
384
- skill: string;
385
- args?: string | undefined;
386
- }, any, any>;
762
+ readonly Skill: {
763
+ readonly toolUseKind: "readonly";
764
+ readonly title?: string;
765
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
766
+ readonly metadata?: _ai_sdk_provider.JSONObject;
767
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
768
+ skill: string;
769
+ args?: string | undefined;
770
+ }>;
771
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
772
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
773
+ skill: string;
774
+ args?: string | undefined;
775
+ }, any> | undefined;
776
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
777
+ readonly onInputDelta?: ((options: {
778
+ inputTextDelta: string;
779
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
780
+ readonly onInputAvailable?: ((options: {
781
+ input: {
782
+ skill: string;
783
+ args?: string | undefined;
784
+ };
785
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
786
+ readonly toModelOutput?: ((options: {
787
+ toolCallId: string;
788
+ input: {
789
+ skill: string;
790
+ args?: string | undefined;
791
+ };
792
+ output: any;
793
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
794
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
795
+ readonly execute?: never;
796
+ readonly description?: string | ((options: {
797
+ context: any;
798
+ experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
799
+ }) => string) | undefined;
800
+ readonly strict?: boolean;
801
+ readonly inputExamples?: {
802
+ input: NoInfer<{
803
+ skill: string;
804
+ args?: string | undefined;
805
+ }>;
806
+ }[] | undefined;
807
+ readonly id?: never;
808
+ readonly isProviderExecuted?: never;
809
+ readonly args?: never;
810
+ readonly supportsDeferredResults?: never;
811
+ readonly type?: undefined | "function";
812
+ } | {
813
+ readonly toolUseKind: "readonly";
814
+ readonly title?: string;
815
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
816
+ readonly metadata?: _ai_sdk_provider.JSONObject;
817
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
818
+ skill: string;
819
+ args?: string | undefined;
820
+ }>;
821
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
822
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
823
+ skill: string;
824
+ args?: string | undefined;
825
+ }, any> | undefined;
826
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
827
+ readonly onInputDelta?: ((options: {
828
+ inputTextDelta: string;
829
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
830
+ readonly onInputAvailable?: ((options: {
831
+ input: {
832
+ skill: string;
833
+ args?: string | undefined;
834
+ };
835
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
836
+ readonly toModelOutput?: ((options: {
837
+ toolCallId: string;
838
+ input: {
839
+ skill: string;
840
+ args?: string | undefined;
841
+ };
842
+ output: any;
843
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
844
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
845
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
846
+ skill: string;
847
+ args?: string | undefined;
848
+ }, any, any> | undefined;
849
+ readonly description?: string | ((options: {
850
+ context: any;
851
+ experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
852
+ }) => string) | undefined;
853
+ readonly strict?: boolean;
854
+ readonly inputExamples?: {
855
+ input: NoInfer<{
856
+ skill: string;
857
+ args?: string | undefined;
858
+ }>;
859
+ }[] | undefined;
860
+ readonly id?: never;
861
+ readonly isProviderExecuted?: never;
862
+ readonly args?: never;
863
+ readonly supportsDeferredResults?: never;
864
+ readonly type?: undefined | "function";
865
+ } | {
866
+ readonly toolUseKind: "readonly";
867
+ readonly title?: string;
868
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
869
+ readonly metadata?: _ai_sdk_provider.JSONObject;
870
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
871
+ skill: string;
872
+ args?: string | undefined;
873
+ }>;
874
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
875
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
876
+ skill: string;
877
+ args?: string | undefined;
878
+ }, any> | undefined;
879
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
880
+ readonly onInputDelta?: ((options: {
881
+ inputTextDelta: string;
882
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
883
+ readonly onInputAvailable?: ((options: {
884
+ input: {
885
+ skill: string;
886
+ args?: string | undefined;
887
+ };
888
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
889
+ readonly toModelOutput?: ((options: {
890
+ toolCallId: string;
891
+ input: {
892
+ skill: string;
893
+ args?: string | undefined;
894
+ };
895
+ output: any;
896
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
897
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
898
+ readonly execute?: never;
899
+ readonly description?: string | ((options: {
900
+ context: any;
901
+ experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
902
+ }) => string) | undefined;
903
+ readonly strict?: boolean;
904
+ readonly inputExamples?: {
905
+ input: NoInfer<{
906
+ skill: string;
907
+ args?: string | undefined;
908
+ }>;
909
+ }[] | undefined;
910
+ readonly id?: never;
911
+ readonly isProviderExecuted?: never;
912
+ readonly args?: never;
913
+ readonly supportsDeferredResults?: never;
914
+ readonly type: "dynamic";
915
+ } | {
916
+ readonly toolUseKind: "readonly";
917
+ readonly title?: string;
918
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
919
+ readonly metadata?: _ai_sdk_provider.JSONObject;
920
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
921
+ skill: string;
922
+ args?: string | undefined;
923
+ }>;
924
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
925
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
926
+ skill: string;
927
+ args?: string | undefined;
928
+ }, any> | undefined;
929
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
930
+ readonly onInputDelta?: ((options: {
931
+ inputTextDelta: string;
932
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
933
+ readonly onInputAvailable?: ((options: {
934
+ input: {
935
+ skill: string;
936
+ args?: string | undefined;
937
+ };
938
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
939
+ readonly toModelOutput?: ((options: {
940
+ toolCallId: string;
941
+ input: {
942
+ skill: string;
943
+ args?: string | undefined;
944
+ };
945
+ output: any;
946
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
947
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
948
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
949
+ skill: string;
950
+ args?: string | undefined;
951
+ }, any, any> | undefined;
952
+ readonly description?: string | ((options: {
953
+ context: any;
954
+ experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
955
+ }) => string) | undefined;
956
+ readonly strict?: boolean;
957
+ readonly inputExamples?: {
958
+ input: NoInfer<{
959
+ skill: string;
960
+ args?: string | undefined;
961
+ }>;
962
+ }[] | undefined;
963
+ readonly id?: never;
964
+ readonly isProviderExecuted?: never;
965
+ readonly args?: never;
966
+ readonly supportsDeferredResults?: never;
967
+ readonly type: "dynamic";
968
+ } | {
969
+ readonly toolUseKind: "readonly";
970
+ readonly title?: string;
971
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
972
+ readonly metadata?: _ai_sdk_provider.JSONObject;
973
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
974
+ skill: string;
975
+ args?: string | undefined;
976
+ }>;
977
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
978
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
979
+ skill: string;
980
+ args?: string | undefined;
981
+ }, any> | undefined;
982
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
983
+ readonly onInputDelta?: ((options: {
984
+ inputTextDelta: string;
985
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
986
+ readonly onInputAvailable?: ((options: {
987
+ input: {
988
+ skill: string;
989
+ args?: string | undefined;
990
+ };
991
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
992
+ readonly toModelOutput?: ((options: {
993
+ toolCallId: string;
994
+ input: {
995
+ skill: string;
996
+ args?: string | undefined;
997
+ };
998
+ output: any;
999
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
1000
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1001
+ readonly execute?: never;
1002
+ readonly type: "provider";
1003
+ readonly id: `${string}.${string}`;
1004
+ readonly args: Record<string, unknown>;
1005
+ readonly description?: never;
1006
+ readonly strict?: never;
1007
+ readonly inputExamples?: never;
1008
+ readonly isProviderExecuted: false;
1009
+ readonly supportsDeferredResults?: never;
1010
+ } | {
1011
+ readonly toolUseKind: "readonly";
1012
+ readonly title?: string;
1013
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
1014
+ readonly metadata?: _ai_sdk_provider.JSONObject;
1015
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
1016
+ skill: string;
1017
+ args?: string | undefined;
1018
+ }>;
1019
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1020
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
1021
+ skill: string;
1022
+ args?: string | undefined;
1023
+ }, any> | undefined;
1024
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1025
+ readonly onInputDelta?: ((options: {
1026
+ inputTextDelta: string;
1027
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1028
+ readonly onInputAvailable?: ((options: {
1029
+ input: {
1030
+ skill: string;
1031
+ args?: string | undefined;
1032
+ };
1033
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1034
+ readonly toModelOutput?: ((options: {
1035
+ toolCallId: string;
1036
+ input: {
1037
+ skill: string;
1038
+ args?: string | undefined;
1039
+ };
1040
+ output: any;
1041
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
1042
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1043
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
1044
+ skill: string;
1045
+ args?: string | undefined;
1046
+ }, any, any> | undefined;
1047
+ readonly type: "provider";
1048
+ readonly id: `${string}.${string}`;
1049
+ readonly args: Record<string, unknown>;
1050
+ readonly description?: never;
1051
+ readonly strict?: never;
1052
+ readonly inputExamples?: never;
1053
+ readonly isProviderExecuted: false;
1054
+ readonly supportsDeferredResults?: never;
1055
+ } | {
1056
+ readonly toolUseKind: "readonly";
1057
+ readonly title?: string;
1058
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
1059
+ readonly metadata?: _ai_sdk_provider.JSONObject;
1060
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
1061
+ skill: string;
1062
+ args?: string | undefined;
1063
+ }>;
1064
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1065
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
1066
+ skill: string;
1067
+ args?: string | undefined;
1068
+ }, any> | undefined;
1069
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1070
+ readonly onInputDelta?: ((options: {
1071
+ inputTextDelta: string;
1072
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1073
+ readonly onInputAvailable?: ((options: {
1074
+ input: {
1075
+ skill: string;
1076
+ args?: string | undefined;
1077
+ };
1078
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1079
+ readonly toModelOutput?: ((options: {
1080
+ toolCallId: string;
1081
+ input: {
1082
+ skill: string;
1083
+ args?: string | undefined;
1084
+ };
1085
+ output: any;
1086
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
1087
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1088
+ readonly execute?: never;
1089
+ readonly type: "provider";
1090
+ readonly id: `${string}.${string}`;
1091
+ readonly args: Record<string, unknown>;
1092
+ readonly description?: never;
1093
+ readonly strict?: never;
1094
+ readonly inputExamples?: never;
1095
+ readonly isProviderExecuted: true;
1096
+ readonly supportsDeferredResults?: boolean;
1097
+ } | {
1098
+ readonly toolUseKind: "readonly";
1099
+ readonly title?: string;
1100
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
1101
+ readonly metadata?: _ai_sdk_provider.JSONObject;
1102
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
1103
+ skill: string;
1104
+ args?: string | undefined;
1105
+ }>;
1106
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1107
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
1108
+ skill: string;
1109
+ args?: string | undefined;
1110
+ }, any> | undefined;
1111
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1112
+ readonly onInputDelta?: ((options: {
1113
+ inputTextDelta: string;
1114
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1115
+ readonly onInputAvailable?: ((options: {
1116
+ input: {
1117
+ skill: string;
1118
+ args?: string | undefined;
1119
+ };
1120
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1121
+ readonly toModelOutput?: ((options: {
1122
+ toolCallId: string;
1123
+ input: {
1124
+ skill: string;
1125
+ args?: string | undefined;
1126
+ };
1127
+ output: any;
1128
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
1129
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1130
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
1131
+ skill: string;
1132
+ args?: string | undefined;
1133
+ }, any, any> | undefined;
1134
+ readonly type: "provider";
1135
+ readonly id: `${string}.${string}`;
1136
+ readonly args: Record<string, unknown>;
1137
+ readonly description?: never;
1138
+ readonly strict?: never;
1139
+ readonly inputExamples?: never;
1140
+ readonly isProviderExecuted: true;
1141
+ readonly supportsDeferredResults?: boolean;
1142
+ };
387
1143
  readonly ToolSearch: _ai_sdk_provider_utils.Tool<{
388
1144
  query: string;
389
1145
  max_results?: number | undefined;