@letta-ai/letta-client 0.1.146 → 0.1.148
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/api/resources/agents/client/Client.d.ts +30 -0
- package/api/resources/agents/client/Client.js +155 -10
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +3 -0
- package/api/resources/agents/resources/messages/client/Client.js +9 -6
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/api/resources/embeddingModels/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.d.ts +16 -0
- package/api/resources/jobs/client/Client.js +101 -6
- package/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +16 -0
- package/api/resources/jobs/client/requests/JobsListRequest.d.ts +16 -0
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +5 -5
- package/api/resources/runs/client/Client.js +4 -4
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +8 -8
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +6 -3
- package/api/resources/steps/client/requests/StepsListRequest.d.ts +4 -0
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +19 -19
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/CodeInput.d.ts +7 -0
- package/api/types/CodeInput.js +5 -0
- package/api/types/Step.d.ts +2 -0
- package/api/types/StopReasonType.d.ts +2 -1
- package/api/types/StopReasonType.js +1 -0
- package/api/types/UpdateSsemcpServer.d.ts +2 -0
- package/api/types/UpdateStreamableHttpmcpServer.d.ts +2 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/api/resources/agents/client/Client.d.ts +30 -0
- package/dist/api/resources/agents/client/Client.js +155 -10
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +3 -0
- package/dist/api/resources/agents/resources/messages/client/Client.js +9 -6
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/dist/api/resources/embeddingModels/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.d.ts +16 -0
- package/dist/api/resources/jobs/client/Client.js +101 -6
- package/dist/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +16 -0
- package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +16 -0
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +5 -5
- package/dist/api/resources/runs/client/Client.js +4 -4
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +8 -8
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +6 -3
- package/dist/api/resources/steps/client/requests/StepsListRequest.d.ts +4 -0
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +19 -19
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/CodeInput.d.ts +7 -0
- package/dist/api/types/CodeInput.js +5 -0
- package/dist/api/types/Step.d.ts +2 -0
- package/dist/api/types/StopReasonType.d.ts +2 -1
- package/dist/api/types/StopReasonType.js +1 -0
- package/dist/api/types/UpdateSsemcpServer.d.ts +2 -0
- package/dist/api/types/UpdateStreamableHttpmcpServer.d.ts +2 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/agents/client/cancelAgentRun.d.ts +13 -0
- package/dist/serialization/resources/agents/client/cancelAgentRun.js +42 -0
- package/dist/serialization/resources/agents/client/closeAllOpenFiles.d.ts +9 -0
- package/dist/serialization/resources/agents/client/closeAllOpenFiles.js +41 -0
- package/dist/serialization/resources/agents/client/index.d.ts +2 -0
- package/dist/serialization/resources/agents/client/index.js +3 -1
- package/dist/serialization/types/CodeInput.d.ts +12 -0
- package/dist/serialization/types/CodeInput.js +43 -0
- package/dist/serialization/types/Step.d.ts +1 -0
- package/dist/serialization/types/Step.js +1 -0
- package/dist/serialization/types/StopReasonType.d.ts +1 -1
- package/dist/serialization/types/StopReasonType.js +9 -1
- package/dist/serialization/types/UpdateSsemcpServer.d.ts +1 -0
- package/dist/serialization/types/UpdateSsemcpServer.js +1 -0
- package/dist/serialization/types/UpdateStreamableHttpmcpServer.d.ts +1 -0
- package/dist/serialization/types/UpdateStreamableHttpmcpServer.js +1 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +209 -0
- package/serialization/resources/agents/client/cancelAgentRun.d.ts +13 -0
- package/serialization/resources/agents/client/cancelAgentRun.js +42 -0
- package/serialization/resources/agents/client/closeAllOpenFiles.d.ts +9 -0
- package/serialization/resources/agents/client/closeAllOpenFiles.js +41 -0
- package/serialization/resources/agents/client/index.d.ts +2 -0
- package/serialization/resources/agents/client/index.js +3 -1
- package/serialization/types/CodeInput.d.ts +12 -0
- package/serialization/types/CodeInput.js +43 -0
- package/serialization/types/Step.d.ts +1 -0
- package/serialization/types/Step.js +1 -0
- package/serialization/types/StopReasonType.d.ts +1 -1
- package/serialization/types/StopReasonType.js +9 -1
- package/serialization/types/UpdateSsemcpServer.d.ts +1 -0
- package/serialization/types/UpdateSsemcpServer.js +1 -0
- package/serialization/types/UpdateStreamableHttpmcpServer.d.ts +1 -0
- package/serialization/types/UpdateStreamableHttpmcpServer.js +1 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Response = core.serialization.list(core.serialization.string());
|
|
@@ -36,8 +36,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.exportFile = exports.count = exports.list = void 0;
|
|
39
|
+
exports.cancelAgentRun = exports.closeAllOpenFiles = exports.exportFile = exports.count = exports.list = void 0;
|
|
40
40
|
exports.list = __importStar(require("./list"));
|
|
41
41
|
exports.count = __importStar(require("./count"));
|
|
42
42
|
exports.exportFile = __importStar(require("./exportFile"));
|
|
43
|
+
exports.closeAllOpenFiles = __importStar(require("./closeAllOpenFiles"));
|
|
44
|
+
exports.cancelAgentRun = __importStar(require("./cancelAgentRun"));
|
|
43
45
|
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Letta from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const CodeInput: core.serialization.ObjectSchema<serializers.CodeInput.Raw, Letta.CodeInput>;
|
|
8
|
+
export declare namespace CodeInput {
|
|
9
|
+
interface Raw {
|
|
10
|
+
code: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CodeInput = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.CodeInput = core.serialization.object({
|
|
42
|
+
code: core.serialization.string(),
|
|
43
|
+
});
|
|
@@ -60,4 +60,5 @@ exports.Step = core.serialization.object({
|
|
|
60
60
|
traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
|
|
61
61
|
messages: core.serialization.list(Message_1.Message).optional(),
|
|
62
62
|
feedback: StepFeedback_1.StepFeedback.optional(),
|
|
63
|
+
projectId: core.serialization.property("project_id", core.serialization.string().optional()),
|
|
63
64
|
});
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const StopReasonType: core.serialization.Schema<serializers.StopReasonType.Raw, Letta.StopReasonType>;
|
|
8
8
|
export declare namespace StopReasonType {
|
|
9
|
-
type Raw = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule";
|
|
9
|
+
type Raw = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule" | "cancelled";
|
|
10
10
|
}
|
|
@@ -38,4 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.StopReasonType = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
exports.StopReasonType = core.serialization.enum_([
|
|
41
|
+
exports.StopReasonType = core.serialization.enum_([
|
|
42
|
+
"end_turn",
|
|
43
|
+
"error",
|
|
44
|
+
"invalid_tool_call",
|
|
45
|
+
"max_steps",
|
|
46
|
+
"no_tool_call",
|
|
47
|
+
"tool_rule",
|
|
48
|
+
"cancelled",
|
|
49
|
+
]);
|
|
@@ -42,4 +42,5 @@ exports.UpdateSsemcpServer = core.serialization.object({
|
|
|
42
42
|
serverName: core.serialization.property("server_name", core.serialization.string().optional()),
|
|
43
43
|
serverUrl: core.serialization.property("server_url", core.serialization.string().optional()),
|
|
44
44
|
token: core.serialization.string().optional(),
|
|
45
|
+
customHeaders: core.serialization.property("custom_headers", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
|
|
45
46
|
});
|
|
@@ -43,4 +43,5 @@ exports.UpdateStreamableHttpmcpServer = core.serialization.object({
|
|
|
43
43
|
serverUrl: core.serialization.property("server_url", core.serialization.string().optional()),
|
|
44
44
|
authHeader: core.serialization.property("auth_header", core.serialization.string().optional()),
|
|
45
45
|
authToken: core.serialization.property("auth_token", core.serialization.string().optional()),
|
|
46
|
+
customHeaders: core.serialization.property("custom_headers", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
|
|
46
47
|
});
|
|
@@ -58,6 +58,7 @@ export * from "./ChatCompletionUserMessageParamContent";
|
|
|
58
58
|
export * from "./ChatCompletionUserMessageParam";
|
|
59
59
|
export * from "./ChildToolRule";
|
|
60
60
|
export * from "./ChildToolRuleSchema";
|
|
61
|
+
export * from "./CodeInput";
|
|
61
62
|
export * from "./CompletionCreateParamsNonStreamingMessagesItem";
|
|
62
63
|
export * from "./CompletionCreateParamsNonStreamingModel";
|
|
63
64
|
export * from "./CompletionCreateParamsNonStreamingFunctionCall";
|
|
@@ -74,6 +74,7 @@ __exportStar(require("./ChatCompletionUserMessageParamContent"), exports);
|
|
|
74
74
|
__exportStar(require("./ChatCompletionUserMessageParam"), exports);
|
|
75
75
|
__exportStar(require("./ChildToolRule"), exports);
|
|
76
76
|
__exportStar(require("./ChildToolRuleSchema"), exports);
|
|
77
|
+
__exportStar(require("./CodeInput"), exports);
|
|
77
78
|
__exportStar(require("./CompletionCreateParamsNonStreamingMessagesItem"), exports);
|
|
78
79
|
__exportStar(require("./CompletionCreateParamsNonStreamingModel"), exports);
|
|
79
80
|
__exportStar(require("./CompletionCreateParamsNonStreamingFunctionCall"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.148";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2274,6 +2274,145 @@ await client.agents.modify("agent_id");
|
|
|
2274
2274
|
</dl>
|
|
2275
2275
|
</details>
|
|
2276
2276
|
|
|
2277
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">closeAllOpenFiles</a>(agentId) -> string[]</code></summary>
|
|
2278
|
+
<dl>
|
|
2279
|
+
<dd>
|
|
2280
|
+
|
|
2281
|
+
#### 📝 Description
|
|
2282
|
+
|
|
2283
|
+
<dl>
|
|
2284
|
+
<dd>
|
|
2285
|
+
|
|
2286
|
+
<dl>
|
|
2287
|
+
<dd>
|
|
2288
|
+
|
|
2289
|
+
Closes all currently open files for a given agent.
|
|
2290
|
+
|
|
2291
|
+
This endpoint updates the file state for the agent so that no files are marked as open.
|
|
2292
|
+
Typically used to reset the working memory view for the agent.
|
|
2293
|
+
|
|
2294
|
+
</dd>
|
|
2295
|
+
</dl>
|
|
2296
|
+
</dd>
|
|
2297
|
+
</dl>
|
|
2298
|
+
|
|
2299
|
+
#### 🔌 Usage
|
|
2300
|
+
|
|
2301
|
+
<dl>
|
|
2302
|
+
<dd>
|
|
2303
|
+
|
|
2304
|
+
<dl>
|
|
2305
|
+
<dd>
|
|
2306
|
+
|
|
2307
|
+
```typescript
|
|
2308
|
+
await client.agents.closeAllOpenFiles("agent_id");
|
|
2309
|
+
```
|
|
2310
|
+
|
|
2311
|
+
</dd>
|
|
2312
|
+
</dl>
|
|
2313
|
+
</dd>
|
|
2314
|
+
</dl>
|
|
2315
|
+
|
|
2316
|
+
#### ⚙️ Parameters
|
|
2317
|
+
|
|
2318
|
+
<dl>
|
|
2319
|
+
<dd>
|
|
2320
|
+
|
|
2321
|
+
<dl>
|
|
2322
|
+
<dd>
|
|
2323
|
+
|
|
2324
|
+
**agentId:** `string`
|
|
2325
|
+
|
|
2326
|
+
</dd>
|
|
2327
|
+
</dl>
|
|
2328
|
+
|
|
2329
|
+
<dl>
|
|
2330
|
+
<dd>
|
|
2331
|
+
|
|
2332
|
+
**requestOptions:** `Agents.RequestOptions`
|
|
2333
|
+
|
|
2334
|
+
</dd>
|
|
2335
|
+
</dl>
|
|
2336
|
+
</dd>
|
|
2337
|
+
</dl>
|
|
2338
|
+
|
|
2339
|
+
</dd>
|
|
2340
|
+
</dl>
|
|
2341
|
+
</details>
|
|
2342
|
+
|
|
2343
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">cancelAgentRun</a>(agentId, { ...params }) -> Record<string, unknown></code></summary>
|
|
2344
|
+
<dl>
|
|
2345
|
+
<dd>
|
|
2346
|
+
|
|
2347
|
+
#### 📝 Description
|
|
2348
|
+
|
|
2349
|
+
<dl>
|
|
2350
|
+
<dd>
|
|
2351
|
+
|
|
2352
|
+
<dl>
|
|
2353
|
+
<dd>
|
|
2354
|
+
|
|
2355
|
+
Cancel runs associated with an agent. If run_ids are passed in, cancel those in particular.
|
|
2356
|
+
|
|
2357
|
+
Note to cancel active runs associated with an agent, redis is required.
|
|
2358
|
+
|
|
2359
|
+
</dd>
|
|
2360
|
+
</dl>
|
|
2361
|
+
</dd>
|
|
2362
|
+
</dl>
|
|
2363
|
+
|
|
2364
|
+
#### 🔌 Usage
|
|
2365
|
+
|
|
2366
|
+
<dl>
|
|
2367
|
+
<dd>
|
|
2368
|
+
|
|
2369
|
+
<dl>
|
|
2370
|
+
<dd>
|
|
2371
|
+
|
|
2372
|
+
```typescript
|
|
2373
|
+
await client.agents.cancelAgentRun("agent_id", undefined);
|
|
2374
|
+
```
|
|
2375
|
+
|
|
2376
|
+
</dd>
|
|
2377
|
+
</dl>
|
|
2378
|
+
</dd>
|
|
2379
|
+
</dl>
|
|
2380
|
+
|
|
2381
|
+
#### ⚙️ Parameters
|
|
2382
|
+
|
|
2383
|
+
<dl>
|
|
2384
|
+
<dd>
|
|
2385
|
+
|
|
2386
|
+
<dl>
|
|
2387
|
+
<dd>
|
|
2388
|
+
|
|
2389
|
+
**agentId:** `string`
|
|
2390
|
+
|
|
2391
|
+
</dd>
|
|
2392
|
+
</dl>
|
|
2393
|
+
|
|
2394
|
+
<dl>
|
|
2395
|
+
<dd>
|
|
2396
|
+
|
|
2397
|
+
**request:** `string[]`
|
|
2398
|
+
|
|
2399
|
+
</dd>
|
|
2400
|
+
</dl>
|
|
2401
|
+
|
|
2402
|
+
<dl>
|
|
2403
|
+
<dd>
|
|
2404
|
+
|
|
2405
|
+
**requestOptions:** `Agents.RequestOptions`
|
|
2406
|
+
|
|
2407
|
+
</dd>
|
|
2408
|
+
</dl>
|
|
2409
|
+
</dd>
|
|
2410
|
+
</dl>
|
|
2411
|
+
|
|
2412
|
+
</dd>
|
|
2413
|
+
</dl>
|
|
2414
|
+
</details>
|
|
2415
|
+
|
|
2277
2416
|
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">summarizeAgentConversation</a>(agentId, { ...params }) -> Letta.AgentState</code></summary>
|
|
2278
2417
|
<dl>
|
|
2279
2418
|
<dd>
|
|
@@ -3634,6 +3773,7 @@ await client.blocks.modify("block_id", {});
|
|
|
3634
3773
|
<dd>
|
|
3635
3774
|
|
|
3636
3775
|
List all jobs.
|
|
3776
|
+
TODO (cliandy): implementation for pagination
|
|
3637
3777
|
|
|
3638
3778
|
</dd>
|
|
3639
3779
|
</dl>
|
|
@@ -3873,6 +4013,72 @@ await client.jobs.delete("job_id");
|
|
|
3873
4013
|
</dl>
|
|
3874
4014
|
</details>
|
|
3875
4015
|
|
|
4016
|
+
<details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">cancelJob</a>(jobId) -> Letta.Job</code></summary>
|
|
4017
|
+
<dl>
|
|
4018
|
+
<dd>
|
|
4019
|
+
|
|
4020
|
+
#### 📝 Description
|
|
4021
|
+
|
|
4022
|
+
<dl>
|
|
4023
|
+
<dd>
|
|
4024
|
+
|
|
4025
|
+
<dl>
|
|
4026
|
+
<dd>
|
|
4027
|
+
|
|
4028
|
+
Cancel a job by its job_id.
|
|
4029
|
+
|
|
4030
|
+
This endpoint marks a job as cancelled, which will cause any associated
|
|
4031
|
+
agent execution to terminate as soon as possible.
|
|
4032
|
+
|
|
4033
|
+
</dd>
|
|
4034
|
+
</dl>
|
|
4035
|
+
</dd>
|
|
4036
|
+
</dl>
|
|
4037
|
+
|
|
4038
|
+
#### 🔌 Usage
|
|
4039
|
+
|
|
4040
|
+
<dl>
|
|
4041
|
+
<dd>
|
|
4042
|
+
|
|
4043
|
+
<dl>
|
|
4044
|
+
<dd>
|
|
4045
|
+
|
|
4046
|
+
```typescript
|
|
4047
|
+
await client.jobs.cancelJob("job_id");
|
|
4048
|
+
```
|
|
4049
|
+
|
|
4050
|
+
</dd>
|
|
4051
|
+
</dl>
|
|
4052
|
+
</dd>
|
|
4053
|
+
</dl>
|
|
4054
|
+
|
|
4055
|
+
#### ⚙️ Parameters
|
|
4056
|
+
|
|
4057
|
+
<dl>
|
|
4058
|
+
<dd>
|
|
4059
|
+
|
|
4060
|
+
<dl>
|
|
4061
|
+
<dd>
|
|
4062
|
+
|
|
4063
|
+
**jobId:** `string`
|
|
4064
|
+
|
|
4065
|
+
</dd>
|
|
4066
|
+
</dl>
|
|
4067
|
+
|
|
4068
|
+
<dl>
|
|
4069
|
+
<dd>
|
|
4070
|
+
|
|
4071
|
+
**requestOptions:** `Jobs.RequestOptions`
|
|
4072
|
+
|
|
4073
|
+
</dd>
|
|
4074
|
+
</dl>
|
|
4075
|
+
</dd>
|
|
4076
|
+
</dl>
|
|
4077
|
+
|
|
4078
|
+
</dd>
|
|
4079
|
+
</dl>
|
|
4080
|
+
</details>
|
|
4081
|
+
|
|
3876
4082
|
## Health
|
|
3877
4083
|
|
|
3878
4084
|
<details><summary><code>client.health.<a href="/src/api/resources/health/client/Client.ts">check</a>() -> Letta.Health</code></summary>
|
|
@@ -6945,6 +7151,9 @@ for await (const item of response) {
|
|
|
6945
7151
|
Asynchronously process a user message and return a run object.
|
|
6946
7152
|
The actual processing happens in the background, and the status can be checked using the run ID.
|
|
6947
7153
|
|
|
7154
|
+
This is "asynchronous" in the sense that it's a background job and explicitly must be fetched by the run ID.
|
|
7155
|
+
This is more like `send_message_job`
|
|
7156
|
+
|
|
6948
7157
|
</dd>
|
|
6949
7158
|
</dl>
|
|
6950
7159
|
</dd>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare const Request: core.serialization.Schema<serializers.agents.cancelAgentRun.Request.Raw, string[] | undefined>;
|
|
7
|
+
export declare namespace Request {
|
|
8
|
+
type Raw = string[] | null | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare const Response: core.serialization.Schema<serializers.agents.cancelAgentRun.Response.Raw, Record<string, unknown>>;
|
|
11
|
+
export declare namespace Response {
|
|
12
|
+
type Raw = Record<string, unknown>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = exports.Request = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Request = core.serialization.list(core.serialization.string()).optional();
|
|
42
|
+
exports.Response = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare const Response: core.serialization.Schema<serializers.agents.closeAllOpenFiles.Response.Raw, string[]>;
|
|
7
|
+
export declare namespace Response {
|
|
8
|
+
type Raw = string[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Response = core.serialization.list(core.serialization.string());
|
|
@@ -36,8 +36,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.exportFile = exports.count = exports.list = void 0;
|
|
39
|
+
exports.cancelAgentRun = exports.closeAllOpenFiles = exports.exportFile = exports.count = exports.list = void 0;
|
|
40
40
|
exports.list = __importStar(require("./list"));
|
|
41
41
|
exports.count = __importStar(require("./count"));
|
|
42
42
|
exports.exportFile = __importStar(require("./exportFile"));
|
|
43
|
+
exports.closeAllOpenFiles = __importStar(require("./closeAllOpenFiles"));
|
|
44
|
+
exports.cancelAgentRun = __importStar(require("./cancelAgentRun"));
|
|
43
45
|
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Letta from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const CodeInput: core.serialization.ObjectSchema<serializers.CodeInput.Raw, Letta.CodeInput>;
|
|
8
|
+
export declare namespace CodeInput {
|
|
9
|
+
interface Raw {
|
|
10
|
+
code: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CodeInput = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.CodeInput = core.serialization.object({
|
|
42
|
+
code: core.serialization.string(),
|
|
43
|
+
});
|
|
@@ -60,4 +60,5 @@ exports.Step = core.serialization.object({
|
|
|
60
60
|
traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
|
|
61
61
|
messages: core.serialization.list(Message_1.Message).optional(),
|
|
62
62
|
feedback: StepFeedback_1.StepFeedback.optional(),
|
|
63
|
+
projectId: core.serialization.property("project_id", core.serialization.string().optional()),
|
|
63
64
|
});
|