@agentforge/tools 0.16.86 → 0.16.88

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
@@ -1,5 +1,5 @@
1
1
  import * as _agentforge_core from '@agentforge/core';
2
- import { LogLevel, JsonObject, JsonValue, HumanRequestPriority } from '@agentforge/core';
2
+ import { LogLevel, JsonValue, JsonObject, HumanRequestPriority } from '@agentforge/core';
3
3
  import { z } from 'zod';
4
4
  import { AxiosRequestConfig, AxiosResponse } from 'axios';
5
5
  import { SQL } from 'drizzle-orm';
@@ -627,15 +627,15 @@ declare const urlBuilderSchema: z.ZodObject<{
627
627
  protocol: string;
628
628
  hostname: string;
629
629
  pathname: string;
630
- query?: Record<string, string> | undefined;
631
630
  port?: string | undefined;
631
+ query?: Record<string, string> | undefined;
632
632
  hash?: string | undefined;
633
633
  }, {
634
634
  hostname: string;
635
- query?: Record<string, string> | undefined;
636
635
  protocol?: string | undefined;
637
636
  port?: string | undefined;
638
637
  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;
697
696
  protocol?: string | undefined;
698
697
  port?: string | undefined;
699
698
  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;
749
748
  protocol?: string | undefined;
750
749
  port?: string | undefined;
751
750
  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;
780
779
  protocol?: string | undefined;
781
780
  port?: string | undefined;
782
781
  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;
821
820
  protocol?: string | undefined;
822
821
  port?: string | undefined;
823
822
  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
- query: string;
911
910
  timeout: number;
911
+ query: string;
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;
977
975
  results: {
978
976
  link: string;
979
977
  title: string;
980
978
  snippet: string;
981
979
  position?: number | undefined;
982
980
  }[];
981
+ query: string;
982
+ success: boolean;
983
983
  source: "duckduckgo" | "serper";
984
- error?: string | undefined;
985
984
  metadata?: {
986
985
  responseTime?: number | undefined;
987
986
  fallbackUsed?: boolean | undefined;
988
987
  } | undefined;
989
988
  totalResults?: number | undefined;
989
+ error?: string | undefined;
990
990
  }, {
991
- success: boolean;
992
- query: string;
993
991
  results: {
994
992
  link: string;
995
993
  title: string;
996
994
  snippet: string;
997
995
  position?: number | undefined;
998
996
  }[];
997
+ query: string;
998
+ success: boolean;
999
999
  source: "duckduckgo" | "serper";
1000
- error?: string | undefined;
1001
1000
  metadata?: {
1002
1001
  responseTime?: number | undefined;
1003
1002
  fallbackUsed?: boolean | undefined;
1004
1003
  } | undefined;
1005
1004
  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: string;
2352
+ xml: any;
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: string;
2392
+ xml: any;
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: string;
2427
+ xml: any;
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: string;
2459
+ xml: any;
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: string;
2489
+ xml: any;
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: string;
2513
+ xml: any;
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: string;
2543
+ xml: any;
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: string;
2567
+ xml: any;
2568
2568
  error?: undefined;
2569
2569
  } | {
2570
2570
  success: boolean;
@@ -3022,14 +3022,14 @@ declare const neo4jVectorSearchWithEmbeddingSchema: z.ZodObject<{
3022
3022
  limit: number;
3023
3023
  indexName: string;
3024
3024
  queryText: string;
3025
- model?: string | undefined;
3026
3025
  database?: string | undefined;
3026
+ model?: string | undefined;
3027
3027
  }, {
3028
3028
  indexName: string;
3029
3029
  queryText: string;
3030
- model?: string | undefined;
3031
3030
  limit?: number | undefined;
3032
3031
  database?: string | undefined;
3032
+ model?: string | undefined;
3033
3033
  }>;
3034
3034
  /**
3035
3035
  * Neo4j create node with embedding schema
@@ -3046,14 +3046,14 @@ declare const neo4jCreateNodeWithEmbeddingSchema: z.ZodObject<{
3046
3046
  label: string;
3047
3047
  textProperty: string;
3048
3048
  embeddingProperty: string;
3049
- model?: string | undefined;
3050
3049
  database?: string | undefined;
3050
+ model?: string | undefined;
3051
3051
  }, {
3052
3052
  properties: JsonObject;
3053
3053
  label: string;
3054
3054
  textProperty: string;
3055
- model?: string | undefined;
3056
3055
  database?: string | undefined;
3056
+ model?: string | undefined;
3057
3057
  embeddingProperty?: string | undefined;
3058
3058
  }>;
3059
3059
  /**
@@ -3640,9 +3640,9 @@ declare function createNeo4jVectorSearchTool(): _agentforge_core.Tool<{
3640
3640
  declare function createNeo4jVectorSearchWithEmbeddingTool(): _agentforge_core.Tool<{
3641
3641
  indexName: string;
3642
3642
  queryText: string;
3643
- model?: string | undefined;
3644
3643
  limit?: number | undefined;
3645
3644
  database?: string | undefined;
3645
+ model?: string | undefined;
3646
3646
  }, {
3647
3647
  success: boolean;
3648
3648
  error: string;
@@ -3701,8 +3701,8 @@ declare function createNeo4jCreateNodeWithEmbeddingTool(): _agentforge_core.Tool
3701
3701
  properties: _agentforge_core.JsonObject;
3702
3702
  label: string;
3703
3703
  textProperty: string;
3704
- model?: string | undefined;
3705
3704
  database?: string | undefined;
3705
+ model?: string | undefined;
3706
3706
  embeddingProperty?: string | undefined;
3707
3707
  }, {
3708
3708
  success: boolean;
@@ -3930,9 +3930,9 @@ declare const neo4jVectorSearch: _agentforge_core.Tool<{
3930
3930
  declare const neo4jVectorSearchWithEmbedding: _agentforge_core.Tool<{
3931
3931
  indexName: string;
3932
3932
  queryText: string;
3933
- model?: string | undefined;
3934
3933
  limit?: number | undefined;
3935
3934
  database?: string | undefined;
3935
+ model?: string | undefined;
3936
3936
  }, {
3937
3937
  success: boolean;
3938
3938
  error: string;
@@ -3984,8 +3984,8 @@ declare const neo4jCreateNodeWithEmbedding: _agentforge_core.Tool<{
3984
3984
  properties: _agentforge_core.JsonObject;
3985
3985
  label: string;
3986
3986
  textProperty: string;
3987
- model?: string | undefined;
3988
3987
  database?: string | undefined;
3988
+ model?: string | undefined;
3989
3989
  embeddingProperty?: string | undefined;
3990
3990
  }, {
3991
3991
  success: boolean;
@@ -4192,9 +4192,9 @@ declare const neo4jTools: (_agentforge_core.Tool<{
4192
4192
  }> | _agentforge_core.Tool<{
4193
4193
  indexName: string;
4194
4194
  queryText: string;
4195
- model?: string | undefined;
4196
4195
  limit?: number | undefined;
4197
4196
  database?: string | undefined;
4197
+ model?: string | undefined;
4198
4198
  }, {
4199
4199
  success: boolean;
4200
4200
  error: string;
@@ -4242,8 +4242,8 @@ declare const neo4jTools: (_agentforge_core.Tool<{
4242
4242
  properties: _agentforge_core.JsonObject;
4243
4243
  label: string;
4244
4244
  textProperty: string;
4245
- model?: string | undefined;
4246
4245
  database?: string | undefined;
4246
+ model?: string | undefined;
4247
4247
  embeddingProperty?: string | undefined;
4248
4248
  }, {
4249
4249
  success: boolean;
@@ -4630,9 +4630,9 @@ declare function createNeo4jTools(config?: Neo4jToolsConfig, includeEmbeddingToo
4630
4630
  }> | _agentforge_core.Tool<{
4631
4631
  indexName: string;
4632
4632
  queryText: string;
4633
- model?: string | undefined;
4634
4633
  limit?: number | undefined;
4635
4634
  database?: string | undefined;
4635
+ model?: string | undefined;
4636
4636
  }, {
4637
4637
  success: boolean;
4638
4638
  error: string;
@@ -4680,8 +4680,8 @@ declare function createNeo4jTools(config?: Neo4jToolsConfig, includeEmbeddingToo
4680
4680
  properties: _agentforge_core.JsonObject;
4681
4681
  label: string;
4682
4682
  textProperty: string;
4683
- model?: string | undefined;
4684
4683
  database?: string | undefined;
4684
+ model?: string | undefined;
4685
4685
  embeddingProperty?: string | undefined;
4686
4686
  }, {
4687
4687
  success: boolean;
@@ -6176,10 +6176,10 @@ declare const fileReaderSchema: z.ZodObject<{
6176
6176
  encoding: z.ZodDefault<z.ZodEnum<["utf8", "utf-8", "ascii", "base64", "hex", "binary"]>>;
6177
6177
  }, "strip", z.ZodTypeAny, {
6178
6178
  path: string;
6179
- encoding: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8";
6179
+ encoding: "ascii" | "binary" | "base64" | "hex" | "utf-8" | "utf8";
6180
6180
  }, {
6181
6181
  path: string;
6182
- encoding?: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8" | undefined;
6182
+ encoding?: "ascii" | "binary" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6183
6183
  }>;
6184
6184
  /**
6185
6185
  * File writer schema
@@ -6192,12 +6192,12 @@ declare const fileWriterSchema: z.ZodObject<{
6192
6192
  }, "strip", z.ZodTypeAny, {
6193
6193
  path: string;
6194
6194
  content: string;
6195
- encoding: "base64" | "ascii" | "hex" | "utf-8" | "utf8";
6195
+ encoding: "ascii" | "base64" | "hex" | "utf-8" | "utf8";
6196
6196
  createDirs: boolean;
6197
6197
  }, {
6198
6198
  path: string;
6199
6199
  content: string;
6200
- encoding?: "base64" | "ascii" | "hex" | "utf-8" | "utf8" | undefined;
6200
+ encoding?: "ascii" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6201
6201
  createDirs?: boolean | undefined;
6202
6202
  }>;
6203
6203
  /**
@@ -6250,7 +6250,7 @@ interface FileOperationsConfig {
6250
6250
  */
6251
6251
  declare function createFileReaderTool(defaultEncoding?: string, policy?: FileSystemPolicy): _agentforge_core.Tool<{
6252
6252
  path: string;
6253
- encoding?: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8" | undefined;
6253
+ encoding?: "ascii" | "binary" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6254
6254
  }, {
6255
6255
  success: boolean;
6256
6256
  data?: {
@@ -6268,7 +6268,7 @@ declare function createFileReaderTool(defaultEncoding?: string, policy?: FileSys
6268
6268
  declare function createFileWriterTool(defaultEncoding?: string, createDirsDefault?: boolean, policy?: FileSystemPolicy): _agentforge_core.Tool<{
6269
6269
  path: string;
6270
6270
  content: string;
6271
- encoding?: "base64" | "ascii" | "hex" | "utf-8" | "utf8" | undefined;
6271
+ encoding?: "ascii" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6272
6272
  createDirs?: boolean | undefined;
6273
6273
  }, {
6274
6274
  success: boolean;
@@ -6349,7 +6349,7 @@ declare function createFileExistsTool(policy?: FileSystemPolicy): _agentforge_co
6349
6349
  */
6350
6350
  declare const fileReader: _agentforge_core.Tool<{
6351
6351
  path: string;
6352
- encoding?: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8" | undefined;
6352
+ encoding?: "ascii" | "binary" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6353
6353
  }, {
6354
6354
  success: boolean;
6355
6355
  data?: {
@@ -6363,7 +6363,7 @@ declare const fileReader: _agentforge_core.Tool<{
6363
6363
  declare const fileWriter: _agentforge_core.Tool<{
6364
6364
  path: string;
6365
6365
  content: string;
6366
- encoding?: "base64" | "ascii" | "hex" | "utf-8" | "utf8" | undefined;
6366
+ encoding?: "ascii" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6367
6367
  createDirs?: boolean | undefined;
6368
6368
  }, {
6369
6369
  success: boolean;
@@ -6431,7 +6431,7 @@ declare const fileExists: _agentforge_core.Tool<{
6431
6431
  */
6432
6432
  declare const fileOperationTools: (_agentforge_core.Tool<{
6433
6433
  path: string;
6434
- encoding?: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8" | undefined;
6434
+ encoding?: "ascii" | "binary" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6435
6435
  }, {
6436
6436
  success: boolean;
6437
6437
  data?: {
@@ -6444,7 +6444,7 @@ declare const fileOperationTools: (_agentforge_core.Tool<{
6444
6444
  }> | _agentforge_core.Tool<{
6445
6445
  path: string;
6446
6446
  content: string;
6447
- encoding?: "base64" | "ascii" | "hex" | "utf-8" | "utf8" | undefined;
6447
+ encoding?: "ascii" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6448
6448
  createDirs?: boolean | undefined;
6449
6449
  }, {
6450
6450
  success: boolean;
@@ -6509,7 +6509,7 @@ declare const fileOperationTools: (_agentforge_core.Tool<{
6509
6509
  */
6510
6510
  declare function createFileOperationTools(config?: FileOperationsConfig): (_agentforge_core.Tool<{
6511
6511
  path: string;
6512
- encoding?: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8" | undefined;
6512
+ encoding?: "ascii" | "binary" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6513
6513
  }, {
6514
6514
  success: boolean;
6515
6515
  data?: {
@@ -6522,7 +6522,7 @@ declare function createFileOperationTools(config?: FileOperationsConfig): (_agen
6522
6522
  }> | _agentforge_core.Tool<{
6523
6523
  path: string;
6524
6524
  content: string;
6525
- encoding?: "base64" | "ascii" | "hex" | "utf-8" | "utf8" | undefined;
6525
+ encoding?: "ascii" | "base64" | "hex" | "utf-8" | "utf8" | undefined;
6526
6526
  createDirs?: boolean | undefined;
6527
6527
  }, {
6528
6528
  success: boolean;