@mastra/client-js 0.1.0-alpha.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/CHANGELOG.md +21 -0
- package/LICENSE +201 -0
- package/README.md +291 -0
- package/_shims/MultipartBody.d.ts +9 -0
- package/_shims/MultipartBody.d.ts.map +1 -0
- package/_shims/MultipartBody.js +16 -0
- package/_shims/MultipartBody.js.map +1 -0
- package/_shims/MultipartBody.mjs +12 -0
- package/_shims/MultipartBody.mjs.map +1 -0
- package/_shims/README.md +46 -0
- package/_shims/auto/runtime-bun.d.ts +5 -0
- package/_shims/auto/runtime-bun.d.ts.map +1 -0
- package/_shims/auto/runtime-bun.js +21 -0
- package/_shims/auto/runtime-bun.js.map +1 -0
- package/_shims/auto/runtime-bun.mjs +2 -0
- package/_shims/auto/runtime-bun.mjs.map +1 -0
- package/_shims/auto/runtime-node.d.ts +5 -0
- package/_shims/auto/runtime-node.d.ts.map +1 -0
- package/_shims/auto/runtime-node.js +21 -0
- package/_shims/auto/runtime-node.js.map +1 -0
- package/_shims/auto/runtime-node.mjs +2 -0
- package/_shims/auto/runtime-node.mjs.map +1 -0
- package/_shims/auto/runtime.d.ts +5 -0
- package/_shims/auto/runtime.d.ts.map +1 -0
- package/_shims/auto/runtime.js +21 -0
- package/_shims/auto/runtime.js.map +1 -0
- package/_shims/auto/runtime.mjs +2 -0
- package/_shims/auto/runtime.mjs.map +1 -0
- package/_shims/auto/types-node.d.ts +5 -0
- package/_shims/auto/types-node.d.ts.map +1 -0
- package/_shims/auto/types-node.js +21 -0
- package/_shims/auto/types-node.js.map +1 -0
- package/_shims/auto/types-node.mjs +2 -0
- package/_shims/auto/types-node.mjs.map +1 -0
- package/_shims/auto/types.d.ts +101 -0
- package/_shims/auto/types.js +3 -0
- package/_shims/auto/types.mjs +3 -0
- package/_shims/bun-runtime.d.ts +6 -0
- package/_shims/bun-runtime.d.ts.map +1 -0
- package/_shims/bun-runtime.js +14 -0
- package/_shims/bun-runtime.js.map +1 -0
- package/_shims/bun-runtime.mjs +10 -0
- package/_shims/bun-runtime.mjs.map +1 -0
- package/_shims/index.d.ts +81 -0
- package/_shims/index.js +13 -0
- package/_shims/index.mjs +7 -0
- package/_shims/manual-types.d.ts +12 -0
- package/_shims/manual-types.js +3 -0
- package/_shims/manual-types.mjs +3 -0
- package/_shims/node-runtime.d.ts +3 -0
- package/_shims/node-runtime.d.ts.map +1 -0
- package/_shims/node-runtime.js +89 -0
- package/_shims/node-runtime.js.map +1 -0
- package/_shims/node-runtime.mjs +56 -0
- package/_shims/node-runtime.mjs.map +1 -0
- package/_shims/node-types.d.ts +42 -0
- package/_shims/node-types.js +3 -0
- package/_shims/node-types.mjs +3 -0
- package/_shims/registry.d.ts +37 -0
- package/_shims/registry.d.ts.map +1 -0
- package/_shims/registry.js +41 -0
- package/_shims/registry.js.map +1 -0
- package/_shims/registry.mjs +37 -0
- package/_shims/registry.mjs.map +1 -0
- package/_shims/web-runtime.d.ts +5 -0
- package/_shims/web-runtime.d.ts.map +1 -0
- package/_shims/web-runtime.js +78 -0
- package/_shims/web-runtime.js.map +1 -0
- package/_shims/web-runtime.mjs +71 -0
- package/_shims/web-runtime.mjs.map +1 -0
- package/_shims/web-types.d.ts +83 -0
- package/_shims/web-types.js +3 -0
- package/_shims/web-types.mjs +3 -0
- package/core.d.ts +241 -0
- package/core.d.ts.map +1 -0
- package/core.js +908 -0
- package/core.js.map +1 -0
- package/core.mjs +876 -0
- package/core.mjs.map +1 -0
- package/error.d.ts +47 -0
- package/error.d.ts.map +1 -0
- package/error.js +113 -0
- package/error.js.map +1 -0
- package/error.mjs +97 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +121 -0
- package/index.d.ts +121 -0
- package/index.d.ts.map +1 -0
- package/index.js +131 -0
- package/index.js.map +1 -0
- package/index.mjs +88 -0
- package/index.mjs.map +1 -0
- package/package.json +103 -0
- package/resource.d.ts +6 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +11 -0
- package/resource.js.map +1 -0
- package/resource.mjs +7 -0
- package/resource.mjs.map +1 -0
- package/resources/agents/agents.d.ts +40 -0
- package/resources/agents/agents.d.ts.map +1 -0
- package/resources/agents/agents.js +74 -0
- package/resources/agents/agents.js.map +1 -0
- package/resources/agents/agents.mjs +47 -0
- package/resources/agents/agents.mjs.map +1 -0
- package/resources/agents/index.d.ts +3 -0
- package/resources/agents/index.d.ts.map +1 -0
- package/resources/agents/index.js +9 -0
- package/resources/agents/index.js.map +1 -0
- package/resources/agents/index.mjs +4 -0
- package/resources/agents/index.mjs.map +1 -0
- package/resources/agents/tools.d.ts +17 -0
- package/resources/agents/tools.d.ts.map +1 -0
- package/resources/agents/tools.js +19 -0
- package/resources/agents/tools.js.map +1 -0
- package/resources/agents/tools.mjs +15 -0
- package/resources/agents/tools.mjs.map +1 -0
- package/resources/index.d.ts +8 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +19 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +9 -0
- package/resources/index.mjs.map +1 -0
- package/resources/logs.d.ts +13 -0
- package/resources/logs.d.ts.map +1 -0
- package/resources/logs.js +24 -0
- package/resources/logs.js.map +1 -0
- package/resources/logs.mjs +20 -0
- package/resources/logs.mjs.map +1 -0
- package/resources/memory/index.d.ts +4 -0
- package/resources/memory/index.d.ts.map +1 -0
- package/resources/memory/index.js +11 -0
- package/resources/memory/index.js.map +1 -0
- package/resources/memory/index.mjs +5 -0
- package/resources/memory/index.mjs.map +1 -0
- package/resources/memory/memory.d.ts +23 -0
- package/resources/memory/memory.d.ts.map +1 -0
- package/resources/memory/memory.js +53 -0
- package/resources/memory/memory.js.map +1 -0
- package/resources/memory/memory.mjs +26 -0
- package/resources/memory/memory.mjs.map +1 -0
- package/resources/memory/status.d.ts +9 -0
- package/resources/memory/status.d.ts.map +1 -0
- package/resources/memory/status.js +18 -0
- package/resources/memory/status.js.map +1 -0
- package/resources/memory/status.mjs +14 -0
- package/resources/memory/status.mjs.map +1 -0
- package/resources/memory/threads/index.d.ts +3 -0
- package/resources/memory/threads/index.d.ts.map +1 -0
- package/resources/memory/threads/index.js +9 -0
- package/resources/memory/threads/index.js.map +1 -0
- package/resources/memory/threads/index.mjs +4 -0
- package/resources/memory/threads/index.mjs.map +1 -0
- package/resources/memory/threads/messages.d.ts +9 -0
- package/resources/memory/threads/messages.d.ts.map +1 -0
- package/resources/memory/threads/messages.js +18 -0
- package/resources/memory/threads/messages.js.map +1 -0
- package/resources/memory/threads/messages.mjs +14 -0
- package/resources/memory/threads/messages.mjs.map +1 -0
- package/resources/memory/threads/threads.d.ts +45 -0
- package/resources/memory/threads/threads.d.ts.map +1 -0
- package/resources/memory/threads/threads.js +104 -0
- package/resources/memory/threads/threads.js.map +1 -0
- package/resources/memory/threads/threads.mjs +77 -0
- package/resources/memory/threads/threads.mjs.map +1 -0
- package/resources/syncs.d.ts +15 -0
- package/resources/syncs.d.ts.map +1 -0
- package/resources/syncs.js +19 -0
- package/resources/syncs.js.map +1 -0
- package/resources/syncs.mjs +15 -0
- package/resources/syncs.mjs.map +1 -0
- package/resources/system.d.ts +9 -0
- package/resources/system.d.ts.map +1 -0
- package/resources/system.js +15 -0
- package/resources/system.js.map +1 -0
- package/resources/system.mjs +11 -0
- package/resources/system.mjs.map +1 -0
- package/resources/tools/index.d.ts +3 -0
- package/resources/tools/index.d.ts.map +1 -0
- package/resources/tools/index.js +9 -0
- package/resources/tools/index.js.map +1 -0
- package/resources/tools/index.mjs +4 -0
- package/resources/tools/index.mjs.map +1 -0
- package/resources/tools/result.d.ts +9 -0
- package/resources/tools/result.d.ts.map +1 -0
- package/resources/tools/result.js +18 -0
- package/resources/tools/result.js.map +1 -0
- package/resources/tools/result.mjs +14 -0
- package/resources/tools/result.mjs.map +1 -0
- package/resources/tools/tools.d.ts +29 -0
- package/resources/tools/tools.d.ts.map +1 -0
- package/resources/tools/tools.js +64 -0
- package/resources/tools/tools.js.map +1 -0
- package/resources/tools/tools.mjs +37 -0
- package/resources/tools/tools.mjs.map +1 -0
- package/resources/workflows.d.ts +23 -0
- package/resources/workflows.d.ts.map +1 -0
- package/resources/workflows.js +37 -0
- package/resources/workflows.js.map +1 -0
- package/resources/workflows.mjs +33 -0
- package/resources/workflows.mjs.map +1 -0
- package/shims/node.d.ts +30 -0
- package/shims/node.d.ts.map +1 -0
- package/shims/node.js +31 -0
- package/shims/node.js.map +1 -0
- package/shims/node.mjs +5 -0
- package/shims/node.mjs.map +1 -0
- package/shims/web.d.ts +26 -0
- package/shims/web.d.ts.map +1 -0
- package/shims/web.js +31 -0
- package/shims/web.js.map +1 -0
- package/shims/web.mjs +5 -0
- package/shims/web.mjs.map +1 -0
- package/src/_shims/MultipartBody.ts +9 -0
- package/src/_shims/README.md +46 -0
- package/src/_shims/auto/runtime-bun.ts +4 -0
- package/src/_shims/auto/runtime-node.ts +4 -0
- package/src/_shims/auto/runtime.ts +4 -0
- package/src/_shims/auto/types-node.ts +4 -0
- package/src/_shims/auto/types.d.ts +101 -0
- package/src/_shims/auto/types.js +3 -0
- package/src/_shims/auto/types.mjs +3 -0
- package/src/_shims/bun-runtime.ts +14 -0
- package/src/_shims/index.d.ts +81 -0
- package/src/_shims/index.js +13 -0
- package/src/_shims/index.mjs +7 -0
- package/src/_shims/manual-types.d.ts +12 -0
- package/src/_shims/manual-types.js +3 -0
- package/src/_shims/manual-types.mjs +3 -0
- package/src/_shims/node-runtime.ts +81 -0
- package/src/_shims/node-types.d.ts +42 -0
- package/src/_shims/node-types.js +3 -0
- package/src/_shims/node-types.mjs +3 -0
- package/src/_shims/registry.ts +67 -0
- package/src/_shims/web-runtime.ts +103 -0
- package/src/_shims/web-types.d.ts +83 -0
- package/src/_shims/web-types.js +3 -0
- package/src/_shims/web-types.mjs +3 -0
- package/src/core.ts +1201 -0
- package/src/error.ts +130 -0
- package/src/index.ts +194 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +11 -0
- package/src/resources/agents/agents.ts +77 -0
- package/src/resources/agents/index.ts +4 -0
- package/src/resources/agents/tools.ts +34 -0
- package/src/resources/index.ts +9 -0
- package/src/resources/logs.ts +23 -0
- package/src/resources/memory/index.ts +5 -0
- package/src/resources/memory/memory.ts +43 -0
- package/src/resources/memory/status.ts +16 -0
- package/src/resources/memory/threads/index.ts +4 -0
- package/src/resources/memory/threads/messages.ts +16 -0
- package/src/resources/memory/threads/threads.ts +105 -0
- package/src/resources/syncs.ts +25 -0
- package/src/resources/system.ts +13 -0
- package/src/resources/tools/index.ts +4 -0
- package/src/resources/tools/result.ts +16 -0
- package/src/resources/tools/tools.ts +54 -0
- package/src/resources/workflows.ts +49 -0
- package/src/shims/node.ts +50 -0
- package/src/shims/web.ts +50 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +255 -0
- package/src/version.ts +1 -0
- package/uploads.d.ts +75 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +171 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +158 -0
- package/uploads.mjs.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
package/index.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
var _a;
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.UnprocessableEntityError = exports.PermissionDeniedError = exports.InternalServerError = exports.AuthenticationError = exports.BadRequestError = exports.RateLimitError = exports.ConflictError = exports.NotFoundError = exports.APIUserAbortError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIError = exports.MastraClientError = exports.fileFromPath = exports.toFile = exports.MastraClient = void 0;
|
|
29
|
+
const Core = __importStar(require("./core.js"));
|
|
30
|
+
const Errors = __importStar(require("./error.js"));
|
|
31
|
+
const Uploads = __importStar(require("./uploads.js"));
|
|
32
|
+
const API = __importStar(require("./resources/index.js"));
|
|
33
|
+
const logs_1 = require("./resources/logs.js");
|
|
34
|
+
const syncs_1 = require("./resources/syncs.js");
|
|
35
|
+
const system_1 = require("./resources/system.js");
|
|
36
|
+
const workflows_1 = require("./resources/workflows.js");
|
|
37
|
+
const agents_1 = require("./resources/agents/agents.js");
|
|
38
|
+
const memory_1 = require("./resources/memory/memory.js");
|
|
39
|
+
const tools_1 = require("./resources/tools/tools.js");
|
|
40
|
+
/**
|
|
41
|
+
* API Client for interfacing with the Mastra Client API.
|
|
42
|
+
*/
|
|
43
|
+
class MastraClient extends Core.APIClient {
|
|
44
|
+
/**
|
|
45
|
+
* API Client for interfacing with the Mastra Client API.
|
|
46
|
+
*
|
|
47
|
+
* @param {string} [opts.baseURL=process.env['MASTRA_CLIENT_BASE_URL'] ?? http://localhost:4111] - Override the default base URL for the API.
|
|
48
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
49
|
+
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
50
|
+
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
51
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
52
|
+
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
53
|
+
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
54
|
+
*/
|
|
55
|
+
constructor({ baseURL = Core.readEnv('MASTRA_CLIENT_BASE_URL'), ...opts } = {}) {
|
|
56
|
+
const options = {
|
|
57
|
+
...opts,
|
|
58
|
+
baseURL: baseURL || `http://localhost:4111`,
|
|
59
|
+
};
|
|
60
|
+
super({
|
|
61
|
+
baseURL: options.baseURL,
|
|
62
|
+
timeout: options.timeout ?? 60000 /* 1 minute */,
|
|
63
|
+
httpAgent: options.httpAgent,
|
|
64
|
+
maxRetries: options.maxRetries,
|
|
65
|
+
fetch: options.fetch,
|
|
66
|
+
});
|
|
67
|
+
this.system = new API.System(this);
|
|
68
|
+
this.agents = new API.Agents(this);
|
|
69
|
+
this.memory = new API.Memory(this);
|
|
70
|
+
this.workflows = new API.Workflows(this);
|
|
71
|
+
this.syncs = new API.Syncs(this);
|
|
72
|
+
this.logs = new API.Logs(this);
|
|
73
|
+
this.tools = new API.Tools(this);
|
|
74
|
+
this._options = options;
|
|
75
|
+
}
|
|
76
|
+
defaultQuery() {
|
|
77
|
+
return this._options.defaultQuery;
|
|
78
|
+
}
|
|
79
|
+
defaultHeaders(opts) {
|
|
80
|
+
return {
|
|
81
|
+
...super.defaultHeaders(opts),
|
|
82
|
+
...this._options.defaultHeaders,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.MastraClient = MastraClient;
|
|
87
|
+
_a = MastraClient;
|
|
88
|
+
MastraClient.MastraClient = _a;
|
|
89
|
+
MastraClient.DEFAULT_TIMEOUT = 60000; // 1 minute
|
|
90
|
+
MastraClient.MastraClientError = Errors.MastraClientError;
|
|
91
|
+
MastraClient.APIError = Errors.APIError;
|
|
92
|
+
MastraClient.APIConnectionError = Errors.APIConnectionError;
|
|
93
|
+
MastraClient.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
|
|
94
|
+
MastraClient.APIUserAbortError = Errors.APIUserAbortError;
|
|
95
|
+
MastraClient.NotFoundError = Errors.NotFoundError;
|
|
96
|
+
MastraClient.ConflictError = Errors.ConflictError;
|
|
97
|
+
MastraClient.RateLimitError = Errors.RateLimitError;
|
|
98
|
+
MastraClient.BadRequestError = Errors.BadRequestError;
|
|
99
|
+
MastraClient.AuthenticationError = Errors.AuthenticationError;
|
|
100
|
+
MastraClient.InternalServerError = Errors.InternalServerError;
|
|
101
|
+
MastraClient.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
102
|
+
MastraClient.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
103
|
+
MastraClient.toFile = Uploads.toFile;
|
|
104
|
+
MastraClient.fileFromPath = Uploads.fileFromPath;
|
|
105
|
+
MastraClient.System = system_1.System;
|
|
106
|
+
MastraClient.Agents = agents_1.Agents;
|
|
107
|
+
MastraClient.Memory = memory_1.Memory;
|
|
108
|
+
MastraClient.Workflows = workflows_1.Workflows;
|
|
109
|
+
MastraClient.Syncs = syncs_1.Syncs;
|
|
110
|
+
MastraClient.Logs = logs_1.Logs;
|
|
111
|
+
MastraClient.Tools = tools_1.Tools;
|
|
112
|
+
var uploads_1 = require("./uploads.js");
|
|
113
|
+
Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } });
|
|
114
|
+
Object.defineProperty(exports, "fileFromPath", { enumerable: true, get: function () { return uploads_1.fileFromPath; } });
|
|
115
|
+
var error_1 = require("./error.js");
|
|
116
|
+
Object.defineProperty(exports, "MastraClientError", { enumerable: true, get: function () { return error_1.MastraClientError; } });
|
|
117
|
+
Object.defineProperty(exports, "APIError", { enumerable: true, get: function () { return error_1.APIError; } });
|
|
118
|
+
Object.defineProperty(exports, "APIConnectionError", { enumerable: true, get: function () { return error_1.APIConnectionError; } });
|
|
119
|
+
Object.defineProperty(exports, "APIConnectionTimeoutError", { enumerable: true, get: function () { return error_1.APIConnectionTimeoutError; } });
|
|
120
|
+
Object.defineProperty(exports, "APIUserAbortError", { enumerable: true, get: function () { return error_1.APIUserAbortError; } });
|
|
121
|
+
Object.defineProperty(exports, "NotFoundError", { enumerable: true, get: function () { return error_1.NotFoundError; } });
|
|
122
|
+
Object.defineProperty(exports, "ConflictError", { enumerable: true, get: function () { return error_1.ConflictError; } });
|
|
123
|
+
Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return error_1.RateLimitError; } });
|
|
124
|
+
Object.defineProperty(exports, "BadRequestError", { enumerable: true, get: function () { return error_1.BadRequestError; } });
|
|
125
|
+
Object.defineProperty(exports, "AuthenticationError", { enumerable: true, get: function () { return error_1.AuthenticationError; } });
|
|
126
|
+
Object.defineProperty(exports, "InternalServerError", { enumerable: true, get: function () { return error_1.InternalServerError; } });
|
|
127
|
+
Object.defineProperty(exports, "PermissionDeniedError", { enumerable: true, get: function () { return error_1.PermissionDeniedError; } });
|
|
128
|
+
Object.defineProperty(exports, "UnprocessableEntityError", { enumerable: true, get: function () { return error_1.UnprocessableEntityError; } });
|
|
129
|
+
exports = module.exports = MastraClient;
|
|
130
|
+
exports.default = MastraClient;
|
|
131
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;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AAC;AAC3B,YAAY,CAAC,IAAI,GAAG,WAAI,CAAC;AACzB,YAAY,CAAC,KAAK,GAAG,aAAK,CAAC;AAuB3B,wCAAiD;AAAxC,iGAAA,MAAM,OAAA;AAAE,uGAAA,YAAY,OAAA;AAC7B,oCAciB;AAbf,0GAAA,iBAAiB,OAAA;AACjB,iGAAA,QAAQ,OAAA;AACR,2GAAA,kBAAkB,OAAA;AAClB,kHAAA,yBAAyB,OAAA;AACzB,0GAAA,iBAAiB,OAAA;AACjB,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,iHAAA,wBAAwB,OAAA;AAG1B,kBAAe,YAAY,CAAC"}
|
package/index.mjs
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
var _a;
|
|
3
|
+
import * as Core from "./core.mjs";
|
|
4
|
+
import * as Errors from "./error.mjs";
|
|
5
|
+
import * as Uploads from "./uploads.mjs";
|
|
6
|
+
import * as API from "./resources/index.mjs";
|
|
7
|
+
import { Logs } from "./resources/logs.mjs";
|
|
8
|
+
import { Syncs } from "./resources/syncs.mjs";
|
|
9
|
+
import { System } from "./resources/system.mjs";
|
|
10
|
+
import { Workflows } from "./resources/workflows.mjs";
|
|
11
|
+
import { Agents } from "./resources/agents/agents.mjs";
|
|
12
|
+
import { Memory } from "./resources/memory/memory.mjs";
|
|
13
|
+
import { Tools } from "./resources/tools/tools.mjs";
|
|
14
|
+
/**
|
|
15
|
+
* API Client for interfacing with the Mastra Client API.
|
|
16
|
+
*/
|
|
17
|
+
export class MastraClient extends Core.APIClient {
|
|
18
|
+
/**
|
|
19
|
+
* API Client for interfacing with the Mastra Client API.
|
|
20
|
+
*
|
|
21
|
+
* @param {string} [opts.baseURL=process.env['MASTRA_CLIENT_BASE_URL'] ?? http://localhost:4111] - Override the default base URL for the API.
|
|
22
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
23
|
+
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
24
|
+
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
25
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
26
|
+
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
27
|
+
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
28
|
+
*/
|
|
29
|
+
constructor({ baseURL = Core.readEnv('MASTRA_CLIENT_BASE_URL'), ...opts } = {}) {
|
|
30
|
+
const options = {
|
|
31
|
+
...opts,
|
|
32
|
+
baseURL: baseURL || `http://localhost:4111`,
|
|
33
|
+
};
|
|
34
|
+
super({
|
|
35
|
+
baseURL: options.baseURL,
|
|
36
|
+
timeout: options.timeout ?? 60000 /* 1 minute */,
|
|
37
|
+
httpAgent: options.httpAgent,
|
|
38
|
+
maxRetries: options.maxRetries,
|
|
39
|
+
fetch: options.fetch,
|
|
40
|
+
});
|
|
41
|
+
this.system = new API.System(this);
|
|
42
|
+
this.agents = new API.Agents(this);
|
|
43
|
+
this.memory = new API.Memory(this);
|
|
44
|
+
this.workflows = new API.Workflows(this);
|
|
45
|
+
this.syncs = new API.Syncs(this);
|
|
46
|
+
this.logs = new API.Logs(this);
|
|
47
|
+
this.tools = new API.Tools(this);
|
|
48
|
+
this._options = options;
|
|
49
|
+
}
|
|
50
|
+
defaultQuery() {
|
|
51
|
+
return this._options.defaultQuery;
|
|
52
|
+
}
|
|
53
|
+
defaultHeaders(opts) {
|
|
54
|
+
return {
|
|
55
|
+
...super.defaultHeaders(opts),
|
|
56
|
+
...this._options.defaultHeaders,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
_a = MastraClient;
|
|
61
|
+
MastraClient.MastraClient = _a;
|
|
62
|
+
MastraClient.DEFAULT_TIMEOUT = 60000; // 1 minute
|
|
63
|
+
MastraClient.MastraClientError = Errors.MastraClientError;
|
|
64
|
+
MastraClient.APIError = Errors.APIError;
|
|
65
|
+
MastraClient.APIConnectionError = Errors.APIConnectionError;
|
|
66
|
+
MastraClient.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
|
|
67
|
+
MastraClient.APIUserAbortError = Errors.APIUserAbortError;
|
|
68
|
+
MastraClient.NotFoundError = Errors.NotFoundError;
|
|
69
|
+
MastraClient.ConflictError = Errors.ConflictError;
|
|
70
|
+
MastraClient.RateLimitError = Errors.RateLimitError;
|
|
71
|
+
MastraClient.BadRequestError = Errors.BadRequestError;
|
|
72
|
+
MastraClient.AuthenticationError = Errors.AuthenticationError;
|
|
73
|
+
MastraClient.InternalServerError = Errors.InternalServerError;
|
|
74
|
+
MastraClient.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
75
|
+
MastraClient.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
76
|
+
MastraClient.toFile = Uploads.toFile;
|
|
77
|
+
MastraClient.fileFromPath = Uploads.fileFromPath;
|
|
78
|
+
MastraClient.System = System;
|
|
79
|
+
MastraClient.Agents = Agents;
|
|
80
|
+
MastraClient.Memory = Memory;
|
|
81
|
+
MastraClient.Workflows = Workflows;
|
|
82
|
+
MastraClient.Syncs = Syncs;
|
|
83
|
+
MastraClient.Logs = Logs;
|
|
84
|
+
MastraClient.Tools = Tools;
|
|
85
|
+
export { toFile, fileFromPath } from "./uploads.mjs";
|
|
86
|
+
export { MastraClientError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.mjs";
|
|
87
|
+
export default MastraClient;
|
|
88
|
+
//#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,GAAG,MAAM,CAAC;AAC7B,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC;AAC7B,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC;AAC7B,YAAY,CAAC,SAAS,GAAG,SAAS,CAAC;AACnC,YAAY,CAAC,KAAK,GAAG,KAAK,CAAC;AAC3B,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;AACzB,YAAY,CAAC,KAAK,GAAG,KAAK,CAAC;OAuBpB,EAAE,MAAM,EAAE,YAAY,EAAE;OACxB,EACL,iBAAiB,EACjB,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB;AAED,eAAe,YAAY,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mastra/client-js",
|
|
3
|
+
"version": "0.1.0-alpha.1",
|
|
4
|
+
"description": "The official TypeScript library for the Mastra Client API",
|
|
5
|
+
"author": "Mastra Client <dev-feedback@mastra.com>",
|
|
6
|
+
"types": "./index.d.ts",
|
|
7
|
+
"main": "./index.js",
|
|
8
|
+
"type": "commonjs",
|
|
9
|
+
"repository": "github:mastra-ai/client-js",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"packageManager": "yarn@1.22.22",
|
|
12
|
+
"files": [
|
|
13
|
+
"**/*"
|
|
14
|
+
],
|
|
15
|
+
"private": false,
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "./scripts/test",
|
|
18
|
+
"build": "./scripts/build",
|
|
19
|
+
"format": "prettier --write --cache --cache-strategy metadata . !dist",
|
|
20
|
+
"tsn": "ts-node -r tsconfig-paths/register",
|
|
21
|
+
"lint": "./scripts/lint",
|
|
22
|
+
"fix": "./scripts/format"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@types/node": "^18.11.18",
|
|
26
|
+
"@types/node-fetch": "^2.6.4",
|
|
27
|
+
"abort-controller": "^3.0.0",
|
|
28
|
+
"agentkeepalive": "^4.2.1",
|
|
29
|
+
"form-data-encoder": "1.7.2",
|
|
30
|
+
"formdata-node": "^4.3.2",
|
|
31
|
+
"node-fetch": "^2.6.7"
|
|
32
|
+
},
|
|
33
|
+
"sideEffects": [
|
|
34
|
+
"./_shims/index.js",
|
|
35
|
+
"./_shims/index.mjs",
|
|
36
|
+
"./shims/node.js",
|
|
37
|
+
"./shims/node.mjs",
|
|
38
|
+
"./shims/web.js",
|
|
39
|
+
"./shims/web.mjs"
|
|
40
|
+
],
|
|
41
|
+
"imports": {
|
|
42
|
+
"@mastra/client-js": ".",
|
|
43
|
+
"@mastra/client-js/*": "./src/*"
|
|
44
|
+
},
|
|
45
|
+
"exports": {
|
|
46
|
+
"./_shims/auto/*": {
|
|
47
|
+
"deno": {
|
|
48
|
+
"types": "./_shims/auto/*.d.ts",
|
|
49
|
+
"require": "./_shims/auto/*.js",
|
|
50
|
+
"default": "./_shims/auto/*.mjs"
|
|
51
|
+
},
|
|
52
|
+
"bun": {
|
|
53
|
+
"types": "./_shims/auto/*.d.ts",
|
|
54
|
+
"require": "./_shims/auto/*-bun.js",
|
|
55
|
+
"default": "./_shims/auto/*-bun.mjs"
|
|
56
|
+
},
|
|
57
|
+
"browser": {
|
|
58
|
+
"types": "./_shims/auto/*.d.ts",
|
|
59
|
+
"require": "./_shims/auto/*.js",
|
|
60
|
+
"default": "./_shims/auto/*.mjs"
|
|
61
|
+
},
|
|
62
|
+
"worker": {
|
|
63
|
+
"types": "./_shims/auto/*.d.ts",
|
|
64
|
+
"require": "./_shims/auto/*.js",
|
|
65
|
+
"default": "./_shims/auto/*.mjs"
|
|
66
|
+
},
|
|
67
|
+
"workerd": {
|
|
68
|
+
"types": "./_shims/auto/*.d.ts",
|
|
69
|
+
"require": "./_shims/auto/*.js",
|
|
70
|
+
"default": "./_shims/auto/*.mjs"
|
|
71
|
+
},
|
|
72
|
+
"node": {
|
|
73
|
+
"types": "./_shims/auto/*-node.d.ts",
|
|
74
|
+
"require": "./_shims/auto/*-node.js",
|
|
75
|
+
"default": "./_shims/auto/*-node.mjs"
|
|
76
|
+
},
|
|
77
|
+
"types": "./_shims/auto/*.d.ts",
|
|
78
|
+
"require": "./_shims/auto/*.js",
|
|
79
|
+
"default": "./_shims/auto/*.mjs"
|
|
80
|
+
},
|
|
81
|
+
".": {
|
|
82
|
+
"require": {
|
|
83
|
+
"types": "./index.d.ts",
|
|
84
|
+
"default": "./index.js"
|
|
85
|
+
},
|
|
86
|
+
"types": "./index.d.mts",
|
|
87
|
+
"default": "./index.mjs"
|
|
88
|
+
},
|
|
89
|
+
"./*.mjs": {
|
|
90
|
+
"types": "./*.d.ts",
|
|
91
|
+
"default": "./*.mjs"
|
|
92
|
+
},
|
|
93
|
+
"./*.js": {
|
|
94
|
+
"types": "./*.d.ts",
|
|
95
|
+
"default": "./*.js"
|
|
96
|
+
},
|
|
97
|
+
"./*": {
|
|
98
|
+
"types": "./*.d.ts",
|
|
99
|
+
"require": "./*.js",
|
|
100
|
+
"default": "./*.mjs"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
package/resource.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,qBAAa,WAAW;IACtB,SAAS,CAAC,OAAO,EAAE,YAAY,CAAC;gBAEpB,MAAM,EAAE,YAAY;CAGjC"}
|
package/resource.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.APIResource = void 0;
|
|
5
|
+
class APIResource {
|
|
6
|
+
constructor(client) {
|
|
7
|
+
this._client = client;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.APIResource = APIResource;
|
|
11
|
+
//# sourceMappingURL=resource.js.map
|
package/resource.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.js","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAItF,MAAa,WAAW;IAGtB,YAAY,MAAoB;QAC9B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CACF;AAND,kCAMC"}
|
package/resource.mjs
ADDED
package/resource.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.mjs","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,MAAM,OAAO,WAAW;IAGtB,YAAY,MAAoB;QAC9B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CACF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as ToolsAPI from "./tools.js";
|
|
4
|
+
import { ToolExecuteParams, Tools } from "./tools.js";
|
|
5
|
+
export declare class Agents extends APIResource {
|
|
6
|
+
tools: ToolsAPI.Tools;
|
|
7
|
+
/**
|
|
8
|
+
* Get agent by ID
|
|
9
|
+
*/
|
|
10
|
+
retrieve(agentId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Get all available agents
|
|
13
|
+
*/
|
|
14
|
+
list(options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Generate a response from an agent
|
|
17
|
+
*/
|
|
18
|
+
generate(agentId: string, body: AgentGenerateParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Stream a response from an agent
|
|
21
|
+
*/
|
|
22
|
+
stream(agentId: string, body: AgentStreamParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
23
|
+
}
|
|
24
|
+
export interface AgentGenerateParams {
|
|
25
|
+
messages: Array<unknown>;
|
|
26
|
+
output?: unknown;
|
|
27
|
+
resourceid?: string;
|
|
28
|
+
threadId?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface AgentStreamParams {
|
|
31
|
+
messages: Array<unknown>;
|
|
32
|
+
output?: unknown;
|
|
33
|
+
resourceid?: string;
|
|
34
|
+
threadId?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare namespace Agents {
|
|
37
|
+
export { type AgentGenerateParams as AgentGenerateParams, type AgentStreamParams as AgentStreamParams };
|
|
38
|
+
export { Tools as Tools, type ToolExecuteParams as ToolExecuteParams };
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=agents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEnD,qBAAa,MAAO,SAAQ,WAAW;IACrC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAO/E;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAI1D;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAQ1G;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAOvG;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAEzB,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAEzB,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;IAExG,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxE"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.Agents = void 0;
|
|
28
|
+
const resource_1 = require("../../resource.js");
|
|
29
|
+
const ToolsAPI = __importStar(require("./tools.js"));
|
|
30
|
+
const tools_1 = require("./tools.js");
|
|
31
|
+
class Agents extends resource_1.APIResource {
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
|
+
this.tools = new ToolsAPI.Tools(this._client);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Get agent by ID
|
|
38
|
+
*/
|
|
39
|
+
retrieve(agentId, options) {
|
|
40
|
+
return this._client.get(`/api/agents/${agentId}`, {
|
|
41
|
+
...options,
|
|
42
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get all available agents
|
|
47
|
+
*/
|
|
48
|
+
list(options) {
|
|
49
|
+
return this._client.get('/api/agents', { ...options, headers: { Accept: '*/*', ...options?.headers } });
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Generate a response from an agent
|
|
53
|
+
*/
|
|
54
|
+
generate(agentId, body, options) {
|
|
55
|
+
return this._client.post(`/api/agents/${agentId}/generate`, {
|
|
56
|
+
body,
|
|
57
|
+
...options,
|
|
58
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Stream a response from an agent
|
|
63
|
+
*/
|
|
64
|
+
stream(agentId, body, options) {
|
|
65
|
+
return this._client.post(`/api/agents/${agentId}/stream`, {
|
|
66
|
+
body,
|
|
67
|
+
...options,
|
|
68
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.Agents = Agents;
|
|
73
|
+
Agents.Tools = tools_1.Tools;
|
|
74
|
+
//# sourceMappingURL=agents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAE7C,qDAAoC;AACpC,sCAAmD;AAEnD,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwC3D,CAAC;IAtCC;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,OAAO,EAAE,EAAE;YAChD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,IAAyB,EAAE,OAA6B;QAChF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,OAAO,WAAW,EAAE;YAC1D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,IAAuB,EAAE,OAA6B;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,OAAO,SAAS,EAAE;YACxD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAzCD,wBAyCC;AAsBD,MAAM,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import * as ToolsAPI from "./tools.mjs";
|
|
4
|
+
import { Tools } from "./tools.mjs";
|
|
5
|
+
export class Agents extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.tools = new ToolsAPI.Tools(this._client);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Get agent by ID
|
|
12
|
+
*/
|
|
13
|
+
retrieve(agentId, options) {
|
|
14
|
+
return this._client.get(`/api/agents/${agentId}`, {
|
|
15
|
+
...options,
|
|
16
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Get all available agents
|
|
21
|
+
*/
|
|
22
|
+
list(options) {
|
|
23
|
+
return this._client.get('/api/agents', { ...options, headers: { Accept: '*/*', ...options?.headers } });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Generate a response from an agent
|
|
27
|
+
*/
|
|
28
|
+
generate(agentId, body, options) {
|
|
29
|
+
return this._client.post(`/api/agents/${agentId}/generate`, {
|
|
30
|
+
body,
|
|
31
|
+
...options,
|
|
32
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Stream a response from an agent
|
|
37
|
+
*/
|
|
38
|
+
stream(agentId, body, options) {
|
|
39
|
+
return this._client.post(`/api/agents/${agentId}/stream`, {
|
|
40
|
+
body,
|
|
41
|
+
...options,
|
|
42
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
Agents.Tools = Tools;
|
|
47
|
+
//# sourceMappingURL=agents.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,QAAQ;OACb,EAAqB,KAAK,EAAE;AAEnC,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwC3D,CAAC;IAtCC;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,OAAO,EAAE,EAAE;YAChD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,IAAyB,EAAE,OAA6B;QAChF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,OAAO,WAAW,EAAE;YAC1D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,IAAuB,EAAE,OAA6B;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,OAAO,SAAS,EAAE;YACxD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAsBD,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACpF,OAAO,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Tools = exports.Agents = void 0;
|
|
5
|
+
var agents_1 = require("./agents.js");
|
|
6
|
+
Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
|
|
7
|
+
var tools_1 = require("./tools.js");
|
|
8
|
+
Object.defineProperty(exports, "Tools", { enumerable: true, get: function () { return tools_1.Tools; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAoF;AAA3E,gGAAA,MAAM,OAAA;AACf,oCAAwD;AAA/C,8FAAA,KAAK,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAoD;OAC5D,EAAE,KAAK,EAA0B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
export declare class Tools extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Execute a tool through an agent
|
|
6
|
+
*/
|
|
7
|
+
execute(agentId: string, toolId: string, body: ToolExecuteParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
8
|
+
}
|
|
9
|
+
export interface ToolExecuteParams {
|
|
10
|
+
args: unknown;
|
|
11
|
+
resourceid?: string;
|
|
12
|
+
threadId?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace Tools {
|
|
15
|
+
export { type ToolExecuteParams as ToolExecuteParams };
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/resources/agents/tools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,OAAO,CACL,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAOzB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;IAEd,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Tools = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class Tools extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Execute a tool through an agent
|
|
9
|
+
*/
|
|
10
|
+
execute(agentId, toolId, body, options) {
|
|
11
|
+
return this._client.post(`/api/agents/${agentId}/tools/${toolId}/execute`, {
|
|
12
|
+
body,
|
|
13
|
+
...options,
|
|
14
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Tools = Tools;
|
|
19
|
+
//# sourceMappingURL=tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/resources/agents/tools.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,OAAO,CACL,OAAe,EACf,MAAc,EACd,IAAuB,EACvB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,OAAO,UAAU,MAAM,UAAU,EAAE;YACzE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAhBD,sBAgBC"}
|