clanka 0.24.4 → 0.25.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/dist/Agent.js +1 -1
- package/dist/Agent.js.map +1 -1
- package/dist/AgentCallerConfig.test.js +8 -2
- package/dist/AgentCallerConfig.test.js.map +1 -1
- package/dist/AgentExecutor.js +1 -1
- package/dist/AgentExecutor.js.map +1 -1
- package/dist/AgentExecutor.test.js +14 -0
- package/dist/AgentExecutor.test.js.map +1 -1
- package/dist/AgentTools.d.ts +112 -88
- package/dist/AgentTools.d.ts.map +1 -1
- package/dist/AgentTools.js +43 -35
- package/dist/AgentTools.js.map +1 -1
- package/dist/bin/{AiError-fiHIiGOy.mjs → AiError-CsvdOsKR.mjs} +67 -43
- package/dist/bin/Latch-B3e9629m.mjs +5 -0
- package/dist/bin/{McpClient-CXwyRd_3.mjs → McpClient-BCxZZgnA.mjs} +1 -1
- package/dist/bin/{OutputFormatter-B8yF7iiq.mjs → OutputFormatter-ByMjyBhe.mjs} +2 -2
- package/dist/bin/{Schema-D629S5yu.mjs → Schema-BfUmMefy.mjs} +224 -163
- package/dist/bin/{SemanticSearch-BlcfFvPr.mjs → SemanticSearch-DMzIsoZb.mjs} +68 -55
- package/dist/bin/cli.mjs +506 -381
- package/dist/bin/{helpers-CljL9OKa.mjs → helpers-Bb68A2Sv.mjs} +2 -2
- package/dist/bin/{index.min-ClUfQ5ji.mjs → index.min-CuA3AuA-.mjs} +1448 -1348
- package/dist/bin/{rolldown-runtime-5zChB7MF.mjs → rolldown-runtime-CXhmmSW5.mjs} +4 -4
- package/dist/bin/{server-HlLriZxF.mjs → server-D4nrvZHH.mjs} +2 -2
- package/dist/bin/{turndown.cjs-C2WBxeA-.mjs → turndown.cjs-CwE2EFNQ.mjs} +15 -10
- package/dist/bin/{types-LcwjLVkt.mjs → types-N9Z-HYP0.mjs} +1 -1
- package/dist/bin/{upgrade-E_f-q2h8.mjs → upgrade-t590zYhO.mjs} +4 -4
- package/package.json +15 -15
- package/src/Agent.ts +1 -1
- package/src/AgentCallerConfig.test.ts +39 -28
- package/src/AgentExecutor.test.ts +38 -0
- package/src/AgentExecutor.ts +1 -1
- package/src/AgentTools.ts +59 -44
- package/dist/bin/Latch-D1909CI6.mjs +0 -5
package/dist/AgentTools.d.ts
CHANGED
|
@@ -261,7 +261,7 @@ export declare const makeBashTool: (timeout: Duration.Duration) => Tool.Tool<"ba
|
|
|
261
261
|
}>;
|
|
262
262
|
readonly failure: Schema.Never;
|
|
263
263
|
readonly failureMode: "error";
|
|
264
|
-
}, CurrentDirectory>;
|
|
264
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
265
265
|
/**
|
|
266
266
|
* @since 1.0.0
|
|
267
267
|
* @category Context
|
|
@@ -277,7 +277,7 @@ export declare const AgentTools: Toolkit.Toolkit<{
|
|
|
277
277
|
readonly success: Schema.String;
|
|
278
278
|
readonly failure: Schema.Never;
|
|
279
279
|
readonly failureMode: "error";
|
|
280
|
-
}, CurrentDirectory>;
|
|
280
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
281
281
|
readonly bash: Tool.Tool<"bash", {
|
|
282
282
|
readonly parameters: Schema.Struct<{
|
|
283
283
|
readonly command: Schema.String;
|
|
@@ -297,31 +297,31 @@ export declare const AgentTools: Toolkit.Toolkit<{
|
|
|
297
297
|
}>;
|
|
298
298
|
readonly failure: Schema.Never;
|
|
299
299
|
readonly failureMode: "error";
|
|
300
|
-
}, CurrentDirectory>;
|
|
300
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
301
301
|
readonly changeDirectory: Tool.Tool<"changeDirectory", {
|
|
302
302
|
readonly parameters: Schema.String;
|
|
303
303
|
readonly success: Schema.String;
|
|
304
304
|
readonly failure: Schema.Never;
|
|
305
305
|
readonly failureMode: "error";
|
|
306
|
-
}, DirectoryChanger>;
|
|
306
|
+
}, DirectoryChanger, Tool.Execution>;
|
|
307
307
|
readonly fetchMarkdown: Tool.Tool<"fetchMarkdown", {
|
|
308
308
|
readonly parameters: Schema.String;
|
|
309
309
|
readonly success: Schema.String;
|
|
310
310
|
readonly failure: Schema.Never;
|
|
311
311
|
readonly failureMode: "error";
|
|
312
|
-
}, never>;
|
|
312
|
+
}, never, Tool.Execution>;
|
|
313
313
|
readonly gh: Tool.Tool<"gh", {
|
|
314
314
|
readonly parameters: Schema.$Array<Schema.String>;
|
|
315
315
|
readonly success: Schema.String;
|
|
316
316
|
readonly failure: Schema.Never;
|
|
317
317
|
readonly failureMode: "error";
|
|
318
|
-
}, CurrentDirectory>;
|
|
318
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
319
319
|
readonly glob: Tool.Tool<"glob", {
|
|
320
320
|
readonly parameters: Schema.String;
|
|
321
321
|
readonly success: Schema.$Array<Schema.String>;
|
|
322
322
|
readonly failure: Schema.Never;
|
|
323
323
|
readonly failureMode: "error";
|
|
324
|
-
}, CurrentDirectory>;
|
|
324
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
325
325
|
readonly listTasks: Tool.Tool<"listTasks", {
|
|
326
326
|
readonly parameters: Schema.Void;
|
|
327
327
|
readonly success: Schema.$Array<Schema.Struct<{
|
|
@@ -337,13 +337,13 @@ export declare const AgentTools: Toolkit.Toolkit<{
|
|
|
337
337
|
}>>;
|
|
338
338
|
readonly failure: Schema.Never;
|
|
339
339
|
readonly failureMode: "error";
|
|
340
|
-
}, AgentTaskExecutor>;
|
|
340
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
341
341
|
readonly ls: Tool.Tool<"ls", {
|
|
342
342
|
readonly parameters: Schema.String;
|
|
343
343
|
readonly success: Schema.$Array<Schema.String>;
|
|
344
344
|
readonly failure: Schema.Never;
|
|
345
345
|
readonly failureMode: "error";
|
|
346
|
-
}, CurrentDirectory>;
|
|
346
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
347
347
|
readonly messageAgent: Tool.Tool<"messageAgent", {
|
|
348
348
|
readonly parameters: Schema.Struct<{
|
|
349
349
|
readonly id: Schema.String;
|
|
@@ -352,7 +352,7 @@ export declare const AgentTools: Toolkit.Toolkit<{
|
|
|
352
352
|
readonly success: Schema.Void;
|
|
353
353
|
readonly failure: Schema.String;
|
|
354
354
|
readonly failureMode: "error";
|
|
355
|
-
}, AgentTaskExecutor>;
|
|
355
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
356
356
|
readonly readFile: Tool.Tool<"readFile", {
|
|
357
357
|
readonly parameters: Schema.Struct<{
|
|
358
358
|
readonly path: Schema.String;
|
|
@@ -363,13 +363,13 @@ export declare const AgentTools: Toolkit.Toolkit<{
|
|
|
363
363
|
readonly success: Schema.NullOr<Schema.String>;
|
|
364
364
|
readonly failure: Schema.Never;
|
|
365
365
|
readonly failureMode: "error";
|
|
366
|
-
}, CurrentDirectory | ImageAttacher>;
|
|
366
|
+
}, CurrentDirectory | ImageAttacher, Tool.Execution>;
|
|
367
367
|
readonly removeFile: Tool.Tool<"removeFile", {
|
|
368
368
|
readonly parameters: Schema.String;
|
|
369
369
|
readonly success: Schema.Void;
|
|
370
370
|
readonly failure: Schema.Never;
|
|
371
371
|
readonly failureMode: "error";
|
|
372
|
-
}, CurrentDirectory>;
|
|
372
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
373
373
|
readonly renameFile: Tool.Tool<"renameFile", {
|
|
374
374
|
readonly parameters: Schema.Struct<{
|
|
375
375
|
readonly from: Schema.String;
|
|
@@ -378,7 +378,7 @@ export declare const AgentTools: Toolkit.Toolkit<{
|
|
|
378
378
|
readonly success: Schema.Void;
|
|
379
379
|
readonly failure: Schema.Never;
|
|
380
380
|
readonly failureMode: "error";
|
|
381
|
-
}, CurrentDirectory>;
|
|
381
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
382
382
|
readonly rg: Tool.Tool<"rg", {
|
|
383
383
|
readonly parameters: Schema.Struct<{
|
|
384
384
|
readonly pattern: Schema.String;
|
|
@@ -389,19 +389,25 @@ export declare const AgentTools: Toolkit.Toolkit<{
|
|
|
389
389
|
readonly success: Schema.String;
|
|
390
390
|
readonly failure: Schema.Never;
|
|
391
391
|
readonly failureMode: "error";
|
|
392
|
-
}, CurrentDirectory>;
|
|
392
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
393
|
+
readonly run: Tool.Tool<"run", {
|
|
394
|
+
readonly parameters: Schema.String;
|
|
395
|
+
readonly success: Schema.String;
|
|
396
|
+
readonly failure: Schema.Never;
|
|
397
|
+
readonly failureMode: "error";
|
|
398
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
393
399
|
readonly sleep: Tool.Tool<"sleep", {
|
|
394
400
|
readonly parameters: Schema.Finite;
|
|
395
401
|
readonly success: Schema.Void;
|
|
396
402
|
readonly failure: Schema.Never;
|
|
397
403
|
readonly failureMode: "error";
|
|
398
|
-
}, never>;
|
|
404
|
+
}, never, Tool.Execution>;
|
|
399
405
|
readonly stopTask: Tool.Tool<"stopTask", {
|
|
400
406
|
readonly parameters: Schema.String;
|
|
401
407
|
readonly success: Schema.Void;
|
|
402
408
|
readonly failure: Schema.String;
|
|
403
409
|
readonly failureMode: "error";
|
|
404
|
-
}, AgentTaskExecutor>;
|
|
410
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
405
411
|
readonly subagent: Tool.Tool<"subagent", {
|
|
406
412
|
readonly parameters: Schema.Struct<{
|
|
407
413
|
readonly prompt: Schema.String;
|
|
@@ -420,13 +426,13 @@ export declare const AgentTools: Toolkit.Toolkit<{
|
|
|
420
426
|
}>;
|
|
421
427
|
readonly failure: Schema.String;
|
|
422
428
|
readonly failureMode: "error";
|
|
423
|
-
}, AgentTaskExecutor>;
|
|
429
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
424
430
|
readonly taskComplete: Tool.Tool<"taskComplete", {
|
|
425
431
|
readonly parameters: Schema.String;
|
|
426
432
|
readonly success: Schema.Void;
|
|
427
433
|
readonly failure: Schema.String;
|
|
428
434
|
readonly failureMode: "error";
|
|
429
|
-
}, TaskCompleter>;
|
|
435
|
+
}, TaskCompleter, Tool.Execution>;
|
|
430
436
|
readonly taskOutput: Tool.Tool<"taskOutput", {
|
|
431
437
|
readonly parameters: Schema.String;
|
|
432
438
|
readonly success: Schema.Struct<{
|
|
@@ -442,7 +448,7 @@ export declare const AgentTools: Toolkit.Toolkit<{
|
|
|
442
448
|
}>;
|
|
443
449
|
readonly failure: Schema.String;
|
|
444
450
|
readonly failureMode: "error";
|
|
445
|
-
}, AgentTaskExecutor>;
|
|
451
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
446
452
|
readonly waitTasks: Tool.Tool<"waitTasks", {
|
|
447
453
|
readonly parameters: Schema.Struct<{
|
|
448
454
|
readonly ids: Schema.$Array<Schema.String>;
|
|
@@ -461,7 +467,7 @@ export declare const AgentTools: Toolkit.Toolkit<{
|
|
|
461
467
|
}>>;
|
|
462
468
|
readonly failure: Schema.String;
|
|
463
469
|
readonly failureMode: "error";
|
|
464
|
-
}, AgentTaskExecutor>;
|
|
470
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
465
471
|
readonly webSearch: Tool.Tool<"webSearch", {
|
|
466
472
|
readonly parameters: Schema.Struct<{
|
|
467
473
|
readonly query: Schema.String;
|
|
@@ -470,7 +476,7 @@ export declare const AgentTools: Toolkit.Toolkit<{
|
|
|
470
476
|
readonly success: Schema.String;
|
|
471
477
|
readonly failure: Schema.Never;
|
|
472
478
|
readonly failureMode: "error";
|
|
473
|
-
}, never>;
|
|
479
|
+
}, never, Tool.Execution>;
|
|
474
480
|
readonly writeFile: Tool.Tool<"writeFile", {
|
|
475
481
|
readonly parameters: Schema.Struct<{
|
|
476
482
|
readonly path: Schema.String;
|
|
@@ -479,7 +485,7 @@ export declare const AgentTools: Toolkit.Toolkit<{
|
|
|
479
485
|
readonly success: Schema.Void;
|
|
480
486
|
readonly failure: Schema.Never;
|
|
481
487
|
readonly failureMode: "error";
|
|
482
|
-
}, CurrentDirectory>;
|
|
488
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
483
489
|
}>;
|
|
484
490
|
/**
|
|
485
491
|
* @since 1.0.0
|
|
@@ -491,7 +497,7 @@ export declare const AgentToolsWithSearch: Toolkit.Toolkit<{
|
|
|
491
497
|
readonly success: Schema.String;
|
|
492
498
|
readonly failure: Schema.Never;
|
|
493
499
|
readonly failureMode: "error";
|
|
494
|
-
}, CurrentDirectory>;
|
|
500
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
495
501
|
readonly bash: Tool.Tool<"bash", {
|
|
496
502
|
readonly parameters: Schema.Struct<{
|
|
497
503
|
readonly command: Schema.String;
|
|
@@ -511,31 +517,31 @@ export declare const AgentToolsWithSearch: Toolkit.Toolkit<{
|
|
|
511
517
|
}>;
|
|
512
518
|
readonly failure: Schema.Never;
|
|
513
519
|
readonly failureMode: "error";
|
|
514
|
-
}, CurrentDirectory>;
|
|
520
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
515
521
|
readonly changeDirectory: Tool.Tool<"changeDirectory", {
|
|
516
522
|
readonly parameters: Schema.String;
|
|
517
523
|
readonly success: Schema.String;
|
|
518
524
|
readonly failure: Schema.Never;
|
|
519
525
|
readonly failureMode: "error";
|
|
520
|
-
}, DirectoryChanger>;
|
|
526
|
+
}, DirectoryChanger, Tool.Execution>;
|
|
521
527
|
readonly fetchMarkdown: Tool.Tool<"fetchMarkdown", {
|
|
522
528
|
readonly parameters: Schema.String;
|
|
523
529
|
readonly success: Schema.String;
|
|
524
530
|
readonly failure: Schema.Never;
|
|
525
531
|
readonly failureMode: "error";
|
|
526
|
-
}, never>;
|
|
532
|
+
}, never, Tool.Execution>;
|
|
527
533
|
readonly gh: Tool.Tool<"gh", {
|
|
528
534
|
readonly parameters: Schema.$Array<Schema.String>;
|
|
529
535
|
readonly success: Schema.String;
|
|
530
536
|
readonly failure: Schema.Never;
|
|
531
537
|
readonly failureMode: "error";
|
|
532
|
-
}, CurrentDirectory>;
|
|
538
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
533
539
|
readonly glob: Tool.Tool<"glob", {
|
|
534
540
|
readonly parameters: Schema.String;
|
|
535
541
|
readonly success: Schema.$Array<Schema.String>;
|
|
536
542
|
readonly failure: Schema.Never;
|
|
537
543
|
readonly failureMode: "error";
|
|
538
|
-
}, CurrentDirectory>;
|
|
544
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
539
545
|
readonly listTasks: Tool.Tool<"listTasks", {
|
|
540
546
|
readonly parameters: Schema.Void;
|
|
541
547
|
readonly success: Schema.$Array<Schema.Struct<{
|
|
@@ -551,13 +557,13 @@ export declare const AgentToolsWithSearch: Toolkit.Toolkit<{
|
|
|
551
557
|
}>>;
|
|
552
558
|
readonly failure: Schema.Never;
|
|
553
559
|
readonly failureMode: "error";
|
|
554
|
-
}, AgentTaskExecutor>;
|
|
560
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
555
561
|
readonly ls: Tool.Tool<"ls", {
|
|
556
562
|
readonly parameters: Schema.String;
|
|
557
563
|
readonly success: Schema.$Array<Schema.String>;
|
|
558
564
|
readonly failure: Schema.Never;
|
|
559
565
|
readonly failureMode: "error";
|
|
560
|
-
}, CurrentDirectory>;
|
|
566
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
561
567
|
readonly messageAgent: Tool.Tool<"messageAgent", {
|
|
562
568
|
readonly parameters: Schema.Struct<{
|
|
563
569
|
readonly id: Schema.String;
|
|
@@ -566,7 +572,7 @@ export declare const AgentToolsWithSearch: Toolkit.Toolkit<{
|
|
|
566
572
|
readonly success: Schema.Void;
|
|
567
573
|
readonly failure: Schema.String;
|
|
568
574
|
readonly failureMode: "error";
|
|
569
|
-
}, AgentTaskExecutor>;
|
|
575
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
570
576
|
readonly readFile: Tool.Tool<"readFile", {
|
|
571
577
|
readonly parameters: Schema.Struct<{
|
|
572
578
|
readonly path: Schema.String;
|
|
@@ -577,13 +583,13 @@ export declare const AgentToolsWithSearch: Toolkit.Toolkit<{
|
|
|
577
583
|
readonly success: Schema.NullOr<Schema.String>;
|
|
578
584
|
readonly failure: Schema.Never;
|
|
579
585
|
readonly failureMode: "error";
|
|
580
|
-
}, CurrentDirectory | ImageAttacher>;
|
|
586
|
+
}, CurrentDirectory | ImageAttacher, Tool.Execution>;
|
|
581
587
|
readonly removeFile: Tool.Tool<"removeFile", {
|
|
582
588
|
readonly parameters: Schema.String;
|
|
583
589
|
readonly success: Schema.Void;
|
|
584
590
|
readonly failure: Schema.Never;
|
|
585
591
|
readonly failureMode: "error";
|
|
586
|
-
}, CurrentDirectory>;
|
|
592
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
587
593
|
readonly renameFile: Tool.Tool<"renameFile", {
|
|
588
594
|
readonly parameters: Schema.Struct<{
|
|
589
595
|
readonly from: Schema.String;
|
|
@@ -592,7 +598,7 @@ export declare const AgentToolsWithSearch: Toolkit.Toolkit<{
|
|
|
592
598
|
readonly success: Schema.Void;
|
|
593
599
|
readonly failure: Schema.Never;
|
|
594
600
|
readonly failureMode: "error";
|
|
595
|
-
}, CurrentDirectory>;
|
|
601
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
596
602
|
readonly rg: Tool.Tool<"rg", {
|
|
597
603
|
readonly parameters: Schema.Struct<{
|
|
598
604
|
readonly pattern: Schema.String;
|
|
@@ -603,25 +609,31 @@ export declare const AgentToolsWithSearch: Toolkit.Toolkit<{
|
|
|
603
609
|
readonly success: Schema.String;
|
|
604
610
|
readonly failure: Schema.Never;
|
|
605
611
|
readonly failureMode: "error";
|
|
606
|
-
}, CurrentDirectory>;
|
|
612
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
613
|
+
readonly run: Tool.Tool<"run", {
|
|
614
|
+
readonly parameters: Schema.String;
|
|
615
|
+
readonly success: Schema.String;
|
|
616
|
+
readonly failure: Schema.Never;
|
|
617
|
+
readonly failureMode: "error";
|
|
618
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
607
619
|
readonly search: Tool.Tool<"search", {
|
|
608
620
|
readonly parameters: Schema.String;
|
|
609
621
|
readonly success: Schema.String;
|
|
610
622
|
readonly failure: Schema.Never;
|
|
611
623
|
readonly failureMode: "error";
|
|
612
|
-
}, SemanticSearch.SemanticSearch>;
|
|
624
|
+
}, SemanticSearch.SemanticSearch, Tool.Execution>;
|
|
613
625
|
readonly sleep: Tool.Tool<"sleep", {
|
|
614
626
|
readonly parameters: Schema.Finite;
|
|
615
627
|
readonly success: Schema.Void;
|
|
616
628
|
readonly failure: Schema.Never;
|
|
617
629
|
readonly failureMode: "error";
|
|
618
|
-
}, never>;
|
|
630
|
+
}, never, Tool.Execution>;
|
|
619
631
|
readonly stopTask: Tool.Tool<"stopTask", {
|
|
620
632
|
readonly parameters: Schema.String;
|
|
621
633
|
readonly success: Schema.Void;
|
|
622
634
|
readonly failure: Schema.String;
|
|
623
635
|
readonly failureMode: "error";
|
|
624
|
-
}, AgentTaskExecutor>;
|
|
636
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
625
637
|
readonly subagent: Tool.Tool<"subagent", {
|
|
626
638
|
readonly parameters: Schema.Struct<{
|
|
627
639
|
readonly prompt: Schema.String;
|
|
@@ -640,13 +652,13 @@ export declare const AgentToolsWithSearch: Toolkit.Toolkit<{
|
|
|
640
652
|
}>;
|
|
641
653
|
readonly failure: Schema.String;
|
|
642
654
|
readonly failureMode: "error";
|
|
643
|
-
}, AgentTaskExecutor>;
|
|
655
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
644
656
|
readonly taskComplete: Tool.Tool<"taskComplete", {
|
|
645
657
|
readonly parameters: Schema.String;
|
|
646
658
|
readonly success: Schema.Void;
|
|
647
659
|
readonly failure: Schema.String;
|
|
648
660
|
readonly failureMode: "error";
|
|
649
|
-
}, TaskCompleter>;
|
|
661
|
+
}, TaskCompleter, Tool.Execution>;
|
|
650
662
|
readonly taskOutput: Tool.Tool<"taskOutput", {
|
|
651
663
|
readonly parameters: Schema.String;
|
|
652
664
|
readonly success: Schema.Struct<{
|
|
@@ -662,7 +674,7 @@ export declare const AgentToolsWithSearch: Toolkit.Toolkit<{
|
|
|
662
674
|
}>;
|
|
663
675
|
readonly failure: Schema.String;
|
|
664
676
|
readonly failureMode: "error";
|
|
665
|
-
}, AgentTaskExecutor>;
|
|
677
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
666
678
|
readonly waitTasks: Tool.Tool<"waitTasks", {
|
|
667
679
|
readonly parameters: Schema.Struct<{
|
|
668
680
|
readonly ids: Schema.$Array<Schema.String>;
|
|
@@ -681,7 +693,7 @@ export declare const AgentToolsWithSearch: Toolkit.Toolkit<{
|
|
|
681
693
|
}>>;
|
|
682
694
|
readonly failure: Schema.String;
|
|
683
695
|
readonly failureMode: "error";
|
|
684
|
-
}, AgentTaskExecutor>;
|
|
696
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
685
697
|
readonly webSearch: Tool.Tool<"webSearch", {
|
|
686
698
|
readonly parameters: Schema.Struct<{
|
|
687
699
|
readonly query: Schema.String;
|
|
@@ -690,7 +702,7 @@ export declare const AgentToolsWithSearch: Toolkit.Toolkit<{
|
|
|
690
702
|
readonly success: Schema.String;
|
|
691
703
|
readonly failure: Schema.Never;
|
|
692
704
|
readonly failureMode: "error";
|
|
693
|
-
}, never>;
|
|
705
|
+
}, never, Tool.Execution>;
|
|
694
706
|
readonly writeFile: Tool.Tool<"writeFile", {
|
|
695
707
|
readonly parameters: Schema.Struct<{
|
|
696
708
|
readonly path: Schema.String;
|
|
@@ -699,7 +711,7 @@ export declare const AgentToolsWithSearch: Toolkit.Toolkit<{
|
|
|
699
711
|
readonly success: Schema.Void;
|
|
700
712
|
readonly failure: Schema.Never;
|
|
701
713
|
readonly failureMode: "error";
|
|
702
|
-
}, CurrentDirectory>;
|
|
714
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
703
715
|
}>;
|
|
704
716
|
/**
|
|
705
717
|
* A built-in tool a caller can leave out. `taskComplete` always stays.
|
|
@@ -718,7 +730,7 @@ export declare const AgentToolHandlersNoDeps: Layer.Layer<Tool.HandlersFor<{
|
|
|
718
730
|
readonly success: Schema.String;
|
|
719
731
|
readonly failure: Schema.Never;
|
|
720
732
|
readonly failureMode: "error";
|
|
721
|
-
}, CurrentDirectory>;
|
|
733
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
722
734
|
readonly bash: Tool.Tool<"bash", {
|
|
723
735
|
readonly parameters: Schema.Struct<{
|
|
724
736
|
readonly command: Schema.String;
|
|
@@ -738,31 +750,31 @@ export declare const AgentToolHandlersNoDeps: Layer.Layer<Tool.HandlersFor<{
|
|
|
738
750
|
}>;
|
|
739
751
|
readonly failure: Schema.Never;
|
|
740
752
|
readonly failureMode: "error";
|
|
741
|
-
}, CurrentDirectory>;
|
|
753
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
742
754
|
readonly changeDirectory: Tool.Tool<"changeDirectory", {
|
|
743
755
|
readonly parameters: Schema.String;
|
|
744
756
|
readonly success: Schema.String;
|
|
745
757
|
readonly failure: Schema.Never;
|
|
746
758
|
readonly failureMode: "error";
|
|
747
|
-
}, DirectoryChanger>;
|
|
759
|
+
}, DirectoryChanger, Tool.Execution>;
|
|
748
760
|
readonly fetchMarkdown: Tool.Tool<"fetchMarkdown", {
|
|
749
761
|
readonly parameters: Schema.String;
|
|
750
762
|
readonly success: Schema.String;
|
|
751
763
|
readonly failure: Schema.Never;
|
|
752
764
|
readonly failureMode: "error";
|
|
753
|
-
}, never>;
|
|
765
|
+
}, never, Tool.Execution>;
|
|
754
766
|
readonly gh: Tool.Tool<"gh", {
|
|
755
767
|
readonly parameters: Schema.$Array<Schema.String>;
|
|
756
768
|
readonly success: Schema.String;
|
|
757
769
|
readonly failure: Schema.Never;
|
|
758
770
|
readonly failureMode: "error";
|
|
759
|
-
}, CurrentDirectory>;
|
|
771
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
760
772
|
readonly glob: Tool.Tool<"glob", {
|
|
761
773
|
readonly parameters: Schema.String;
|
|
762
774
|
readonly success: Schema.$Array<Schema.String>;
|
|
763
775
|
readonly failure: Schema.Never;
|
|
764
776
|
readonly failureMode: "error";
|
|
765
|
-
}, CurrentDirectory>;
|
|
777
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
766
778
|
readonly listTasks: Tool.Tool<"listTasks", {
|
|
767
779
|
readonly parameters: Schema.Void;
|
|
768
780
|
readonly success: Schema.$Array<Schema.Struct<{
|
|
@@ -778,13 +790,13 @@ export declare const AgentToolHandlersNoDeps: Layer.Layer<Tool.HandlersFor<{
|
|
|
778
790
|
}>>;
|
|
779
791
|
readonly failure: Schema.Never;
|
|
780
792
|
readonly failureMode: "error";
|
|
781
|
-
}, AgentTaskExecutor>;
|
|
793
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
782
794
|
readonly ls: Tool.Tool<"ls", {
|
|
783
795
|
readonly parameters: Schema.String;
|
|
784
796
|
readonly success: Schema.$Array<Schema.String>;
|
|
785
797
|
readonly failure: Schema.Never;
|
|
786
798
|
readonly failureMode: "error";
|
|
787
|
-
}, CurrentDirectory>;
|
|
799
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
788
800
|
readonly messageAgent: Tool.Tool<"messageAgent", {
|
|
789
801
|
readonly parameters: Schema.Struct<{
|
|
790
802
|
readonly id: Schema.String;
|
|
@@ -793,7 +805,7 @@ export declare const AgentToolHandlersNoDeps: Layer.Layer<Tool.HandlersFor<{
|
|
|
793
805
|
readonly success: Schema.Void;
|
|
794
806
|
readonly failure: Schema.String;
|
|
795
807
|
readonly failureMode: "error";
|
|
796
|
-
}, AgentTaskExecutor>;
|
|
808
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
797
809
|
readonly readFile: Tool.Tool<"readFile", {
|
|
798
810
|
readonly parameters: Schema.Struct<{
|
|
799
811
|
readonly path: Schema.String;
|
|
@@ -804,13 +816,13 @@ export declare const AgentToolHandlersNoDeps: Layer.Layer<Tool.HandlersFor<{
|
|
|
804
816
|
readonly success: Schema.NullOr<Schema.String>;
|
|
805
817
|
readonly failure: Schema.Never;
|
|
806
818
|
readonly failureMode: "error";
|
|
807
|
-
}, CurrentDirectory | ImageAttacher>;
|
|
819
|
+
}, CurrentDirectory | ImageAttacher, Tool.Execution>;
|
|
808
820
|
readonly removeFile: Tool.Tool<"removeFile", {
|
|
809
821
|
readonly parameters: Schema.String;
|
|
810
822
|
readonly success: Schema.Void;
|
|
811
823
|
readonly failure: Schema.Never;
|
|
812
824
|
readonly failureMode: "error";
|
|
813
|
-
}, CurrentDirectory>;
|
|
825
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
814
826
|
readonly renameFile: Tool.Tool<"renameFile", {
|
|
815
827
|
readonly parameters: Schema.Struct<{
|
|
816
828
|
readonly from: Schema.String;
|
|
@@ -819,7 +831,7 @@ export declare const AgentToolHandlersNoDeps: Layer.Layer<Tool.HandlersFor<{
|
|
|
819
831
|
readonly success: Schema.Void;
|
|
820
832
|
readonly failure: Schema.Never;
|
|
821
833
|
readonly failureMode: "error";
|
|
822
|
-
}, CurrentDirectory>;
|
|
834
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
823
835
|
readonly rg: Tool.Tool<"rg", {
|
|
824
836
|
readonly parameters: Schema.Struct<{
|
|
825
837
|
readonly pattern: Schema.String;
|
|
@@ -830,25 +842,31 @@ export declare const AgentToolHandlersNoDeps: Layer.Layer<Tool.HandlersFor<{
|
|
|
830
842
|
readonly success: Schema.String;
|
|
831
843
|
readonly failure: Schema.Never;
|
|
832
844
|
readonly failureMode: "error";
|
|
833
|
-
}, CurrentDirectory>;
|
|
845
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
846
|
+
readonly run: Tool.Tool<"run", {
|
|
847
|
+
readonly parameters: Schema.String;
|
|
848
|
+
readonly success: Schema.String;
|
|
849
|
+
readonly failure: Schema.Never;
|
|
850
|
+
readonly failureMode: "error";
|
|
851
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
834
852
|
readonly search: Tool.Tool<"search", {
|
|
835
853
|
readonly parameters: Schema.String;
|
|
836
854
|
readonly success: Schema.String;
|
|
837
855
|
readonly failure: Schema.Never;
|
|
838
856
|
readonly failureMode: "error";
|
|
839
|
-
}, SemanticSearch.SemanticSearch>;
|
|
857
|
+
}, SemanticSearch.SemanticSearch, Tool.Execution>;
|
|
840
858
|
readonly sleep: Tool.Tool<"sleep", {
|
|
841
859
|
readonly parameters: Schema.Finite;
|
|
842
860
|
readonly success: Schema.Void;
|
|
843
861
|
readonly failure: Schema.Never;
|
|
844
862
|
readonly failureMode: "error";
|
|
845
|
-
}, never>;
|
|
863
|
+
}, never, Tool.Execution>;
|
|
846
864
|
readonly stopTask: Tool.Tool<"stopTask", {
|
|
847
865
|
readonly parameters: Schema.String;
|
|
848
866
|
readonly success: Schema.Void;
|
|
849
867
|
readonly failure: Schema.String;
|
|
850
868
|
readonly failureMode: "error";
|
|
851
|
-
}, AgentTaskExecutor>;
|
|
869
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
852
870
|
readonly subagent: Tool.Tool<"subagent", {
|
|
853
871
|
readonly parameters: Schema.Struct<{
|
|
854
872
|
readonly prompt: Schema.String;
|
|
@@ -867,13 +885,13 @@ export declare const AgentToolHandlersNoDeps: Layer.Layer<Tool.HandlersFor<{
|
|
|
867
885
|
}>;
|
|
868
886
|
readonly failure: Schema.String;
|
|
869
887
|
readonly failureMode: "error";
|
|
870
|
-
}, AgentTaskExecutor>;
|
|
888
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
871
889
|
readonly taskComplete: Tool.Tool<"taskComplete", {
|
|
872
890
|
readonly parameters: Schema.String;
|
|
873
891
|
readonly success: Schema.Void;
|
|
874
892
|
readonly failure: Schema.String;
|
|
875
893
|
readonly failureMode: "error";
|
|
876
|
-
}, TaskCompleter>;
|
|
894
|
+
}, TaskCompleter, Tool.Execution>;
|
|
877
895
|
readonly taskOutput: Tool.Tool<"taskOutput", {
|
|
878
896
|
readonly parameters: Schema.String;
|
|
879
897
|
readonly success: Schema.Struct<{
|
|
@@ -889,7 +907,7 @@ export declare const AgentToolHandlersNoDeps: Layer.Layer<Tool.HandlersFor<{
|
|
|
889
907
|
}>;
|
|
890
908
|
readonly failure: Schema.String;
|
|
891
909
|
readonly failureMode: "error";
|
|
892
|
-
}, AgentTaskExecutor>;
|
|
910
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
893
911
|
readonly waitTasks: Tool.Tool<"waitTasks", {
|
|
894
912
|
readonly parameters: Schema.Struct<{
|
|
895
913
|
readonly ids: Schema.$Array<Schema.String>;
|
|
@@ -908,7 +926,7 @@ export declare const AgentToolHandlersNoDeps: Layer.Layer<Tool.HandlersFor<{
|
|
|
908
926
|
}>>;
|
|
909
927
|
readonly failure: Schema.String;
|
|
910
928
|
readonly failureMode: "error";
|
|
911
|
-
}, AgentTaskExecutor>;
|
|
929
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
912
930
|
readonly webSearch: Tool.Tool<"webSearch", {
|
|
913
931
|
readonly parameters: Schema.Struct<{
|
|
914
932
|
readonly query: Schema.String;
|
|
@@ -917,7 +935,7 @@ export declare const AgentToolHandlersNoDeps: Layer.Layer<Tool.HandlersFor<{
|
|
|
917
935
|
readonly success: Schema.String;
|
|
918
936
|
readonly failure: Schema.Never;
|
|
919
937
|
readonly failureMode: "error";
|
|
920
|
-
}, never>;
|
|
938
|
+
}, never, Tool.Execution>;
|
|
921
939
|
readonly writeFile: Tool.Tool<"writeFile", {
|
|
922
940
|
readonly parameters: Schema.Struct<{
|
|
923
941
|
readonly path: Schema.String;
|
|
@@ -926,7 +944,7 @@ export declare const AgentToolHandlersNoDeps: Layer.Layer<Tool.HandlersFor<{
|
|
|
926
944
|
readonly success: Schema.Void;
|
|
927
945
|
readonly failure: Schema.Never;
|
|
928
946
|
readonly failureMode: "error";
|
|
929
|
-
}, CurrentDirectory>;
|
|
947
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
930
948
|
}>, never, ChildProcessSpawner.ChildProcessSpawner | ExaSearch.ExaSearch | FileSystem.FileSystem | Path.Path | WebToMarkdown.WebToMarkdown>;
|
|
931
949
|
/**
|
|
932
950
|
* @since 1.0.0
|
|
@@ -943,7 +961,7 @@ export declare const AgentToolHandlersTest: Layer.Layer<Tool.HandlersFor<{
|
|
|
943
961
|
readonly success: Schema.String;
|
|
944
962
|
readonly failure: Schema.Never;
|
|
945
963
|
readonly failureMode: "error";
|
|
946
|
-
}, CurrentDirectory>;
|
|
964
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
947
965
|
readonly bash: Tool.Tool<"bash", {
|
|
948
966
|
readonly parameters: Schema.Struct<{
|
|
949
967
|
readonly command: Schema.String;
|
|
@@ -963,31 +981,31 @@ export declare const AgentToolHandlersTest: Layer.Layer<Tool.HandlersFor<{
|
|
|
963
981
|
}>;
|
|
964
982
|
readonly failure: Schema.Never;
|
|
965
983
|
readonly failureMode: "error";
|
|
966
|
-
}, CurrentDirectory>;
|
|
984
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
967
985
|
readonly changeDirectory: Tool.Tool<"changeDirectory", {
|
|
968
986
|
readonly parameters: Schema.String;
|
|
969
987
|
readonly success: Schema.String;
|
|
970
988
|
readonly failure: Schema.Never;
|
|
971
989
|
readonly failureMode: "error";
|
|
972
|
-
}, DirectoryChanger>;
|
|
990
|
+
}, DirectoryChanger, Tool.Execution>;
|
|
973
991
|
readonly fetchMarkdown: Tool.Tool<"fetchMarkdown", {
|
|
974
992
|
readonly parameters: Schema.String;
|
|
975
993
|
readonly success: Schema.String;
|
|
976
994
|
readonly failure: Schema.Never;
|
|
977
995
|
readonly failureMode: "error";
|
|
978
|
-
}, never>;
|
|
996
|
+
}, never, Tool.Execution>;
|
|
979
997
|
readonly gh: Tool.Tool<"gh", {
|
|
980
998
|
readonly parameters: Schema.$Array<Schema.String>;
|
|
981
999
|
readonly success: Schema.String;
|
|
982
1000
|
readonly failure: Schema.Never;
|
|
983
1001
|
readonly failureMode: "error";
|
|
984
|
-
}, CurrentDirectory>;
|
|
1002
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
985
1003
|
readonly glob: Tool.Tool<"glob", {
|
|
986
1004
|
readonly parameters: Schema.String;
|
|
987
1005
|
readonly success: Schema.$Array<Schema.String>;
|
|
988
1006
|
readonly failure: Schema.Never;
|
|
989
1007
|
readonly failureMode: "error";
|
|
990
|
-
}, CurrentDirectory>;
|
|
1008
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
991
1009
|
readonly listTasks: Tool.Tool<"listTasks", {
|
|
992
1010
|
readonly parameters: Schema.Void;
|
|
993
1011
|
readonly success: Schema.$Array<Schema.Struct<{
|
|
@@ -1003,13 +1021,13 @@ export declare const AgentToolHandlersTest: Layer.Layer<Tool.HandlersFor<{
|
|
|
1003
1021
|
}>>;
|
|
1004
1022
|
readonly failure: Schema.Never;
|
|
1005
1023
|
readonly failureMode: "error";
|
|
1006
|
-
}, AgentTaskExecutor>;
|
|
1024
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
1007
1025
|
readonly ls: Tool.Tool<"ls", {
|
|
1008
1026
|
readonly parameters: Schema.String;
|
|
1009
1027
|
readonly success: Schema.$Array<Schema.String>;
|
|
1010
1028
|
readonly failure: Schema.Never;
|
|
1011
1029
|
readonly failureMode: "error";
|
|
1012
|
-
}, CurrentDirectory>;
|
|
1030
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
1013
1031
|
readonly messageAgent: Tool.Tool<"messageAgent", {
|
|
1014
1032
|
readonly parameters: Schema.Struct<{
|
|
1015
1033
|
readonly id: Schema.String;
|
|
@@ -1018,7 +1036,7 @@ export declare const AgentToolHandlersTest: Layer.Layer<Tool.HandlersFor<{
|
|
|
1018
1036
|
readonly success: Schema.Void;
|
|
1019
1037
|
readonly failure: Schema.String;
|
|
1020
1038
|
readonly failureMode: "error";
|
|
1021
|
-
}, AgentTaskExecutor>;
|
|
1039
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
1022
1040
|
readonly readFile: Tool.Tool<"readFile", {
|
|
1023
1041
|
readonly parameters: Schema.Struct<{
|
|
1024
1042
|
readonly path: Schema.String;
|
|
@@ -1029,13 +1047,13 @@ export declare const AgentToolHandlersTest: Layer.Layer<Tool.HandlersFor<{
|
|
|
1029
1047
|
readonly success: Schema.NullOr<Schema.String>;
|
|
1030
1048
|
readonly failure: Schema.Never;
|
|
1031
1049
|
readonly failureMode: "error";
|
|
1032
|
-
}, CurrentDirectory | ImageAttacher>;
|
|
1050
|
+
}, CurrentDirectory | ImageAttacher, Tool.Execution>;
|
|
1033
1051
|
readonly removeFile: Tool.Tool<"removeFile", {
|
|
1034
1052
|
readonly parameters: Schema.String;
|
|
1035
1053
|
readonly success: Schema.Void;
|
|
1036
1054
|
readonly failure: Schema.Never;
|
|
1037
1055
|
readonly failureMode: "error";
|
|
1038
|
-
}, CurrentDirectory>;
|
|
1056
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
1039
1057
|
readonly renameFile: Tool.Tool<"renameFile", {
|
|
1040
1058
|
readonly parameters: Schema.Struct<{
|
|
1041
1059
|
readonly from: Schema.String;
|
|
@@ -1044,7 +1062,7 @@ export declare const AgentToolHandlersTest: Layer.Layer<Tool.HandlersFor<{
|
|
|
1044
1062
|
readonly success: Schema.Void;
|
|
1045
1063
|
readonly failure: Schema.Never;
|
|
1046
1064
|
readonly failureMode: "error";
|
|
1047
|
-
}, CurrentDirectory>;
|
|
1065
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
1048
1066
|
readonly rg: Tool.Tool<"rg", {
|
|
1049
1067
|
readonly parameters: Schema.Struct<{
|
|
1050
1068
|
readonly pattern: Schema.String;
|
|
@@ -1055,25 +1073,31 @@ export declare const AgentToolHandlersTest: Layer.Layer<Tool.HandlersFor<{
|
|
|
1055
1073
|
readonly success: Schema.String;
|
|
1056
1074
|
readonly failure: Schema.Never;
|
|
1057
1075
|
readonly failureMode: "error";
|
|
1058
|
-
}, CurrentDirectory>;
|
|
1076
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
1077
|
+
readonly run: Tool.Tool<"run", {
|
|
1078
|
+
readonly parameters: Schema.String;
|
|
1079
|
+
readonly success: Schema.String;
|
|
1080
|
+
readonly failure: Schema.Never;
|
|
1081
|
+
readonly failureMode: "error";
|
|
1082
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
1059
1083
|
readonly search: Tool.Tool<"search", {
|
|
1060
1084
|
readonly parameters: Schema.String;
|
|
1061
1085
|
readonly success: Schema.String;
|
|
1062
1086
|
readonly failure: Schema.Never;
|
|
1063
1087
|
readonly failureMode: "error";
|
|
1064
|
-
}, SemanticSearch.SemanticSearch>;
|
|
1088
|
+
}, SemanticSearch.SemanticSearch, Tool.Execution>;
|
|
1065
1089
|
readonly sleep: Tool.Tool<"sleep", {
|
|
1066
1090
|
readonly parameters: Schema.Finite;
|
|
1067
1091
|
readonly success: Schema.Void;
|
|
1068
1092
|
readonly failure: Schema.Never;
|
|
1069
1093
|
readonly failureMode: "error";
|
|
1070
|
-
}, never>;
|
|
1094
|
+
}, never, Tool.Execution>;
|
|
1071
1095
|
readonly stopTask: Tool.Tool<"stopTask", {
|
|
1072
1096
|
readonly parameters: Schema.String;
|
|
1073
1097
|
readonly success: Schema.Void;
|
|
1074
1098
|
readonly failure: Schema.String;
|
|
1075
1099
|
readonly failureMode: "error";
|
|
1076
|
-
}, AgentTaskExecutor>;
|
|
1100
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
1077
1101
|
readonly subagent: Tool.Tool<"subagent", {
|
|
1078
1102
|
readonly parameters: Schema.Struct<{
|
|
1079
1103
|
readonly prompt: Schema.String;
|
|
@@ -1092,13 +1116,13 @@ export declare const AgentToolHandlersTest: Layer.Layer<Tool.HandlersFor<{
|
|
|
1092
1116
|
}>;
|
|
1093
1117
|
readonly failure: Schema.String;
|
|
1094
1118
|
readonly failureMode: "error";
|
|
1095
|
-
}, AgentTaskExecutor>;
|
|
1119
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
1096
1120
|
readonly taskComplete: Tool.Tool<"taskComplete", {
|
|
1097
1121
|
readonly parameters: Schema.String;
|
|
1098
1122
|
readonly success: Schema.Void;
|
|
1099
1123
|
readonly failure: Schema.String;
|
|
1100
1124
|
readonly failureMode: "error";
|
|
1101
|
-
}, TaskCompleter>;
|
|
1125
|
+
}, TaskCompleter, Tool.Execution>;
|
|
1102
1126
|
readonly taskOutput: Tool.Tool<"taskOutput", {
|
|
1103
1127
|
readonly parameters: Schema.String;
|
|
1104
1128
|
readonly success: Schema.Struct<{
|
|
@@ -1114,7 +1138,7 @@ export declare const AgentToolHandlersTest: Layer.Layer<Tool.HandlersFor<{
|
|
|
1114
1138
|
}>;
|
|
1115
1139
|
readonly failure: Schema.String;
|
|
1116
1140
|
readonly failureMode: "error";
|
|
1117
|
-
}, AgentTaskExecutor>;
|
|
1141
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
1118
1142
|
readonly waitTasks: Tool.Tool<"waitTasks", {
|
|
1119
1143
|
readonly parameters: Schema.Struct<{
|
|
1120
1144
|
readonly ids: Schema.$Array<Schema.String>;
|
|
@@ -1133,7 +1157,7 @@ export declare const AgentToolHandlersTest: Layer.Layer<Tool.HandlersFor<{
|
|
|
1133
1157
|
}>>;
|
|
1134
1158
|
readonly failure: Schema.String;
|
|
1135
1159
|
readonly failureMode: "error";
|
|
1136
|
-
}, AgentTaskExecutor>;
|
|
1160
|
+
}, AgentTaskExecutor, Tool.Execution>;
|
|
1137
1161
|
readonly webSearch: Tool.Tool<"webSearch", {
|
|
1138
1162
|
readonly parameters: Schema.Struct<{
|
|
1139
1163
|
readonly query: Schema.String;
|
|
@@ -1142,7 +1166,7 @@ export declare const AgentToolHandlersTest: Layer.Layer<Tool.HandlersFor<{
|
|
|
1142
1166
|
readonly success: Schema.String;
|
|
1143
1167
|
readonly failure: Schema.Never;
|
|
1144
1168
|
readonly failureMode: "error";
|
|
1145
|
-
}, never>;
|
|
1169
|
+
}, never, Tool.Execution>;
|
|
1146
1170
|
readonly writeFile: Tool.Tool<"writeFile", {
|
|
1147
1171
|
readonly parameters: Schema.Struct<{
|
|
1148
1172
|
readonly path: Schema.String;
|
|
@@ -1151,7 +1175,7 @@ export declare const AgentToolHandlersTest: Layer.Layer<Tool.HandlersFor<{
|
|
|
1151
1175
|
readonly success: Schema.Void;
|
|
1152
1176
|
readonly failure: Schema.Never;
|
|
1153
1177
|
readonly failureMode: "error";
|
|
1154
|
-
}, CurrentDirectory>;
|
|
1178
|
+
}, CurrentDirectory, Tool.Execution>;
|
|
1155
1179
|
}>, never, ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Path.Path>;
|
|
1156
1180
|
export {};
|
|
1157
1181
|
//# sourceMappingURL=AgentTools.d.ts.map
|