@layer-ai/sdk 0.1.3 → 0.1.4
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 +15 -1
- package/dist/resources/gates.d.ts +2 -1
- package/dist/resources/gates.d.ts.map +1 -1
- package/dist/resources/gates.js +2 -1
- package/dist/types/api-v2.d.ts +167 -0
- package/dist/types/api-v2.d.ts.map +1 -0
- package/dist/types/api-v2.js +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -117,7 +117,7 @@ const gate = await layer.gates.get('my-gate');
|
|
|
117
117
|
|
|
118
118
|
#### `layer.gates.create(data)` ⚠️ Requires Admin Mode
|
|
119
119
|
|
|
120
|
-
Create a new gate.
|
|
120
|
+
Create a new gate. For detailed information about gate configuration fields, see the [Configuration Guide](../../CONFIG.md).
|
|
121
121
|
|
|
122
122
|
```typescript
|
|
123
123
|
await layer.gates.create({
|
|
@@ -154,6 +154,20 @@ Delete a gate.
|
|
|
154
154
|
await layer.gates.delete('my-gate');
|
|
155
155
|
```
|
|
156
156
|
|
|
157
|
+
#### `layer.gates.suggestions(gateName)`
|
|
158
|
+
|
|
159
|
+
Get AI-powered model recommendations for a gate based on its task description.
|
|
160
|
+
|
|
161
|
+
```typescript
|
|
162
|
+
const suggestions = await layer.gates.suggestions('my-gate');
|
|
163
|
+
|
|
164
|
+
console.log(suggestions.primary); // "gpt-4o"
|
|
165
|
+
console.log(suggestions.alternatives); // ["claude-sonnet-4", "gemini-2.5-flash"]
|
|
166
|
+
console.log(suggestions.reasoning); // "Based on your task description..."
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Smart routing analyzes your gate's description and user preferences (cost, latency, quality weights) to recommend the best models from the registry.
|
|
170
|
+
|
|
157
171
|
### API Keys
|
|
158
172
|
|
|
159
173
|
#### `layer.keys.list()`
|
|
@@ -44,7 +44,8 @@ export declare class GatesResource {
|
|
|
44
44
|
/**
|
|
45
45
|
* Get AI-powered model suggestions for a gate.
|
|
46
46
|
*
|
|
47
|
-
*
|
|
47
|
+
* Analyzes the gate's task description and returns suggested models
|
|
48
|
+
* with confidence scores based on the task requirements.
|
|
48
49
|
*/
|
|
49
50
|
suggestions(gateName: string): Promise<TaskAnalysis>;
|
|
50
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gates.d.ts","sourceRoot":"","sources":["../../src/resources/gates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACpF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,qBAAa,aAAa;IACZ,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,KAAK;IAEjC;;;;;;;OAOG;IACG,MAAM,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IASpD;;;OAGG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;IAO7B;;;OAGG;IACG,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOtC;;;;;;;OAOG;IACG,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IASlE;;;;;;;OAOG;IACG,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQzC
|
|
1
|
+
{"version":3,"file":"gates.d.ts","sourceRoot":"","sources":["../../src/resources/gates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACpF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,qBAAa,aAAa;IACZ,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,KAAK;IAEjC;;;;;;;OAOG;IACG,MAAM,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IASpD;;;OAGG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;IAO7B;;;OAGG;IACG,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOtC;;;;;;;OAOG;IACG,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IASlE;;;;;;;OAOG;IACG,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQzC;;;;;OAKG;IACG,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAM3D"}
|
package/dist/resources/gates.js
CHANGED
|
@@ -72,7 +72,8 @@ export class GatesResource {
|
|
|
72
72
|
/**
|
|
73
73
|
* Get AI-powered model suggestions for a gate.
|
|
74
74
|
*
|
|
75
|
-
*
|
|
75
|
+
* Analyzes the gate's task description and returns suggested models
|
|
76
|
+
* with confidence scores based on the task requirements.
|
|
76
77
|
*/
|
|
77
78
|
async suggestions(gateName) {
|
|
78
79
|
return this.client.request({
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
export type Role = 'system' | 'user' | 'assistant' | 'tool' | 'function' | 'model' | 'developer';
|
|
2
|
+
export type ImageDetail = 'auto' | 'low' | 'high';
|
|
3
|
+
export type ImageSize = '256x256' | '512x512' | '1024x1024' | '1792x1024' | '1024x1792' | '1536x1024' | '1024x1536';
|
|
4
|
+
export type ImageQuality = 'standard' | 'hd';
|
|
5
|
+
export type ImageStyle = 'vivid' | 'natural';
|
|
6
|
+
export type AudioFormat = 'mp3' | 'opus' | 'aac' | 'flac' | 'wav' | 'pcm';
|
|
7
|
+
export type VideoSize = '720x1280' | '1280x720' | '1024x1792' | '1792x1024';
|
|
8
|
+
export type AudioMimeType = 'audio/mpeg' | 'audio/mp4' | 'audio/wav' | 'audio/webm' | 'audio/ogg' | 'audio/flac';
|
|
9
|
+
export type ImageMimeType = 'image/jpeg' | 'image/png' | 'image/gif' | 'image/webp';
|
|
10
|
+
export type ToolChoice = 'auto' | 'required' | 'none' | {
|
|
11
|
+
type: 'function';
|
|
12
|
+
function: {
|
|
13
|
+
name: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type FinishReason = 'completed' | 'length_limit' | 'tool_call' | 'filtered' | 'error';
|
|
17
|
+
export type ResponseFormatType = 'text' | 'json_object' | 'json_schema';
|
|
18
|
+
export type EncodingFormat = 'float' | 'base64';
|
|
19
|
+
export declare const ADAPTER_HANDLED = "__ADAPTER_HANDLED__";
|
|
20
|
+
type BaseRequest = {
|
|
21
|
+
gate: string;
|
|
22
|
+
model?: string;
|
|
23
|
+
metadata?: Record<string, unknown>;
|
|
24
|
+
};
|
|
25
|
+
export type LayerRequest = (BaseRequest & {
|
|
26
|
+
type: 'chat';
|
|
27
|
+
data: ChatRequest;
|
|
28
|
+
}) | (BaseRequest & {
|
|
29
|
+
type: 'image';
|
|
30
|
+
data: ImageGenerationRequest;
|
|
31
|
+
}) | (BaseRequest & {
|
|
32
|
+
type: 'video';
|
|
33
|
+
data: VideoGenerationRequest;
|
|
34
|
+
}) | (BaseRequest & {
|
|
35
|
+
type: 'embeddings';
|
|
36
|
+
data: EmbeddingsRequest;
|
|
37
|
+
}) | (BaseRequest & {
|
|
38
|
+
type: 'tts';
|
|
39
|
+
data: TextToSpeechRequest;
|
|
40
|
+
});
|
|
41
|
+
export interface ChatRequest {
|
|
42
|
+
messages: MultimodalMessage[];
|
|
43
|
+
systemPrompt?: string;
|
|
44
|
+
tools?: Tool[];
|
|
45
|
+
toolChoice?: ToolChoice;
|
|
46
|
+
temperature?: number;
|
|
47
|
+
maxTokens?: number;
|
|
48
|
+
topP?: number;
|
|
49
|
+
stream?: boolean;
|
|
50
|
+
stopSequences?: string[];
|
|
51
|
+
frequencyPenalty?: number;
|
|
52
|
+
presencePenalty?: number;
|
|
53
|
+
responseFormat?: ResponseFormatType | {
|
|
54
|
+
type: ResponseFormatType;
|
|
55
|
+
json_schema?: unknown;
|
|
56
|
+
};
|
|
57
|
+
seed?: number;
|
|
58
|
+
}
|
|
59
|
+
export interface MultimodalMessage {
|
|
60
|
+
role: Role;
|
|
61
|
+
content?: string;
|
|
62
|
+
images?: ImageInput[];
|
|
63
|
+
audio?: AudioInput;
|
|
64
|
+
toolCallId?: string;
|
|
65
|
+
toolCalls?: ToolCall[];
|
|
66
|
+
name?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface ImageInput {
|
|
69
|
+
url?: string;
|
|
70
|
+
base64?: string;
|
|
71
|
+
mimeType?: ImageMimeType;
|
|
72
|
+
detail?: ImageDetail;
|
|
73
|
+
}
|
|
74
|
+
export interface AudioInput {
|
|
75
|
+
url?: string;
|
|
76
|
+
base64?: string;
|
|
77
|
+
mimeType?: AudioMimeType;
|
|
78
|
+
format?: AudioFormat;
|
|
79
|
+
}
|
|
80
|
+
export interface Tool {
|
|
81
|
+
type: 'function';
|
|
82
|
+
function: {
|
|
83
|
+
name: string;
|
|
84
|
+
description?: string;
|
|
85
|
+
parameters?: {
|
|
86
|
+
type: 'object' | 'string' | 'number' | 'boolean' | 'array';
|
|
87
|
+
properties?: Record<string, unknown>;
|
|
88
|
+
required?: string[];
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
export interface ToolCall {
|
|
93
|
+
id: string;
|
|
94
|
+
type: 'function';
|
|
95
|
+
function: {
|
|
96
|
+
name: string;
|
|
97
|
+
arguments: string;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
export interface ImageGenerationRequest {
|
|
101
|
+
prompt: string;
|
|
102
|
+
size?: ImageSize;
|
|
103
|
+
quality?: ImageQuality;
|
|
104
|
+
count?: number;
|
|
105
|
+
style?: ImageStyle;
|
|
106
|
+
seed?: number;
|
|
107
|
+
}
|
|
108
|
+
export interface VideoGenerationRequest {
|
|
109
|
+
prompt: string;
|
|
110
|
+
duration?: number | string;
|
|
111
|
+
size?: VideoSize;
|
|
112
|
+
fps?: number;
|
|
113
|
+
seed?: number;
|
|
114
|
+
}
|
|
115
|
+
export interface EmbeddingsRequest {
|
|
116
|
+
input: string | string[];
|
|
117
|
+
dimensions?: number;
|
|
118
|
+
encodingFormat?: EncodingFormat;
|
|
119
|
+
}
|
|
120
|
+
export interface TextToSpeechRequest {
|
|
121
|
+
input: string;
|
|
122
|
+
voice?: string;
|
|
123
|
+
speed?: number;
|
|
124
|
+
responseFormat?: AudioFormat;
|
|
125
|
+
}
|
|
126
|
+
export interface LayerResponse {
|
|
127
|
+
id?: string;
|
|
128
|
+
created?: number;
|
|
129
|
+
content?: string;
|
|
130
|
+
images?: ImageOutput[];
|
|
131
|
+
videos?: VideoOutput[];
|
|
132
|
+
audio?: AudioOutput;
|
|
133
|
+
embeddings?: number[][];
|
|
134
|
+
toolCalls?: ToolCall[];
|
|
135
|
+
model?: string;
|
|
136
|
+
finishReason?: FinishReason;
|
|
137
|
+
rawFinishReason?: string;
|
|
138
|
+
usage?: {
|
|
139
|
+
promptTokens?: number;
|
|
140
|
+
completionTokens?: number;
|
|
141
|
+
totalTokens?: number;
|
|
142
|
+
};
|
|
143
|
+
stream?: boolean;
|
|
144
|
+
cost?: number;
|
|
145
|
+
latencyMs?: number;
|
|
146
|
+
raw?: unknown;
|
|
147
|
+
}
|
|
148
|
+
export interface ImageOutput {
|
|
149
|
+
url?: string;
|
|
150
|
+
base64?: string;
|
|
151
|
+
revisedPrompt?: string;
|
|
152
|
+
}
|
|
153
|
+
export interface VideoOutput {
|
|
154
|
+
url?: string;
|
|
155
|
+
base64?: string;
|
|
156
|
+
duration?: number;
|
|
157
|
+
revisedPrompt?: string;
|
|
158
|
+
}
|
|
159
|
+
export interface AudioOutput {
|
|
160
|
+
url?: string;
|
|
161
|
+
base64?: string;
|
|
162
|
+
format?: AudioFormat;
|
|
163
|
+
text?: string;
|
|
164
|
+
duration?: number;
|
|
165
|
+
}
|
|
166
|
+
export {};
|
|
167
|
+
//# sourceMappingURL=api-v2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-v2.d.ts","sourceRoot":"","sources":["../../src/types/api-v2.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,IAAI,GACZ,QAAQ,GACR,MAAM,GACN,WAAW,GACX,MAAM,GACN,UAAU,GACV,OAAO,GACP,WAAW,CAAC;AAEhB,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,KAAK,GACL,MAAM,CAAC;AAEX,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,SAAS,GACT,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,CAAC;AAEhB,MAAM,MAAM,YAAY,GACpB,UAAU,GACV,IAAI,CAAC;AAET,MAAM,MAAM,UAAU,GAClB,OAAO,GACP,SAAS,CAAC;AAEd,MAAM,MAAM,WAAW,GACnB,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,CAAC;AAEV,MAAM,MAAM,SAAS,GACjB,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,CAAC;AAEhB,MAAM,MAAM,aAAa,GACrB,YAAY,GACZ,WAAW,GACX,WAAW,GACX,YAAY,GACZ,WAAW,GACX,YAAY,CAAC;AAEjB,MAAM,MAAM,aAAa,GACrB,YAAY,GACZ,WAAW,GACX,WAAW,GACX,YAAY,CAAC;AAEjB,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,UAAU,GACV,MAAM,GACN;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EA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/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
|
package/dist/types/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layer-ai/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Configure multiple AI models at runtime without code changes or deployments",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,6 +20,11 @@
|
|
|
20
20
|
"README.md",
|
|
21
21
|
"LICENSE"
|
|
22
22
|
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsc",
|
|
25
|
+
"dev": "tsc --watch",
|
|
26
|
+
"clean": "rm -rf dist"
|
|
27
|
+
},
|
|
23
28
|
"keywords": [
|
|
24
29
|
"ai",
|
|
25
30
|
"llm",
|
|
@@ -52,10 +57,5 @@
|
|
|
52
57
|
"devDependencies": {
|
|
53
58
|
"@types/node": "^20.10.0",
|
|
54
59
|
"typescript": "^5.9.3"
|
|
55
|
-
},
|
|
56
|
-
"scripts": {
|
|
57
|
-
"build": "tsc",
|
|
58
|
-
"dev": "tsc --watch",
|
|
59
|
-
"clean": "rm -rf dist"
|
|
60
60
|
}
|
|
61
61
|
}
|