@agentforge/tools 0.16.80 → 0.16.82

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.cts CHANGED
@@ -627,15 +627,15 @@ declare const urlBuilderSchema: z.ZodObject<{
627
627
  protocol: string;
628
628
  hostname: string;
629
629
  pathname: string;
630
- port?: string | undefined;
631
630
  query?: Record<string, string> | undefined;
631
+ port?: string | undefined;
632
632
  hash?: string | undefined;
633
633
  }, {
634
634
  hostname: string;
635
+ query?: Record<string, string> | undefined;
635
636
  protocol?: string | undefined;
636
637
  port?: string | undefined;
637
638
  pathname?: string | undefined;
638
- query?: Record<string, string> | undefined;
639
639
  hash?: string | undefined;
640
640
  }>;
641
641
  /**
@@ -693,10 +693,10 @@ declare function createUrlValidatorTool(): _agentforge_core.Tool<{
693
693
  */
694
694
  declare function createUrlBuilderTool(): _agentforge_core.Tool<{
695
695
  hostname: string;
696
+ query?: Record<string, string> | undefined;
696
697
  protocol?: string | undefined;
697
698
  port?: string | undefined;
698
699
  pathname?: string | undefined;
699
- query?: Record<string, string> | undefined;
700
700
  hash?: string | undefined;
701
701
  }, {
702
702
  url: string;
@@ -745,10 +745,10 @@ declare const urlValidator: _agentforge_core.Tool<{
745
745
  }>;
746
746
  declare const urlBuilder: _agentforge_core.Tool<{
747
747
  hostname: string;
748
+ query?: Record<string, string> | undefined;
748
749
  protocol?: string | undefined;
749
750
  port?: string | undefined;
750
751
  pathname?: string | undefined;
751
- query?: Record<string, string> | undefined;
752
752
  hash?: string | undefined;
753
753
  }, {
754
754
  url: string;
@@ -776,10 +776,10 @@ declare const urlValidatorTools: (_agentforge_core.Tool<{
776
776
  error?: string;
777
777
  }> | _agentforge_core.Tool<{
778
778
  hostname: string;
779
+ query?: Record<string, string> | undefined;
779
780
  protocol?: string | undefined;
780
781
  port?: string | undefined;
781
782
  pathname?: string | undefined;
782
- query?: Record<string, string> | undefined;
783
783
  hash?: string | undefined;
784
784
  }, {
785
785
  url: string;
@@ -817,10 +817,10 @@ declare function createUrlValidatorTools(config?: UrlValidatorToolsConfig): (_ag
817
817
  error?: string;
818
818
  }> | _agentforge_core.Tool<{
819
819
  hostname: string;
820
+ query?: Record<string, string> | undefined;
820
821
  protocol?: string | undefined;
821
822
  port?: string | undefined;
822
823
  pathname?: string | undefined;
823
- query?: Record<string, string> | undefined;
824
824
  hash?: string | undefined;
825
825
  }, {
826
826
  url: string;
@@ -907,8 +907,8 @@ declare const webSearchSchema: z.ZodObject<{
907
907
  preferSerper: z.ZodDefault<z.ZodBoolean>;
908
908
  timeout: z.ZodDefault<z.ZodNumber>;
909
909
  }, "strip", z.ZodTypeAny, {
910
- timeout: number;
911
910
  query: string;
911
+ timeout: number;
912
912
  maxResults: number;
913
913
  preferSerper: boolean;
914
914
  }, {
@@ -972,37 +972,37 @@ declare const webSearchOutputSchema: z.ZodObject<{
972
972
  fallbackUsed?: boolean | undefined;
973
973
  }>>;
974
974
  }, "strip", z.ZodTypeAny, {
975
+ success: boolean;
976
+ query: string;
975
977
  results: {
976
978
  link: string;
977
979
  title: string;
978
980
  snippet: string;
979
981
  position?: number | undefined;
980
982
  }[];
981
- query: string;
982
- success: boolean;
983
983
  source: "duckduckgo" | "serper";
984
+ error?: string | undefined;
984
985
  metadata?: {
985
986
  responseTime?: number | undefined;
986
987
  fallbackUsed?: boolean | undefined;
987
988
  } | undefined;
988
989
  totalResults?: number | undefined;
989
- error?: string | undefined;
990
990
  }, {
991
+ success: boolean;
992
+ query: string;
991
993
  results: {
992
994
  link: string;
993
995
  title: string;
994
996
  snippet: string;
995
997
  position?: number | undefined;
996
998
  }[];
997
- query: string;
998
- success: boolean;
999
999
  source: "duckduckgo" | "serper";
1000
+ error?: string | undefined;
1000
1001
  metadata?: {
1001
1002
  responseTime?: number | undefined;
1002
1003
  fallbackUsed?: boolean | undefined;
1003
1004
  } | undefined;
1004
1005
  totalResults?: number | undefined;
1005
- error?: string | undefined;
1006
1006
  }>;
1007
1007
 
1008
1008
  /**
@@ -2349,7 +2349,7 @@ declare function createXmlGeneratorTool(defaultRootName?: string, defaultFormat?
2349
2349
  indentSize?: number | undefined;
2350
2350
  }, {
2351
2351
  success: boolean;
2352
- xml: any;
2352
+ xml: string;
2353
2353
  error?: undefined;
2354
2354
  } | {
2355
2355
  success: boolean;
@@ -2389,7 +2389,7 @@ declare function createJsonToXmlTool(defaultRootName?: string, defaultFormat?: b
2389
2389
  rootName?: string | undefined;
2390
2390
  }, {
2391
2391
  success: boolean;
2392
- xml: any;
2392
+ xml: string;
2393
2393
  error?: undefined;
2394
2394
  } | {
2395
2395
  success: boolean;
@@ -2424,7 +2424,7 @@ declare const xmlGenerator: _agentforge_core.Tool<{
2424
2424
  indentSize?: number | undefined;
2425
2425
  }, {
2426
2426
  success: boolean;
2427
- xml: any;
2427
+ xml: string;
2428
2428
  error?: undefined;
2429
2429
  } | {
2430
2430
  success: boolean;
@@ -2456,7 +2456,7 @@ declare const jsonToXml: _agentforge_core.Tool<{
2456
2456
  rootName?: string | undefined;
2457
2457
  }, {
2458
2458
  success: boolean;
2459
- xml: any;
2459
+ xml: string;
2460
2460
  error?: undefined;
2461
2461
  } | {
2462
2462
  success: boolean;
@@ -2486,7 +2486,7 @@ declare const xmlTools: (_agentforge_core.Tool<{
2486
2486
  indentSize?: number | undefined;
2487
2487
  }, {
2488
2488
  success: boolean;
2489
- xml: any;
2489
+ xml: string;
2490
2490
  error?: undefined;
2491
2491
  } | {
2492
2492
  success: boolean;
@@ -2510,7 +2510,7 @@ declare const xmlTools: (_agentforge_core.Tool<{
2510
2510
  rootName?: string | undefined;
2511
2511
  }, {
2512
2512
  success: boolean;
2513
- xml: any;
2513
+ xml: string;
2514
2514
  error?: undefined;
2515
2515
  } | {
2516
2516
  success: boolean;
@@ -2540,7 +2540,7 @@ declare function createXmlTools(config?: XmlToolsConfig): (_agentforge_core.Tool
2540
2540
  indentSize?: number | undefined;
2541
2541
  }, {
2542
2542
  success: boolean;
2543
- xml: any;
2543
+ xml: string;
2544
2544
  error?: undefined;
2545
2545
  } | {
2546
2546
  success: boolean;
@@ -2564,7 +2564,7 @@ declare function createXmlTools(config?: XmlToolsConfig): (_agentforge_core.Tool
2564
2564
  rootName?: string | undefined;
2565
2565
  }, {
2566
2566
  success: boolean;
2567
- xml: any;
2567
+ xml: string;
2568
2568
  error?: undefined;
2569
2569
  } | {
2570
2570
  success: boolean;
@@ -3019,14 +3019,14 @@ declare const neo4jVectorSearchWithEmbeddingSchema: z.ZodObject<{
3019
3019
  limit: number;
3020
3020
  indexName: string;
3021
3021
  queryText: string;
3022
- database?: string | undefined;
3023
3022
  model?: string | undefined;
3023
+ database?: string | undefined;
3024
3024
  }, {
3025
3025
  indexName: string;
3026
3026
  queryText: string;
3027
+ model?: string | undefined;
3027
3028
  limit?: number | undefined;
3028
3029
  database?: string | undefined;
3029
- model?: string | undefined;
3030
3030
  }>;
3031
3031
  /**
3032
3032
  * Neo4j create node with embedding schema
@@ -3043,14 +3043,14 @@ declare const neo4jCreateNodeWithEmbeddingSchema: z.ZodObject<{
3043
3043
  label: string;
3044
3044
  textProperty: string;
3045
3045
  embeddingProperty: string;
3046
- database?: string | undefined;
3047
3046
  model?: string | undefined;
3047
+ database?: string | undefined;
3048
3048
  }, {
3049
3049
  properties: Record<string, any>;
3050
3050
  label: string;
3051
3051
  textProperty: string;
3052
- database?: string | undefined;
3053
3052
  model?: string | undefined;
3053
+ database?: string | undefined;
3054
3054
  embeddingProperty?: string | undefined;
3055
3055
  }>;
3056
3056
  /**
@@ -3635,9 +3635,9 @@ declare function createNeo4jVectorSearchTool(): _agentforge_core.Tool<{
3635
3635
  declare function createNeo4jVectorSearchWithEmbeddingTool(): _agentforge_core.Tool<{
3636
3636
  indexName: string;
3637
3637
  queryText: string;
3638
+ model?: string | undefined;
3638
3639
  limit?: number | undefined;
3639
3640
  database?: string | undefined;
3640
- model?: string | undefined;
3641
3641
  }, {
3642
3642
  success: boolean;
3643
3643
  error: string;
@@ -3696,8 +3696,8 @@ declare function createNeo4jCreateNodeWithEmbeddingTool(): _agentforge_core.Tool
3696
3696
  properties: Record<string, any>;
3697
3697
  label: string;
3698
3698
  textProperty: string;
3699
- database?: string | undefined;
3700
3699
  model?: string | undefined;
3700
+ database?: string | undefined;
3701
3701
  embeddingProperty?: string | undefined;
3702
3702
  }, {
3703
3703
  success: boolean;
@@ -3925,9 +3925,9 @@ declare const neo4jVectorSearch: _agentforge_core.Tool<{
3925
3925
  declare const neo4jVectorSearchWithEmbedding: _agentforge_core.Tool<{
3926
3926
  indexName: string;
3927
3927
  queryText: string;
3928
+ model?: string | undefined;
3928
3929
  limit?: number | undefined;
3929
3930
  database?: string | undefined;
3930
- model?: string | undefined;
3931
3931
  }, {
3932
3932
  success: boolean;
3933
3933
  error: string;
@@ -3979,8 +3979,8 @@ declare const neo4jCreateNodeWithEmbedding: _agentforge_core.Tool<{
3979
3979
  properties: Record<string, any>;
3980
3980
  label: string;
3981
3981
  textProperty: string;
3982
- database?: string | undefined;
3983
3982
  model?: string | undefined;
3983
+ database?: string | undefined;
3984
3984
  embeddingProperty?: string | undefined;
3985
3985
  }, {
3986
3986
  success: boolean;
@@ -4187,9 +4187,9 @@ declare const neo4jTools: (_agentforge_core.Tool<{
4187
4187
  }> | _agentforge_core.Tool<{
4188
4188
  indexName: string;
4189
4189
  queryText: string;
4190
+ model?: string | undefined;
4190
4191
  limit?: number | undefined;
4191
4192
  database?: string | undefined;
4192
- model?: string | undefined;
4193
4193
  }, {
4194
4194
  success: boolean;
4195
4195
  error: string;
@@ -4237,8 +4237,8 @@ declare const neo4jTools: (_agentforge_core.Tool<{
4237
4237
  properties: Record<string, any>;
4238
4238
  label: string;
4239
4239
  textProperty: string;
4240
- database?: string | undefined;
4241
4240
  model?: string | undefined;
4241
+ database?: string | undefined;
4242
4242
  embeddingProperty?: string | undefined;
4243
4243
  }, {
4244
4244
  success: boolean;
@@ -4625,9 +4625,9 @@ declare function createNeo4jTools(config?: Neo4jToolsConfig, includeEmbeddingToo
4625
4625
  }> | _agentforge_core.Tool<{
4626
4626
  indexName: string;
4627
4627
  queryText: string;
4628
+ model?: string | undefined;
4628
4629
  limit?: number | undefined;
4629
4630
  database?: string | undefined;
4630
- model?: string | undefined;
4631
4631
  }, {
4632
4632
  success: boolean;
4633
4633
  error: string;
@@ -4675,8 +4675,8 @@ declare function createNeo4jTools(config?: Neo4jToolsConfig, includeEmbeddingToo
4675
4675
  properties: Record<string, any>;
4676
4676
  label: string;
4677
4677
  textProperty: string;
4678
- database?: string | undefined;
4679
4678
  model?: string | undefined;
4679
+ database?: string | undefined;
4680
4680
  embeddingProperty?: string | undefined;
4681
4681
  }, {
4682
4682
  success: boolean;
@@ -6171,10 +6171,10 @@ declare const fileReaderSchema: z.ZodObject<{
6171
6171
  encoding: z.ZodDefault<z.ZodEnum<["utf8", "utf-8", "ascii", "base64", "hex", "binary"]>>;
6172
6172
  }, "strip", z.ZodTypeAny, {
6173
6173
  path: string;
6174
- encoding: "ascii" | "binary" | "base64" | "hex" | "utf-8" | "utf8";
6174
+ encoding: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8";
6175
6175
  }, {
6176
6176
  path: string;
6177
- encoding?: "ascii" | "binary" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6177
+ encoding?: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8" | undefined;
6178
6178
  }>;
6179
6179
  /**
6180
6180
  * File writer schema
@@ -6187,12 +6187,12 @@ declare const fileWriterSchema: z.ZodObject<{
6187
6187
  }, "strip", z.ZodTypeAny, {
6188
6188
  path: string;
6189
6189
  content: string;
6190
- encoding: "ascii" | "base64" | "hex" | "utf-8" | "utf8";
6190
+ encoding: "base64" | "ascii" | "hex" | "utf-8" | "utf8";
6191
6191
  createDirs: boolean;
6192
6192
  }, {
6193
6193
  path: string;
6194
6194
  content: string;
6195
- encoding?: "ascii" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6195
+ encoding?: "base64" | "ascii" | "hex" | "utf-8" | "utf8" | undefined;
6196
6196
  createDirs?: boolean | undefined;
6197
6197
  }>;
6198
6198
  /**
@@ -6245,7 +6245,7 @@ interface FileOperationsConfig {
6245
6245
  */
6246
6246
  declare function createFileReaderTool(defaultEncoding?: string, policy?: FileSystemPolicy): _agentforge_core.Tool<{
6247
6247
  path: string;
6248
- encoding?: "ascii" | "binary" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6248
+ encoding?: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8" | undefined;
6249
6249
  }, {
6250
6250
  success: boolean;
6251
6251
  data?: {
@@ -6263,7 +6263,7 @@ declare function createFileReaderTool(defaultEncoding?: string, policy?: FileSys
6263
6263
  declare function createFileWriterTool(defaultEncoding?: string, createDirsDefault?: boolean, policy?: FileSystemPolicy): _agentforge_core.Tool<{
6264
6264
  path: string;
6265
6265
  content: string;
6266
- encoding?: "ascii" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6266
+ encoding?: "base64" | "ascii" | "hex" | "utf-8" | "utf8" | undefined;
6267
6267
  createDirs?: boolean | undefined;
6268
6268
  }, {
6269
6269
  success: boolean;
@@ -6344,7 +6344,7 @@ declare function createFileExistsTool(policy?: FileSystemPolicy): _agentforge_co
6344
6344
  */
6345
6345
  declare const fileReader: _agentforge_core.Tool<{
6346
6346
  path: string;
6347
- encoding?: "ascii" | "binary" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6347
+ encoding?: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8" | undefined;
6348
6348
  }, {
6349
6349
  success: boolean;
6350
6350
  data?: {
@@ -6358,7 +6358,7 @@ declare const fileReader: _agentforge_core.Tool<{
6358
6358
  declare const fileWriter: _agentforge_core.Tool<{
6359
6359
  path: string;
6360
6360
  content: string;
6361
- encoding?: "ascii" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6361
+ encoding?: "base64" | "ascii" | "hex" | "utf-8" | "utf8" | undefined;
6362
6362
  createDirs?: boolean | undefined;
6363
6363
  }, {
6364
6364
  success: boolean;
@@ -6426,7 +6426,7 @@ declare const fileExists: _agentforge_core.Tool<{
6426
6426
  */
6427
6427
  declare const fileOperationTools: (_agentforge_core.Tool<{
6428
6428
  path: string;
6429
- encoding?: "ascii" | "binary" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6429
+ encoding?: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8" | undefined;
6430
6430
  }, {
6431
6431
  success: boolean;
6432
6432
  data?: {
@@ -6439,7 +6439,7 @@ declare const fileOperationTools: (_agentforge_core.Tool<{
6439
6439
  }> | _agentforge_core.Tool<{
6440
6440
  path: string;
6441
6441
  content: string;
6442
- encoding?: "ascii" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6442
+ encoding?: "base64" | "ascii" | "hex" | "utf-8" | "utf8" | undefined;
6443
6443
  createDirs?: boolean | undefined;
6444
6444
  }, {
6445
6445
  success: boolean;
@@ -6504,7 +6504,7 @@ declare const fileOperationTools: (_agentforge_core.Tool<{
6504
6504
  */
6505
6505
  declare function createFileOperationTools(config?: FileOperationsConfig): (_agentforge_core.Tool<{
6506
6506
  path: string;
6507
- encoding?: "ascii" | "binary" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6507
+ encoding?: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8" | undefined;
6508
6508
  }, {
6509
6509
  success: boolean;
6510
6510
  data?: {
@@ -6517,7 +6517,7 @@ declare function createFileOperationTools(config?: FileOperationsConfig): (_agen
6517
6517
  }> | _agentforge_core.Tool<{
6518
6518
  path: string;
6519
6519
  content: string;
6520
- encoding?: "ascii" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6520
+ encoding?: "base64" | "ascii" | "hex" | "utf-8" | "utf8" | undefined;
6521
6521
  createDirs?: boolean | undefined;
6522
6522
  }, {
6523
6523
  success: boolean;