@mastra/client-js 0.1.0-alpha.1 → 0.1.0-alpha.3
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/.eslintrc.js +10 -0
- package/.prettierignore +3 -0
- package/.prettierrc.json +26 -0
- package/LICENSE +44 -201
- package/README.md +90 -271
- package/dist/index.d.mts +346 -0
- package/dist/index.mjs +399 -0
- package/package.json +28 -95
- package/src/client.ts +201 -0
- package/src/index.test.ts +507 -0
- package/src/index.ts +2 -194
- package/src/resources/agent.ts +94 -0
- package/src/resources/index.ts +5 -9
- package/src/resources/memory-thread.ts +51 -0
- package/src/resources/tool.ts +28 -0
- package/src/resources/vector.ts +79 -0
- package/src/resources/workflow.ts +28 -0
- package/src/types.ts +121 -0
- package/tsconfig.json +29 -0
- package/vitest.config.js +8 -0
- package/CHANGELOG.md +0 -21
- package/_shims/MultipartBody.d.ts +0 -9
- package/_shims/MultipartBody.d.ts.map +0 -1
- package/_shims/MultipartBody.js +0 -16
- package/_shims/MultipartBody.js.map +0 -1
- package/_shims/MultipartBody.mjs +0 -12
- package/_shims/MultipartBody.mjs.map +0 -1
- package/_shims/README.md +0 -46
- package/_shims/auto/runtime-bun.d.ts +0 -5
- package/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/_shims/auto/runtime-bun.js +0 -21
- package/_shims/auto/runtime-bun.js.map +0 -1
- package/_shims/auto/runtime-bun.mjs +0 -2
- package/_shims/auto/runtime-bun.mjs.map +0 -1
- package/_shims/auto/runtime-node.d.ts +0 -5
- package/_shims/auto/runtime-node.d.ts.map +0 -1
- package/_shims/auto/runtime-node.js +0 -21
- package/_shims/auto/runtime-node.js.map +0 -1
- package/_shims/auto/runtime-node.mjs +0 -2
- package/_shims/auto/runtime-node.mjs.map +0 -1
- package/_shims/auto/runtime.d.ts +0 -5
- package/_shims/auto/runtime.d.ts.map +0 -1
- package/_shims/auto/runtime.js +0 -21
- package/_shims/auto/runtime.js.map +0 -1
- package/_shims/auto/runtime.mjs +0 -2
- package/_shims/auto/runtime.mjs.map +0 -1
- package/_shims/auto/types-node.d.ts +0 -5
- package/_shims/auto/types-node.d.ts.map +0 -1
- package/_shims/auto/types-node.js +0 -21
- package/_shims/auto/types-node.js.map +0 -1
- package/_shims/auto/types-node.mjs +0 -2
- package/_shims/auto/types-node.mjs.map +0 -1
- package/_shims/auto/types.d.ts +0 -101
- package/_shims/auto/types.js +0 -3
- package/_shims/auto/types.mjs +0 -3
- package/_shims/bun-runtime.d.ts +0 -6
- package/_shims/bun-runtime.d.ts.map +0 -1
- package/_shims/bun-runtime.js +0 -14
- package/_shims/bun-runtime.js.map +0 -1
- package/_shims/bun-runtime.mjs +0 -10
- package/_shims/bun-runtime.mjs.map +0 -1
- package/_shims/index.d.ts +0 -81
- package/_shims/index.js +0 -13
- package/_shims/index.mjs +0 -7
- package/_shims/manual-types.d.ts +0 -12
- package/_shims/manual-types.js +0 -3
- package/_shims/manual-types.mjs +0 -3
- package/_shims/node-runtime.d.ts +0 -3
- package/_shims/node-runtime.d.ts.map +0 -1
- package/_shims/node-runtime.js +0 -89
- package/_shims/node-runtime.js.map +0 -1
- package/_shims/node-runtime.mjs +0 -56
- package/_shims/node-runtime.mjs.map +0 -1
- package/_shims/node-types.d.ts +0 -42
- package/_shims/node-types.js +0 -3
- package/_shims/node-types.mjs +0 -3
- package/_shims/registry.d.ts +0 -37
- package/_shims/registry.d.ts.map +0 -1
- package/_shims/registry.js +0 -41
- package/_shims/registry.js.map +0 -1
- package/_shims/registry.mjs +0 -37
- package/_shims/registry.mjs.map +0 -1
- package/_shims/web-runtime.d.ts +0 -5
- package/_shims/web-runtime.d.ts.map +0 -1
- package/_shims/web-runtime.js +0 -78
- package/_shims/web-runtime.js.map +0 -1
- package/_shims/web-runtime.mjs +0 -71
- package/_shims/web-runtime.mjs.map +0 -1
- package/_shims/web-types.d.ts +0 -83
- package/_shims/web-types.js +0 -3
- package/_shims/web-types.mjs +0 -3
- package/core.d.ts +0 -241
- package/core.d.ts.map +0 -1
- package/core.js +0 -908
- package/core.js.map +0 -1
- package/core.mjs +0 -876
- package/core.mjs.map +0 -1
- package/error.d.ts +0 -47
- package/error.d.ts.map +0 -1
- package/error.js +0 -113
- package/error.js.map +0 -1
- package/error.mjs +0 -97
- package/error.mjs.map +0 -1
- package/index.d.mts +0 -121
- package/index.d.ts +0 -121
- package/index.d.ts.map +0 -1
- package/index.js +0 -131
- package/index.js.map +0 -1
- package/index.mjs +0 -88
- package/index.mjs.map +0 -1
- package/resource.d.ts +0 -6
- package/resource.d.ts.map +0 -1
- package/resource.js +0 -11
- package/resource.js.map +0 -1
- package/resource.mjs +0 -7
- package/resource.mjs.map +0 -1
- package/resources/agents/agents.d.ts +0 -40
- package/resources/agents/agents.d.ts.map +0 -1
- package/resources/agents/agents.js +0 -74
- package/resources/agents/agents.js.map +0 -1
- package/resources/agents/agents.mjs +0 -47
- package/resources/agents/agents.mjs.map +0 -1
- package/resources/agents/index.d.ts +0 -3
- package/resources/agents/index.d.ts.map +0 -1
- package/resources/agents/index.js +0 -9
- package/resources/agents/index.js.map +0 -1
- package/resources/agents/index.mjs +0 -4
- package/resources/agents/index.mjs.map +0 -1
- package/resources/agents/tools.d.ts +0 -17
- package/resources/agents/tools.d.ts.map +0 -1
- package/resources/agents/tools.js +0 -19
- package/resources/agents/tools.js.map +0 -1
- package/resources/agents/tools.mjs +0 -15
- package/resources/agents/tools.mjs.map +0 -1
- package/resources/index.d.ts +0 -8
- package/resources/index.d.ts.map +0 -1
- package/resources/index.js +0 -19
- package/resources/index.js.map +0 -1
- package/resources/index.mjs +0 -9
- package/resources/index.mjs.map +0 -1
- package/resources/logs.d.ts +0 -13
- package/resources/logs.d.ts.map +0 -1
- package/resources/logs.js +0 -24
- package/resources/logs.js.map +0 -1
- package/resources/logs.mjs +0 -20
- package/resources/logs.mjs.map +0 -1
- package/resources/memory/index.d.ts +0 -4
- package/resources/memory/index.d.ts.map +0 -1
- package/resources/memory/index.js +0 -11
- package/resources/memory/index.js.map +0 -1
- package/resources/memory/index.mjs +0 -5
- package/resources/memory/index.mjs.map +0 -1
- package/resources/memory/memory.d.ts +0 -23
- package/resources/memory/memory.d.ts.map +0 -1
- package/resources/memory/memory.js +0 -53
- package/resources/memory/memory.js.map +0 -1
- package/resources/memory/memory.mjs +0 -26
- package/resources/memory/memory.mjs.map +0 -1
- package/resources/memory/status.d.ts +0 -9
- package/resources/memory/status.d.ts.map +0 -1
- package/resources/memory/status.js +0 -18
- package/resources/memory/status.js.map +0 -1
- package/resources/memory/status.mjs +0 -14
- package/resources/memory/status.mjs.map +0 -1
- package/resources/memory/threads/index.d.ts +0 -3
- package/resources/memory/threads/index.d.ts.map +0 -1
- package/resources/memory/threads/index.js +0 -9
- package/resources/memory/threads/index.js.map +0 -1
- package/resources/memory/threads/index.mjs +0 -4
- package/resources/memory/threads/index.mjs.map +0 -1
- package/resources/memory/threads/messages.d.ts +0 -9
- package/resources/memory/threads/messages.d.ts.map +0 -1
- package/resources/memory/threads/messages.js +0 -18
- package/resources/memory/threads/messages.js.map +0 -1
- package/resources/memory/threads/messages.mjs +0 -14
- package/resources/memory/threads/messages.mjs.map +0 -1
- package/resources/memory/threads/threads.d.ts +0 -45
- package/resources/memory/threads/threads.d.ts.map +0 -1
- package/resources/memory/threads/threads.js +0 -104
- package/resources/memory/threads/threads.js.map +0 -1
- package/resources/memory/threads/threads.mjs +0 -77
- package/resources/memory/threads/threads.mjs.map +0 -1
- package/resources/syncs.d.ts +0 -15
- package/resources/syncs.d.ts.map +0 -1
- package/resources/syncs.js +0 -19
- package/resources/syncs.js.map +0 -1
- package/resources/syncs.mjs +0 -15
- package/resources/syncs.mjs.map +0 -1
- package/resources/system.d.ts +0 -9
- package/resources/system.d.ts.map +0 -1
- package/resources/system.js +0 -15
- package/resources/system.js.map +0 -1
- package/resources/system.mjs +0 -11
- package/resources/system.mjs.map +0 -1
- package/resources/tools/index.d.ts +0 -3
- package/resources/tools/index.d.ts.map +0 -1
- package/resources/tools/index.js +0 -9
- package/resources/tools/index.js.map +0 -1
- package/resources/tools/index.mjs +0 -4
- package/resources/tools/index.mjs.map +0 -1
- package/resources/tools/result.d.ts +0 -9
- package/resources/tools/result.d.ts.map +0 -1
- package/resources/tools/result.js +0 -18
- package/resources/tools/result.js.map +0 -1
- package/resources/tools/result.mjs +0 -14
- package/resources/tools/result.mjs.map +0 -1
- package/resources/tools/tools.d.ts +0 -29
- package/resources/tools/tools.d.ts.map +0 -1
- package/resources/tools/tools.js +0 -64
- package/resources/tools/tools.js.map +0 -1
- package/resources/tools/tools.mjs +0 -37
- package/resources/tools/tools.mjs.map +0 -1
- package/resources/workflows.d.ts +0 -23
- package/resources/workflows.d.ts.map +0 -1
- package/resources/workflows.js +0 -37
- package/resources/workflows.js.map +0 -1
- package/resources/workflows.mjs +0 -33
- package/resources/workflows.mjs.map +0 -1
- package/shims/node.d.ts +0 -30
- package/shims/node.d.ts.map +0 -1
- package/shims/node.js +0 -31
- package/shims/node.js.map +0 -1
- package/shims/node.mjs +0 -5
- package/shims/node.mjs.map +0 -1
- package/shims/web.d.ts +0 -26
- package/shims/web.d.ts.map +0 -1
- package/shims/web.js +0 -31
- package/shims/web.js.map +0 -1
- package/shims/web.mjs +0 -5
- package/shims/web.mjs.map +0 -1
- package/src/_shims/MultipartBody.ts +0 -9
- package/src/_shims/README.md +0 -46
- package/src/_shims/auto/runtime-bun.ts +0 -4
- package/src/_shims/auto/runtime-node.ts +0 -4
- package/src/_shims/auto/runtime.ts +0 -4
- package/src/_shims/auto/types-node.ts +0 -4
- package/src/_shims/auto/types.d.ts +0 -101
- package/src/_shims/auto/types.js +0 -3
- package/src/_shims/auto/types.mjs +0 -3
- package/src/_shims/bun-runtime.ts +0 -14
- package/src/_shims/index.d.ts +0 -81
- package/src/_shims/index.js +0 -13
- package/src/_shims/index.mjs +0 -7
- package/src/_shims/manual-types.d.ts +0 -12
- package/src/_shims/manual-types.js +0 -3
- package/src/_shims/manual-types.mjs +0 -3
- package/src/_shims/node-runtime.ts +0 -81
- package/src/_shims/node-types.d.ts +0 -42
- package/src/_shims/node-types.js +0 -3
- package/src/_shims/node-types.mjs +0 -3
- package/src/_shims/registry.ts +0 -67
- package/src/_shims/web-runtime.ts +0 -103
- package/src/_shims/web-types.d.ts +0 -83
- package/src/_shims/web-types.js +0 -3
- package/src/_shims/web-types.mjs +0 -3
- package/src/core.ts +0 -1201
- package/src/error.ts +0 -130
- package/src/lib/.keep +0 -4
- package/src/resource.ts +0 -11
- package/src/resources/agents/agents.ts +0 -77
- package/src/resources/agents/index.ts +0 -4
- package/src/resources/agents/tools.ts +0 -34
- package/src/resources/logs.ts +0 -23
- package/src/resources/memory/index.ts +0 -5
- package/src/resources/memory/memory.ts +0 -43
- package/src/resources/memory/status.ts +0 -16
- package/src/resources/memory/threads/index.ts +0 -4
- package/src/resources/memory/threads/messages.ts +0 -16
- package/src/resources/memory/threads/threads.ts +0 -105
- package/src/resources/syncs.ts +0 -25
- package/src/resources/system.ts +0 -13
- package/src/resources/tools/index.ts +0 -4
- package/src/resources/tools/result.ts +0 -16
- package/src/resources/tools/tools.ts +0 -54
- package/src/resources/workflows.ts +0 -49
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
- package/src/tsconfig.json +0 -11
- package/src/uploads.ts +0 -255
- package/src/version.ts +0 -1
- package/uploads.d.ts +0 -75
- package/uploads.d.ts.map +0 -1
- package/uploads.js +0 -171
- package/uploads.js.map +0 -1
- package/uploads.mjs +0 -158
- package/uploads.mjs.map +0 -1
- package/version.d.ts +0 -2
- package/version.d.ts.map +0 -1
- package/version.js +0 -5
- package/version.js.map +0 -1
- package/version.mjs +0 -2
- package/version.mjs.map +0 -1
package/index.js
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
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
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"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"}
|
package/index.mjs
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=index.mjs.map
|
package/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"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"}
|
package/resource.d.ts
DELETED
package/resource.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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
DELETED
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
package/resource.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,40 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,74 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../resource.mjs";
|
|
3
|
-
export class Tools extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Execute a tool through an agent
|
|
6
|
-
*/
|
|
7
|
-
execute(agentId, toolId, body, options) {
|
|
8
|
-
return this._client.post(`/api/agents/${agentId}/tools/${toolId}/execute`, {
|
|
9
|
-
body,
|
|
10
|
-
...options,
|
|
11
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=tools.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../../src/resources/agents/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,KAAM,SAAQ,WAAW;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"}
|
package/resources/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { Agents, type AgentGenerateParams, type AgentStreamParams } from "./agents/agents.js";
|
|
2
|
-
export { Logs } from "./logs.js";
|
|
3
|
-
export { Memory, type MemorySaveMessagesParams } from "./memory/memory.js";
|
|
4
|
-
export { Syncs, type SyncExecuteParams } from "./syncs.js";
|
|
5
|
-
export { System } from "./system.js";
|
|
6
|
-
export { Tools, type ToolExecuteParams } from "./tools/tools.js";
|
|
7
|
-
export { Workflows, type WorkflowExecuteParams } from "./workflows.js";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,KAAK,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,KAAK,qBAAqB,EAAE,MAAM,aAAa,CAAC"}
|
package/resources/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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.Workflows = exports.Tools = exports.System = exports.Syncs = exports.Memory = exports.Logs = exports.Agents = void 0;
|
|
5
|
-
var agents_1 = require("./agents/agents.js");
|
|
6
|
-
Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
|
|
7
|
-
var logs_1 = require("./logs.js");
|
|
8
|
-
Object.defineProperty(exports, "Logs", { enumerable: true, get: function () { return logs_1.Logs; } });
|
|
9
|
-
var memory_1 = require("./memory/memory.js");
|
|
10
|
-
Object.defineProperty(exports, "Memory", { enumerable: true, get: function () { return memory_1.Memory; } });
|
|
11
|
-
var syncs_1 = require("./syncs.js");
|
|
12
|
-
Object.defineProperty(exports, "Syncs", { enumerable: true, get: function () { return syncs_1.Syncs; } });
|
|
13
|
-
var system_1 = require("./system.js");
|
|
14
|
-
Object.defineProperty(exports, "System", { enumerable: true, get: function () { return system_1.System; } });
|
|
15
|
-
var tools_1 = require("./tools/tools.js");
|
|
16
|
-
Object.defineProperty(exports, "Tools", { enumerable: true, get: function () { return tools_1.Tools; } });
|
|
17
|
-
var workflows_1 = require("./workflows.js");
|
|
18
|
-
Object.defineProperty(exports, "Workflows", { enumerable: true, get: function () { return workflows_1.Workflows; } });
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA2F;AAAlF,gGAAA,MAAM,OAAA;AACf,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,6CAAwE;AAA/D,gGAAA,MAAM,OAAA;AACf,oCAAwD;AAA/C,8FAAA,KAAK,OAAA;AACd,sCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,0CAA8D;AAArD,8FAAA,KAAK,OAAA;AACd,4CAAoE;AAA3D,sGAAA,SAAS,OAAA"}
|
package/resources/index.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export { Agents } from "./agents/agents.mjs";
|
|
3
|
-
export { Logs } from "./logs.mjs";
|
|
4
|
-
export { Memory } from "./memory/memory.mjs";
|
|
5
|
-
export { Syncs } from "./syncs.mjs";
|
|
6
|
-
export { System } from "./system.mjs";
|
|
7
|
-
export { Tools } from "./tools/tools.mjs";
|
|
8
|
-
export { Workflows } from "./workflows.mjs";
|
|
9
|
-
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAoD;OAC5D,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAiC;OACzC,EAAE,KAAK,EAA0B;OACjC,EAAE,MAAM,EAAE;OACV,EAAE,KAAK,EAA0B;OACjC,EAAE,SAAS,EAA8B"}
|
package/resources/logs.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import * as Core from "../core.js";
|
|
3
|
-
export declare class Logs extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Get logs by run ID
|
|
6
|
-
*/
|
|
7
|
-
retrieve(runId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
8
|
-
/**
|
|
9
|
-
* Get all logs
|
|
10
|
-
*/
|
|
11
|
-
list(options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=logs.d.ts.map
|
package/resources/logs.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAO7E;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAG3D"}
|