@akumi/sdk 0.7.3 → 0.7.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/dist/index.cjs +0 -42
- package/dist/index.d.cts +1 -17
- package/dist/index.d.ts +1 -17
- package/dist/index.js +0 -41
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -20,7 +20,6 @@ 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,
|
|
24
23
|
Akumi: () => Akumi,
|
|
25
24
|
AkumiError: () => AkumiError,
|
|
26
25
|
ApiError: () => ApiError,
|
|
@@ -222,44 +221,6 @@ function safeJsonParse(text) {
|
|
|
222
221
|
}
|
|
223
222
|
}
|
|
224
223
|
|
|
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 v1AgentsCopy(agent, params = {}) {
|
|
247
|
-
return this.transport.request("POST", `/agents/${agent}/copy`, null, params);
|
|
248
|
-
}
|
|
249
|
-
async v1AgentsVersionsIndex(agent) {
|
|
250
|
-
return this.transport.request("GET", `/agents/${agent}/versions`, null, null);
|
|
251
|
-
}
|
|
252
|
-
async v1AgentsVersionsStore(agent, params = {}) {
|
|
253
|
-
return this.transport.request("POST", `/agents/${agent}/versions`, null, params);
|
|
254
|
-
}
|
|
255
|
-
async v1AgentsVersionsShow(agent, version) {
|
|
256
|
-
return this.transport.request("GET", `/agents/${agent}/versions/${version}`, null, null);
|
|
257
|
-
}
|
|
258
|
-
async v1AgentsRunsStore(agent, params = {}) {
|
|
259
|
-
return this.transport.request("POST", `/agents/${agent}/runs`, null, params);
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
|
|
263
224
|
// src/resources/auditLog.ts
|
|
264
225
|
var AuditLogResource = class {
|
|
265
226
|
constructor(transport) {
|
|
@@ -377,7 +338,6 @@ var ScoresResource = class {
|
|
|
377
338
|
// src/client.ts
|
|
378
339
|
var Akumi = class _Akumi {
|
|
379
340
|
transport;
|
|
380
|
-
agents;
|
|
381
341
|
auditLog;
|
|
382
342
|
chatCompletions;
|
|
383
343
|
embeddings;
|
|
@@ -386,7 +346,6 @@ var Akumi = class _Akumi {
|
|
|
386
346
|
scores;
|
|
387
347
|
constructor(config) {
|
|
388
348
|
this.transport = new Transport(config);
|
|
389
|
-
this.agents = new AgentsResource(this.transport);
|
|
390
349
|
this.auditLog = new AuditLogResource(this.transport);
|
|
391
350
|
this.chatCompletions = new ChatCompletionsResource(this.transport);
|
|
392
351
|
this.embeddings = new EmbeddingsResource(this.transport);
|
|
@@ -400,7 +359,6 @@ var Akumi = class _Akumi {
|
|
|
400
359
|
};
|
|
401
360
|
// Annotate the CommonJS export names for ESM import in node:
|
|
402
361
|
0 && (module.exports = {
|
|
403
|
-
AgentsResource,
|
|
404
362
|
Akumi,
|
|
405
363
|
AkumiError,
|
|
406
364
|
ApiError,
|
package/dist/index.d.cts
CHANGED
|
@@ -18,21 +18,6 @@ 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
|
-
v1AgentsCopy(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
30
|
-
v1AgentsVersionsIndex(agent: string): Promise<Record<string, unknown>>;
|
|
31
|
-
v1AgentsVersionsStore(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
32
|
-
v1AgentsVersionsShow(agent: string, version: string): Promise<Record<string, unknown>>;
|
|
33
|
-
v1AgentsRunsStore(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
21
|
declare class AuditLogResource {
|
|
37
22
|
private readonly transport;
|
|
38
23
|
constructor(transport: Transport);
|
|
@@ -87,7 +72,6 @@ declare class ScoresResource {
|
|
|
87
72
|
|
|
88
73
|
declare class Akumi {
|
|
89
74
|
private readonly transport;
|
|
90
|
-
readonly agents: AgentsResource;
|
|
91
75
|
readonly auditLog: AuditLogResource;
|
|
92
76
|
readonly chatCompletions: ChatCompletionsResource;
|
|
93
77
|
readonly embeddings: EmbeddingsResource;
|
|
@@ -200,4 +184,4 @@ interface StoreScoreRequest {
|
|
|
200
184
|
comment?: string | null;
|
|
201
185
|
}
|
|
202
186
|
|
|
203
|
-
export {
|
|
187
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -18,21 +18,6 @@ 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
|
-
v1AgentsCopy(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
30
|
-
v1AgentsVersionsIndex(agent: string): Promise<Record<string, unknown>>;
|
|
31
|
-
v1AgentsVersionsStore(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
32
|
-
v1AgentsVersionsShow(agent: string, version: string): Promise<Record<string, unknown>>;
|
|
33
|
-
v1AgentsRunsStore(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
21
|
declare class AuditLogResource {
|
|
37
22
|
private readonly transport;
|
|
38
23
|
constructor(transport: Transport);
|
|
@@ -87,7 +72,6 @@ declare class ScoresResource {
|
|
|
87
72
|
|
|
88
73
|
declare class Akumi {
|
|
89
74
|
private readonly transport;
|
|
90
|
-
readonly agents: AgentsResource;
|
|
91
75
|
readonly auditLog: AuditLogResource;
|
|
92
76
|
readonly chatCompletions: ChatCompletionsResource;
|
|
93
77
|
readonly embeddings: EmbeddingsResource;
|
|
@@ -200,4 +184,4 @@ interface StoreScoreRequest {
|
|
|
200
184
|
comment?: string | null;
|
|
201
185
|
}
|
|
202
186
|
|
|
203
|
-
export {
|
|
187
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -184,44 +184,6 @@ 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 v1AgentsCopy(agent, params = {}) {
|
|
209
|
-
return this.transport.request("POST", `/agents/${agent}/copy`, null, params);
|
|
210
|
-
}
|
|
211
|
-
async v1AgentsVersionsIndex(agent) {
|
|
212
|
-
return this.transport.request("GET", `/agents/${agent}/versions`, null, null);
|
|
213
|
-
}
|
|
214
|
-
async v1AgentsVersionsStore(agent, params = {}) {
|
|
215
|
-
return this.transport.request("POST", `/agents/${agent}/versions`, null, params);
|
|
216
|
-
}
|
|
217
|
-
async v1AgentsVersionsShow(agent, version) {
|
|
218
|
-
return this.transport.request("GET", `/agents/${agent}/versions/${version}`, null, null);
|
|
219
|
-
}
|
|
220
|
-
async v1AgentsRunsStore(agent, params = {}) {
|
|
221
|
-
return this.transport.request("POST", `/agents/${agent}/runs`, null, params);
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
|
|
225
187
|
// src/resources/auditLog.ts
|
|
226
188
|
var AuditLogResource = class {
|
|
227
189
|
constructor(transport) {
|
|
@@ -339,7 +301,6 @@ var ScoresResource = class {
|
|
|
339
301
|
// src/client.ts
|
|
340
302
|
var Akumi = class _Akumi {
|
|
341
303
|
transport;
|
|
342
|
-
agents;
|
|
343
304
|
auditLog;
|
|
344
305
|
chatCompletions;
|
|
345
306
|
embeddings;
|
|
@@ -348,7 +309,6 @@ var Akumi = class _Akumi {
|
|
|
348
309
|
scores;
|
|
349
310
|
constructor(config) {
|
|
350
311
|
this.transport = new Transport(config);
|
|
351
|
-
this.agents = new AgentsResource(this.transport);
|
|
352
312
|
this.auditLog = new AuditLogResource(this.transport);
|
|
353
313
|
this.chatCompletions = new ChatCompletionsResource(this.transport);
|
|
354
314
|
this.embeddings = new EmbeddingsResource(this.transport);
|
|
@@ -361,7 +321,6 @@ var Akumi = class _Akumi {
|
|
|
361
321
|
}
|
|
362
322
|
};
|
|
363
323
|
export {
|
|
364
|
-
AgentsResource,
|
|
365
324
|
Akumi,
|
|
366
325
|
AkumiError,
|
|
367
326
|
ApiError,
|