@hyperspaceng/neural-ai 0.68.2 → 0.69.1
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/README.md +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models.generated.d.ts +204 -0
- package/dist/models.generated.d.ts.map +1 -1
- package/dist/models.generated.js +218 -14
- package/dist/models.generated.js.map +1 -1
- package/dist/providers/amazon-bedrock.d.ts.map +1 -1
- package/dist/providers/amazon-bedrock.js.map +1 -1
- package/dist/providers/transform-messages.d.ts.map +1 -1
- package/dist/providers/transform-messages.js +2 -0
- package/dist/providers/transform-messages.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/typebox-helpers.d.ts +1 -1
- package/dist/utils/typebox-helpers.d.ts.map +1 -1
- package/dist/utils/typebox-helpers.js +1 -1
- package/dist/utils/typebox-helpers.js.map +1 -1
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +242 -41
- package/dist/utils/validation.js.map +1 -1
- package/package.json +2 -4
package/README.md
CHANGED
|
@@ -202,7 +202,7 @@ for (const block of response.content) {
|
|
|
202
202
|
|
|
203
203
|
## Tools
|
|
204
204
|
|
|
205
|
-
Tools enable LLMs to interact with external systems. This library uses TypeBox schemas for type-safe tool definitions with automatic validation using
|
|
205
|
+
Tools enable LLMs to interact with external systems. This library uses TypeBox schemas for type-safe tool definitions with automatic validation using TypeBox's built-in validator and value conversion utilities. TypeBox schemas can be serialized and deserialized as plain JSON, making them ideal for distributed systems.
|
|
206
206
|
|
|
207
207
|
### Defining Tools
|
|
208
208
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { Static, TSchema } from "
|
|
2
|
-
export { Type } from "
|
|
1
|
+
export type { Static, TSchema } from "typebox";
|
|
2
|
+
export { Type } from "typebox";
|
|
3
3
|
export * from "./api-registry.js";
|
|
4
4
|
export * from "./env-api-keys.js";
|
|
5
5
|
export * from "./models.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5F,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAC5G,YAAY,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACzF,cAAc,qBAAqB,CAAC;AACpC,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACpG,YAAY,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACxE,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACzF,YAAY,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,YAAY,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,cAAc,kCAAkC,CAAC;AACjD,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,YAAY,EACX,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,sBAAsB,GACtB,MAAM,wBAAwB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC","sourcesContent":["export type { Static, TSchema } from \"typebox\";\nexport { Type } from \"typebox\";\n\nexport * from \"./api-registry.js\";\nexport * from \"./env-api-keys.js\";\nexport * from \"./models.js\";\nexport type { BedrockOptions, BedrockThinkingDisplay } from \"./providers/amazon-bedrock.js\";\nexport type { AnthropicEffort, AnthropicOptions, AnthropicThinkingDisplay } from \"./providers/anthropic.js\";\nexport type { AzureOpenAIResponsesOptions } from \"./providers/azure-openai-responses.js\";\nexport * from \"./providers/faux.js\";\nexport type { GoogleOptions } from \"./providers/google.js\";\nexport type { GoogleGeminiCliOptions, GoogleThinkingLevel } from \"./providers/google-gemini-cli.js\";\nexport type { GoogleVertexOptions } from \"./providers/google-vertex.js\";\nexport type { MistralOptions } from \"./providers/mistral.js\";\nexport type { OpenAICodexResponsesOptions } from \"./providers/openai-codex-responses.js\";\nexport type { OpenAICompletionsOptions } from \"./providers/openai-completions.js\";\nexport type { OpenAIResponsesOptions } from \"./providers/openai-responses.js\";\nexport * from \"./providers/register-builtins.js\";\nexport * from \"./stream.js\";\nexport * from \"./types.js\";\nexport * from \"./utils/event-stream.js\";\nexport * from \"./utils/json-parse.js\";\nexport type {\n\tOAuthAuthInfo,\n\tOAuthCredentials,\n\tOAuthLoginCallbacks,\n\tOAuthPrompt,\n\tOAuthProvider,\n\tOAuthProviderId,\n\tOAuthProviderInfo,\n\tOAuthProviderInterface,\n} from \"./utils/oauth/types.js\";\nexport * from \"./utils/overflow.js\";\nexport * from \"./utils/typebox-helpers.js\";\nexport * from \"./utils/validation.js\";\n"]}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAI5B,cAAc,qBAAqB,CAAC;AAQpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AAWtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC","sourcesContent":["export type { Static, TSchema } from \"typebox\";\nexport { Type } from \"typebox\";\n\nexport * from \"./api-registry.js\";\nexport * from \"./env-api-keys.js\";\nexport * from \"./models.js\";\nexport type { BedrockOptions, BedrockThinkingDisplay } from \"./providers/amazon-bedrock.js\";\nexport type { AnthropicEffort, AnthropicOptions, AnthropicThinkingDisplay } from \"./providers/anthropic.js\";\nexport type { AzureOpenAIResponsesOptions } from \"./providers/azure-openai-responses.js\";\nexport * from \"./providers/faux.js\";\nexport type { GoogleOptions } from \"./providers/google.js\";\nexport type { GoogleGeminiCliOptions, GoogleThinkingLevel } from \"./providers/google-gemini-cli.js\";\nexport type { GoogleVertexOptions } from \"./providers/google-vertex.js\";\nexport type { MistralOptions } from \"./providers/mistral.js\";\nexport type { OpenAICodexResponsesOptions } from \"./providers/openai-codex-responses.js\";\nexport type { OpenAICompletionsOptions } from \"./providers/openai-completions.js\";\nexport type { OpenAIResponsesOptions } from \"./providers/openai-responses.js\";\nexport * from \"./providers/register-builtins.js\";\nexport * from \"./stream.js\";\nexport * from \"./types.js\";\nexport * from \"./utils/event-stream.js\";\nexport * from \"./utils/json-parse.js\";\nexport type {\n\tOAuthAuthInfo,\n\tOAuthCredentials,\n\tOAuthLoginCallbacks,\n\tOAuthPrompt,\n\tOAuthProvider,\n\tOAuthProviderId,\n\tOAuthProviderInfo,\n\tOAuthProviderInterface,\n} from \"./utils/oauth/types.js\";\nexport * from \"./utils/overflow.js\";\nexport * from \"./utils/typebox-helpers.js\";\nexport * from \"./utils/validation.js\";\n"]}
|
|
@@ -323,6 +323,40 @@ export declare const MODELS: {
|
|
|
323
323
|
contextWindow: number;
|
|
324
324
|
maxTokens: number;
|
|
325
325
|
};
|
|
326
|
+
readonly "au.anthropic.claude-opus-4-6-v1": {
|
|
327
|
+
id: string;
|
|
328
|
+
name: string;
|
|
329
|
+
api: "bedrock-converse-stream";
|
|
330
|
+
provider: string;
|
|
331
|
+
baseUrl: string;
|
|
332
|
+
reasoning: true;
|
|
333
|
+
input: ("image" | "text")[];
|
|
334
|
+
cost: {
|
|
335
|
+
input: number;
|
|
336
|
+
output: number;
|
|
337
|
+
cacheRead: number;
|
|
338
|
+
cacheWrite: number;
|
|
339
|
+
};
|
|
340
|
+
contextWindow: number;
|
|
341
|
+
maxTokens: number;
|
|
342
|
+
};
|
|
343
|
+
readonly "au.anthropic.claude-sonnet-4-6": {
|
|
344
|
+
id: string;
|
|
345
|
+
name: string;
|
|
346
|
+
api: "bedrock-converse-stream";
|
|
347
|
+
provider: string;
|
|
348
|
+
baseUrl: string;
|
|
349
|
+
reasoning: true;
|
|
350
|
+
input: ("image" | "text")[];
|
|
351
|
+
cost: {
|
|
352
|
+
input: number;
|
|
353
|
+
output: number;
|
|
354
|
+
cacheRead: number;
|
|
355
|
+
cacheWrite: number;
|
|
356
|
+
};
|
|
357
|
+
contextWindow: number;
|
|
358
|
+
maxTokens: number;
|
|
359
|
+
};
|
|
326
360
|
readonly "deepseek.r1-v1:0": {
|
|
327
361
|
id: string;
|
|
328
362
|
name: string;
|
|
@@ -2486,6 +2520,23 @@ export declare const MODELS: {
|
|
|
2486
2520
|
contextWindow: number;
|
|
2487
2521
|
maxTokens: number;
|
|
2488
2522
|
};
|
|
2523
|
+
readonly "gpt-5.5": {
|
|
2524
|
+
id: string;
|
|
2525
|
+
name: string;
|
|
2526
|
+
api: "azure-openai-responses";
|
|
2527
|
+
provider: string;
|
|
2528
|
+
baseUrl: string;
|
|
2529
|
+
reasoning: true;
|
|
2530
|
+
input: ("image" | "text")[];
|
|
2531
|
+
cost: {
|
|
2532
|
+
input: number;
|
|
2533
|
+
output: number;
|
|
2534
|
+
cacheRead: number;
|
|
2535
|
+
cacheWrite: number;
|
|
2536
|
+
};
|
|
2537
|
+
contextWindow: number;
|
|
2538
|
+
maxTokens: number;
|
|
2539
|
+
};
|
|
2489
2540
|
readonly o1: {
|
|
2490
2541
|
id: string;
|
|
2491
2542
|
name: string;
|
|
@@ -4315,6 +4366,23 @@ export declare const MODELS: {
|
|
|
4315
4366
|
contextWindow: number;
|
|
4316
4367
|
maxTokens: number;
|
|
4317
4368
|
};
|
|
4369
|
+
readonly "gemini-3.1-flash-lite-preview": {
|
|
4370
|
+
id: string;
|
|
4371
|
+
name: string;
|
|
4372
|
+
api: "google-gemini-cli";
|
|
4373
|
+
provider: string;
|
|
4374
|
+
baseUrl: string;
|
|
4375
|
+
reasoning: true;
|
|
4376
|
+
input: ("image" | "text")[];
|
|
4377
|
+
cost: {
|
|
4378
|
+
input: number;
|
|
4379
|
+
output: number;
|
|
4380
|
+
cacheRead: number;
|
|
4381
|
+
cacheWrite: number;
|
|
4382
|
+
};
|
|
4383
|
+
contextWindow: number;
|
|
4384
|
+
maxTokens: number;
|
|
4385
|
+
};
|
|
4318
4386
|
readonly "gemini-3.1-pro-preview": {
|
|
4319
4387
|
id: string;
|
|
4320
4388
|
name: string;
|
|
@@ -6400,6 +6468,23 @@ export declare const MODELS: {
|
|
|
6400
6468
|
contextWindow: number;
|
|
6401
6469
|
maxTokens: number;
|
|
6402
6470
|
};
|
|
6471
|
+
readonly "gpt-5.5": {
|
|
6472
|
+
id: string;
|
|
6473
|
+
name: string;
|
|
6474
|
+
api: "openai-responses";
|
|
6475
|
+
provider: string;
|
|
6476
|
+
baseUrl: string;
|
|
6477
|
+
reasoning: true;
|
|
6478
|
+
input: ("image" | "text")[];
|
|
6479
|
+
cost: {
|
|
6480
|
+
input: number;
|
|
6481
|
+
output: number;
|
|
6482
|
+
cacheRead: number;
|
|
6483
|
+
cacheWrite: number;
|
|
6484
|
+
};
|
|
6485
|
+
contextWindow: number;
|
|
6486
|
+
maxTokens: number;
|
|
6487
|
+
};
|
|
6403
6488
|
readonly o1: {
|
|
6404
6489
|
id: string;
|
|
6405
6490
|
name: string;
|
|
@@ -7169,6 +7254,23 @@ export declare const MODELS: {
|
|
|
7169
7254
|
contextWindow: number;
|
|
7170
7255
|
maxTokens: number;
|
|
7171
7256
|
};
|
|
7257
|
+
readonly "hy3-preview-free": {
|
|
7258
|
+
id: string;
|
|
7259
|
+
name: string;
|
|
7260
|
+
api: "openai-completions";
|
|
7261
|
+
provider: string;
|
|
7262
|
+
baseUrl: string;
|
|
7263
|
+
reasoning: true;
|
|
7264
|
+
input: "text"[];
|
|
7265
|
+
cost: {
|
|
7266
|
+
input: number;
|
|
7267
|
+
output: number;
|
|
7268
|
+
cacheRead: number;
|
|
7269
|
+
cacheWrite: number;
|
|
7270
|
+
};
|
|
7271
|
+
contextWindow: number;
|
|
7272
|
+
maxTokens: number;
|
|
7273
|
+
};
|
|
7172
7274
|
readonly "kimi-k2.5": {
|
|
7173
7275
|
id: string;
|
|
7174
7276
|
name: string;
|
|
@@ -8261,6 +8363,40 @@ export declare const MODELS: {
|
|
|
8261
8363
|
contextWindow: number;
|
|
8262
8364
|
maxTokens: number;
|
|
8263
8365
|
};
|
|
8366
|
+
readonly "deepseek/deepseek-v4-flash": {
|
|
8367
|
+
id: string;
|
|
8368
|
+
name: string;
|
|
8369
|
+
api: "openai-completions";
|
|
8370
|
+
provider: string;
|
|
8371
|
+
baseUrl: string;
|
|
8372
|
+
reasoning: true;
|
|
8373
|
+
input: "text"[];
|
|
8374
|
+
cost: {
|
|
8375
|
+
input: number;
|
|
8376
|
+
output: number;
|
|
8377
|
+
cacheRead: number;
|
|
8378
|
+
cacheWrite: number;
|
|
8379
|
+
};
|
|
8380
|
+
contextWindow: number;
|
|
8381
|
+
maxTokens: number;
|
|
8382
|
+
};
|
|
8383
|
+
readonly "deepseek/deepseek-v4-pro": {
|
|
8384
|
+
id: string;
|
|
8385
|
+
name: string;
|
|
8386
|
+
api: "openai-completions";
|
|
8387
|
+
provider: string;
|
|
8388
|
+
baseUrl: string;
|
|
8389
|
+
reasoning: true;
|
|
8390
|
+
input: "text"[];
|
|
8391
|
+
cost: {
|
|
8392
|
+
input: number;
|
|
8393
|
+
output: number;
|
|
8394
|
+
cacheRead: number;
|
|
8395
|
+
cacheWrite: number;
|
|
8396
|
+
};
|
|
8397
|
+
contextWindow: number;
|
|
8398
|
+
maxTokens: number;
|
|
8399
|
+
};
|
|
8264
8400
|
readonly "essentialai/rnj-1-instruct": {
|
|
8265
8401
|
id: string;
|
|
8266
8402
|
name: string;
|
|
@@ -8567,6 +8703,23 @@ export declare const MODELS: {
|
|
|
8567
8703
|
contextWindow: number;
|
|
8568
8704
|
maxTokens: number;
|
|
8569
8705
|
};
|
|
8706
|
+
readonly "inclusionai/ling-2.6-1t:free": {
|
|
8707
|
+
id: string;
|
|
8708
|
+
name: string;
|
|
8709
|
+
api: "openai-completions";
|
|
8710
|
+
provider: string;
|
|
8711
|
+
baseUrl: string;
|
|
8712
|
+
reasoning: false;
|
|
8713
|
+
input: "text"[];
|
|
8714
|
+
cost: {
|
|
8715
|
+
input: number;
|
|
8716
|
+
output: number;
|
|
8717
|
+
cacheRead: number;
|
|
8718
|
+
cacheWrite: number;
|
|
8719
|
+
};
|
|
8720
|
+
contextWindow: number;
|
|
8721
|
+
maxTokens: number;
|
|
8722
|
+
};
|
|
8570
8723
|
readonly "inclusionai/ling-2.6-flash:free": {
|
|
8571
8724
|
id: string;
|
|
8572
8725
|
name: string;
|
|
@@ -11236,6 +11389,23 @@ export declare const MODELS: {
|
|
|
11236
11389
|
contextWindow: number;
|
|
11237
11390
|
maxTokens: number;
|
|
11238
11391
|
};
|
|
11392
|
+
readonly "tencent/hy3-preview:free": {
|
|
11393
|
+
id: string;
|
|
11394
|
+
name: string;
|
|
11395
|
+
api: "openai-completions";
|
|
11396
|
+
provider: string;
|
|
11397
|
+
baseUrl: string;
|
|
11398
|
+
reasoning: true;
|
|
11399
|
+
input: "text"[];
|
|
11400
|
+
cost: {
|
|
11401
|
+
input: number;
|
|
11402
|
+
output: number;
|
|
11403
|
+
cacheRead: number;
|
|
11404
|
+
cacheWrite: number;
|
|
11405
|
+
};
|
|
11406
|
+
contextWindow: number;
|
|
11407
|
+
maxTokens: number;
|
|
11408
|
+
};
|
|
11239
11409
|
readonly "thedrummer/rocinante-12b": {
|
|
11240
11410
|
id: string;
|
|
11241
11411
|
name: string;
|
|
@@ -12445,6 +12615,40 @@ export declare const MODELS: {
|
|
|
12445
12615
|
contextWindow: number;
|
|
12446
12616
|
maxTokens: number;
|
|
12447
12617
|
};
|
|
12618
|
+
readonly "deepseek/deepseek-v4-flash": {
|
|
12619
|
+
id: string;
|
|
12620
|
+
name: string;
|
|
12621
|
+
api: "anthropic-messages";
|
|
12622
|
+
provider: string;
|
|
12623
|
+
baseUrl: string;
|
|
12624
|
+
reasoning: true;
|
|
12625
|
+
input: "text"[];
|
|
12626
|
+
cost: {
|
|
12627
|
+
input: number;
|
|
12628
|
+
output: number;
|
|
12629
|
+
cacheRead: number;
|
|
12630
|
+
cacheWrite: number;
|
|
12631
|
+
};
|
|
12632
|
+
contextWindow: number;
|
|
12633
|
+
maxTokens: number;
|
|
12634
|
+
};
|
|
12635
|
+
readonly "deepseek/deepseek-v4-pro": {
|
|
12636
|
+
id: string;
|
|
12637
|
+
name: string;
|
|
12638
|
+
api: "anthropic-messages";
|
|
12639
|
+
provider: string;
|
|
12640
|
+
baseUrl: string;
|
|
12641
|
+
reasoning: true;
|
|
12642
|
+
input: "text"[];
|
|
12643
|
+
cost: {
|
|
12644
|
+
input: number;
|
|
12645
|
+
output: number;
|
|
12646
|
+
cacheRead: number;
|
|
12647
|
+
cacheWrite: number;
|
|
12648
|
+
};
|
|
12649
|
+
contextWindow: number;
|
|
12650
|
+
maxTokens: number;
|
|
12651
|
+
};
|
|
12448
12652
|
readonly "google/gemini-2.0-flash": {
|
|
12449
12653
|
id: string;
|
|
12450
12654
|
name: string;
|