@agentuity/aigateway 3.0.0-beta.4 → 3.0.0-beta.6
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 +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +20 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { AIGatewayService, type AIGatewayChatCompletion, type AIGatewayChatCompletionParams, type AIGatewayChatMessage, type AIGatewayModel, type AIGatewayModelProvider, type AIGatewayModels, type AIGatewayModelsResponse, type AIGatewayPricing, AIGatewayChatCompletionParamsSchema, AIGatewayChatCompletionSchema, AIGatewayChatMessageSchema, AIGatewayModelProviderSchema, AIGatewayModelSchema, AIGatewayModelsResponseSchema, AIGatewayModelsSchema, AIGatewayPricingSchema, } from '@agentuity/core/aigateway';
|
|
2
|
-
import { type AIGatewayChatCompletion, type AIGatewayChatCompletionParams, type AIGatewayModels } from '@agentuity/core/aigateway';
|
|
1
|
+
export { AIGatewayService, buildAIGatewayCompletionParams, type AIGatewayChatCompletion, type AIGatewayChatCompletionParams, type AIGatewayChatMessage, type AIGatewayCompletionAdapterRequest, type AIGatewayModel, type AIGatewayModelProvider, type AIGatewayModels, type AIGatewayModelsResponse, type AIGatewayPricing, type AIGatewayRequestOptions, type AIGatewayRequestResponse, type AIGatewayReasoning, type AIGatewayResponseMetadata, type AIGatewayStreamingCompletion, AIGatewayChatCompletionParamsSchema, AIGatewayChatCompletionSchema, AIGatewayChatMessageSchema, AIGatewayModelProviderSchema, AIGatewayModelSchema, AIGatewayModelsResponseSchema, AIGatewayModelsSchema, AIGatewayPricingSchema, } from '@agentuity/core/aigateway';
|
|
2
|
+
import { type AIGatewayChatCompletion, type AIGatewayChatCompletionParams, type AIGatewayModels, type AIGatewayRequestOptions, type AIGatewayRequestResponse, type AIGatewayStreamingCompletion } from '@agentuity/core/aigateway';
|
|
3
3
|
import { type Logger } from '@agentuity/core';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
export declare const AIGatewayClientOptionsSchema: z.ZodObject<{
|
|
@@ -14,5 +14,7 @@ export declare class AIGatewayClient {
|
|
|
14
14
|
constructor(options?: AIGatewayClientOptions);
|
|
15
15
|
listModels(): Promise<AIGatewayModels>;
|
|
16
16
|
complete(params: AIGatewayChatCompletionParams): Promise<AIGatewayChatCompletion>;
|
|
17
|
+
request<T = unknown>(options: AIGatewayRequestOptions): Promise<AIGatewayRequestResponse<T>>;
|
|
18
|
+
streamRequest(options: AIGatewayRequestOptions): Promise<AIGatewayStreamingCompletion>;
|
|
17
19
|
}
|
|
18
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,mCAAmC,EACnC,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,oBAAoB,EACpB,6BAA6B,EAC7B,qBAAqB,EACrB,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAEN,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,eAAe,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAA+B,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAG3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,4BAA4B;;;;;iBAKvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAA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Ae,CAAC;IAItC,QAAQ,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAIjF,OAAO,CAAC,CAAC,GAAG,OAAO,EACxB,OAAO,EAAE,uBAAuB,GAC9B,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;IAIjC,aAAa,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,4BAA4B,CAAC;CAG5F"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AIGatewayService, AIGatewayChatCompletionParamsSchema, AIGatewayChatCompletionSchema, AIGatewayChatMessageSchema, AIGatewayModelProviderSchema, AIGatewayModelSchema, AIGatewayModelsResponseSchema, AIGatewayModelsSchema, AIGatewayPricingSchema, } from '@agentuity/core/aigateway';
|
|
1
|
+
export { AIGatewayService, buildAIGatewayCompletionParams, AIGatewayChatCompletionParamsSchema, AIGatewayChatCompletionSchema, AIGatewayChatMessageSchema, AIGatewayModelProviderSchema, AIGatewayModelSchema, AIGatewayModelsResponseSchema, AIGatewayModelsSchema, AIGatewayPricingSchema, } from '@agentuity/core/aigateway';
|
|
2
2
|
import { AIGatewayService, } from '@agentuity/core/aigateway';
|
|
3
3
|
import { createMinimalLogger, getEnv } from '@agentuity/core';
|
|
4
4
|
import { getServiceUrls } from '@agentuity/core/config';
|
|
@@ -38,5 +38,11 @@ export class AIGatewayClient {
|
|
|
38
38
|
async complete(params) {
|
|
39
39
|
return this.#service.complete(params);
|
|
40
40
|
}
|
|
41
|
+
async request(options) {
|
|
42
|
+
return this.#service.request(options);
|
|
43
|
+
}
|
|
44
|
+
async streamRequest(options) {
|
|
45
|
+
return this.#service.streamRequest(options);
|
|
46
|
+
}
|
|
41
47
|
}
|
|
42
48
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"m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AAI,CAAC,QAAQ,CAAC,OAAO,CAAI,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,OAAgC;QACnD,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;CACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentuity/aigateway",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Agentuity employees and contributors",
|
|
6
6
|
"type": "module",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"prepublishOnly": "bun run clean && bun run build"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@agentuity/core": "3.0.0-beta.
|
|
29
|
-
"@agentuity/adapter": "3.0.0-beta.
|
|
28
|
+
"@agentuity/core": "3.0.0-beta.6",
|
|
29
|
+
"@agentuity/adapter": "3.0.0-beta.6",
|
|
30
30
|
"zod": "^4.3.5"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
package/src/index.ts
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
export {
|
|
2
2
|
AIGatewayService,
|
|
3
|
+
buildAIGatewayCompletionParams,
|
|
3
4
|
type AIGatewayChatCompletion,
|
|
4
5
|
type AIGatewayChatCompletionParams,
|
|
5
6
|
type AIGatewayChatMessage,
|
|
7
|
+
type AIGatewayCompletionAdapterRequest,
|
|
6
8
|
type AIGatewayModel,
|
|
7
9
|
type AIGatewayModelProvider,
|
|
8
10
|
type AIGatewayModels,
|
|
9
11
|
type AIGatewayModelsResponse,
|
|
10
12
|
type AIGatewayPricing,
|
|
13
|
+
type AIGatewayRequestOptions,
|
|
14
|
+
type AIGatewayRequestResponse,
|
|
15
|
+
type AIGatewayReasoning,
|
|
16
|
+
type AIGatewayResponseMetadata,
|
|
17
|
+
type AIGatewayStreamingCompletion,
|
|
11
18
|
AIGatewayChatCompletionParamsSchema,
|
|
12
19
|
AIGatewayChatCompletionSchema,
|
|
13
20
|
AIGatewayChatMessageSchema,
|
|
@@ -23,6 +30,9 @@ import {
|
|
|
23
30
|
type AIGatewayChatCompletion,
|
|
24
31
|
type AIGatewayChatCompletionParams,
|
|
25
32
|
type AIGatewayModels,
|
|
33
|
+
type AIGatewayRequestOptions,
|
|
34
|
+
type AIGatewayRequestResponse,
|
|
35
|
+
type AIGatewayStreamingCompletion,
|
|
26
36
|
} from '@agentuity/core/aigateway';
|
|
27
37
|
import { createMinimalLogger, getEnv, type Logger } from '@agentuity/core';
|
|
28
38
|
import { getServiceUrls } from '@agentuity/core/config';
|
|
@@ -76,4 +86,14 @@ export class AIGatewayClient {
|
|
|
76
86
|
async complete(params: AIGatewayChatCompletionParams): Promise<AIGatewayChatCompletion> {
|
|
77
87
|
return this.#service.complete(params);
|
|
78
88
|
}
|
|
89
|
+
|
|
90
|
+
async request<T = unknown>(
|
|
91
|
+
options: AIGatewayRequestOptions
|
|
92
|
+
): Promise<AIGatewayRequestResponse<T>> {
|
|
93
|
+
return this.#service.request<T>(options);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
async streamRequest(options: AIGatewayRequestOptions): Promise<AIGatewayStreamingCompletion> {
|
|
97
|
+
return this.#service.streamRequest(options);
|
|
98
|
+
}
|
|
79
99
|
}
|