@akumi/sdk 0.7.0 → 0.7.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/dist/index.cjs +39 -0
- package/dist/index.d.cts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +38 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
AgentsResource: () => AgentsResource,
|
|
23
24
|
Akumi: () => Akumi,
|
|
24
25
|
AkumiError: () => AkumiError,
|
|
25
26
|
ApiError: () => ApiError,
|
|
@@ -221,6 +222,41 @@ function safeJsonParse(text) {
|
|
|
221
222
|
}
|
|
222
223
|
}
|
|
223
224
|
|
|
225
|
+
// src/resources/agents.ts
|
|
226
|
+
var AgentsResource = class {
|
|
227
|
+
constructor(transport) {
|
|
228
|
+
this.transport = transport;
|
|
229
|
+
}
|
|
230
|
+
transport;
|
|
231
|
+
async v1AgentsIndex() {
|
|
232
|
+
return this.transport.request("GET", "/agents", null, null);
|
|
233
|
+
}
|
|
234
|
+
async v1AgentsStore(params = {}) {
|
|
235
|
+
return this.transport.request("POST", "/agents", null, params);
|
|
236
|
+
}
|
|
237
|
+
async v1AgentsRunsShow(run) {
|
|
238
|
+
return this.transport.request("GET", `/agents/runs/${run}`, null, null);
|
|
239
|
+
}
|
|
240
|
+
async v1AgentsShow(agent) {
|
|
241
|
+
return this.transport.request("GET", `/agents/${agent}`, null, null);
|
|
242
|
+
}
|
|
243
|
+
async v1AgentsUpdate(agent, params = {}) {
|
|
244
|
+
return this.transport.request("PATCH", `/agents/${agent}`, null, params);
|
|
245
|
+
}
|
|
246
|
+
async v1AgentsVersionsIndex(agent) {
|
|
247
|
+
return this.transport.request("GET", `/agents/${agent}/versions`, null, null);
|
|
248
|
+
}
|
|
249
|
+
async v1AgentsVersionsStore(agent, params = {}) {
|
|
250
|
+
return this.transport.request("POST", `/agents/${agent}/versions`, null, params);
|
|
251
|
+
}
|
|
252
|
+
async v1AgentsVersionsShow(agent, version) {
|
|
253
|
+
return this.transport.request("GET", `/agents/${agent}/versions/${version}`, null, null);
|
|
254
|
+
}
|
|
255
|
+
async v1AgentsRunsStore(agent, params = {}) {
|
|
256
|
+
return this.transport.request("POST", `/agents/${agent}/runs`, null, params);
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
|
|
224
260
|
// src/resources/auditLog.ts
|
|
225
261
|
var AuditLogResource = class {
|
|
226
262
|
constructor(transport) {
|
|
@@ -350,6 +386,7 @@ var ScoresResource = class {
|
|
|
350
386
|
// src/client.ts
|
|
351
387
|
var Akumi = class _Akumi {
|
|
352
388
|
transport;
|
|
389
|
+
agents;
|
|
353
390
|
auditLog;
|
|
354
391
|
chatCompletions;
|
|
355
392
|
embeddings;
|
|
@@ -358,6 +395,7 @@ var Akumi = class _Akumi {
|
|
|
358
395
|
scores;
|
|
359
396
|
constructor(config) {
|
|
360
397
|
this.transport = new Transport(config);
|
|
398
|
+
this.agents = new AgentsResource(this.transport);
|
|
361
399
|
this.auditLog = new AuditLogResource(this.transport);
|
|
362
400
|
this.chatCompletions = new ChatCompletionsResource(this.transport);
|
|
363
401
|
this.embeddings = new EmbeddingsResource(this.transport);
|
|
@@ -371,6 +409,7 @@ var Akumi = class _Akumi {
|
|
|
371
409
|
};
|
|
372
410
|
// Annotate the CommonJS export names for ESM import in node:
|
|
373
411
|
0 && (module.exports = {
|
|
412
|
+
AgentsResource,
|
|
374
413
|
Akumi,
|
|
375
414
|
AkumiError,
|
|
376
415
|
ApiError,
|
package/dist/index.d.cts
CHANGED
|
@@ -18,6 +18,20 @@ declare class Transport {
|
|
|
18
18
|
private dispatch;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
declare class AgentsResource {
|
|
22
|
+
private readonly transport;
|
|
23
|
+
constructor(transport: Transport);
|
|
24
|
+
v1AgentsIndex(): Promise<Record<string, unknown>>;
|
|
25
|
+
v1AgentsStore(params?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
26
|
+
v1AgentsRunsShow(run: string): Promise<Record<string, unknown>>;
|
|
27
|
+
v1AgentsShow(agent: string): Promise<Record<string, unknown>>;
|
|
28
|
+
v1AgentsUpdate(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
29
|
+
v1AgentsVersionsIndex(agent: string): Promise<Record<string, unknown>>;
|
|
30
|
+
v1AgentsVersionsStore(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
31
|
+
v1AgentsVersionsShow(agent: string, version: string): Promise<Record<string, unknown>>;
|
|
32
|
+
v1AgentsRunsStore(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
33
|
+
}
|
|
34
|
+
|
|
21
35
|
declare class AuditLogResource {
|
|
22
36
|
private readonly transport;
|
|
23
37
|
constructor(transport: Transport);
|
|
@@ -76,6 +90,7 @@ declare class ScoresResource {
|
|
|
76
90
|
|
|
77
91
|
declare class Akumi {
|
|
78
92
|
private readonly transport;
|
|
93
|
+
readonly agents: AgentsResource;
|
|
79
94
|
readonly auditLog: AuditLogResource;
|
|
80
95
|
readonly chatCompletions: ChatCompletionsResource;
|
|
81
96
|
readonly embeddings: EmbeddingsResource;
|
|
@@ -194,4 +209,4 @@ interface ThreadMessageViewModel {
|
|
|
194
209
|
interface ThreadViewModel {
|
|
195
210
|
}
|
|
196
211
|
|
|
197
|
-
export { Akumi, AkumiError, ApiError, type AuditLogApiResource, AuditLogResource, AuthenticationError, type ChatCompletionsRequest, ChatCompletionsResource, type ClientConfig, type EmbeddingsRequest, EmbeddingsResource, type IngestDocumentRequest, InvalidRequestError, MemoryResource, ModelsResource, type PiiLanguage, RateLimitError, type RememberFactRequest, ScoresResource, type SearchRequest, type StoreCollectionRequest, type StoreScoreRequest, type ThreadMessageViewModel, type ThreadViewModel };
|
|
212
|
+
export { AgentsResource, Akumi, AkumiError, ApiError, type AuditLogApiResource, AuditLogResource, AuthenticationError, type ChatCompletionsRequest, ChatCompletionsResource, type ClientConfig, type EmbeddingsRequest, EmbeddingsResource, type IngestDocumentRequest, InvalidRequestError, MemoryResource, ModelsResource, type PiiLanguage, RateLimitError, type RememberFactRequest, ScoresResource, type SearchRequest, type StoreCollectionRequest, type StoreScoreRequest, type ThreadMessageViewModel, type ThreadViewModel };
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,20 @@ declare class Transport {
|
|
|
18
18
|
private dispatch;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
declare class AgentsResource {
|
|
22
|
+
private readonly transport;
|
|
23
|
+
constructor(transport: Transport);
|
|
24
|
+
v1AgentsIndex(): Promise<Record<string, unknown>>;
|
|
25
|
+
v1AgentsStore(params?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
26
|
+
v1AgentsRunsShow(run: string): Promise<Record<string, unknown>>;
|
|
27
|
+
v1AgentsShow(agent: string): Promise<Record<string, unknown>>;
|
|
28
|
+
v1AgentsUpdate(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
29
|
+
v1AgentsVersionsIndex(agent: string): Promise<Record<string, unknown>>;
|
|
30
|
+
v1AgentsVersionsStore(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
31
|
+
v1AgentsVersionsShow(agent: string, version: string): Promise<Record<string, unknown>>;
|
|
32
|
+
v1AgentsRunsStore(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
33
|
+
}
|
|
34
|
+
|
|
21
35
|
declare class AuditLogResource {
|
|
22
36
|
private readonly transport;
|
|
23
37
|
constructor(transport: Transport);
|
|
@@ -76,6 +90,7 @@ declare class ScoresResource {
|
|
|
76
90
|
|
|
77
91
|
declare class Akumi {
|
|
78
92
|
private readonly transport;
|
|
93
|
+
readonly agents: AgentsResource;
|
|
79
94
|
readonly auditLog: AuditLogResource;
|
|
80
95
|
readonly chatCompletions: ChatCompletionsResource;
|
|
81
96
|
readonly embeddings: EmbeddingsResource;
|
|
@@ -194,4 +209,4 @@ interface ThreadMessageViewModel {
|
|
|
194
209
|
interface ThreadViewModel {
|
|
195
210
|
}
|
|
196
211
|
|
|
197
|
-
export { Akumi, AkumiError, ApiError, type AuditLogApiResource, AuditLogResource, AuthenticationError, type ChatCompletionsRequest, ChatCompletionsResource, type ClientConfig, type EmbeddingsRequest, EmbeddingsResource, type IngestDocumentRequest, InvalidRequestError, MemoryResource, ModelsResource, type PiiLanguage, RateLimitError, type RememberFactRequest, ScoresResource, type SearchRequest, type StoreCollectionRequest, type StoreScoreRequest, type ThreadMessageViewModel, type ThreadViewModel };
|
|
212
|
+
export { AgentsResource, Akumi, AkumiError, ApiError, type AuditLogApiResource, AuditLogResource, AuthenticationError, type ChatCompletionsRequest, ChatCompletionsResource, type ClientConfig, type EmbeddingsRequest, EmbeddingsResource, type IngestDocumentRequest, InvalidRequestError, MemoryResource, ModelsResource, type PiiLanguage, RateLimitError, type RememberFactRequest, ScoresResource, type SearchRequest, type StoreCollectionRequest, type StoreScoreRequest, type ThreadMessageViewModel, type ThreadViewModel };
|
package/dist/index.js
CHANGED
|
@@ -184,6 +184,41 @@ function safeJsonParse(text) {
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
+
// src/resources/agents.ts
|
|
188
|
+
var AgentsResource = class {
|
|
189
|
+
constructor(transport) {
|
|
190
|
+
this.transport = transport;
|
|
191
|
+
}
|
|
192
|
+
transport;
|
|
193
|
+
async v1AgentsIndex() {
|
|
194
|
+
return this.transport.request("GET", "/agents", null, null);
|
|
195
|
+
}
|
|
196
|
+
async v1AgentsStore(params = {}) {
|
|
197
|
+
return this.transport.request("POST", "/agents", null, params);
|
|
198
|
+
}
|
|
199
|
+
async v1AgentsRunsShow(run) {
|
|
200
|
+
return this.transport.request("GET", `/agents/runs/${run}`, null, null);
|
|
201
|
+
}
|
|
202
|
+
async v1AgentsShow(agent) {
|
|
203
|
+
return this.transport.request("GET", `/agents/${agent}`, null, null);
|
|
204
|
+
}
|
|
205
|
+
async v1AgentsUpdate(agent, params = {}) {
|
|
206
|
+
return this.transport.request("PATCH", `/agents/${agent}`, null, params);
|
|
207
|
+
}
|
|
208
|
+
async v1AgentsVersionsIndex(agent) {
|
|
209
|
+
return this.transport.request("GET", `/agents/${agent}/versions`, null, null);
|
|
210
|
+
}
|
|
211
|
+
async v1AgentsVersionsStore(agent, params = {}) {
|
|
212
|
+
return this.transport.request("POST", `/agents/${agent}/versions`, null, params);
|
|
213
|
+
}
|
|
214
|
+
async v1AgentsVersionsShow(agent, version) {
|
|
215
|
+
return this.transport.request("GET", `/agents/${agent}/versions/${version}`, null, null);
|
|
216
|
+
}
|
|
217
|
+
async v1AgentsRunsStore(agent, params = {}) {
|
|
218
|
+
return this.transport.request("POST", `/agents/${agent}/runs`, null, params);
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
|
|
187
222
|
// src/resources/auditLog.ts
|
|
188
223
|
var AuditLogResource = class {
|
|
189
224
|
constructor(transport) {
|
|
@@ -313,6 +348,7 @@ var ScoresResource = class {
|
|
|
313
348
|
// src/client.ts
|
|
314
349
|
var Akumi = class _Akumi {
|
|
315
350
|
transport;
|
|
351
|
+
agents;
|
|
316
352
|
auditLog;
|
|
317
353
|
chatCompletions;
|
|
318
354
|
embeddings;
|
|
@@ -321,6 +357,7 @@ var Akumi = class _Akumi {
|
|
|
321
357
|
scores;
|
|
322
358
|
constructor(config) {
|
|
323
359
|
this.transport = new Transport(config);
|
|
360
|
+
this.agents = new AgentsResource(this.transport);
|
|
324
361
|
this.auditLog = new AuditLogResource(this.transport);
|
|
325
362
|
this.chatCompletions = new ChatCompletionsResource(this.transport);
|
|
326
363
|
this.embeddings = new EmbeddingsResource(this.transport);
|
|
@@ -333,6 +370,7 @@ var Akumi = class _Akumi {
|
|
|
333
370
|
}
|
|
334
371
|
};
|
|
335
372
|
export {
|
|
373
|
+
AgentsResource,
|
|
336
374
|
Akumi,
|
|
337
375
|
AkumiError,
|
|
338
376
|
ApiError,
|