@letta-ai/letta-client 0.1.132 → 0.1.134
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.js +10 -10
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- 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.js +6 -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/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
- package/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
- 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.js +4 -4
- 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 +7 -7
- 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 +2 -2
- 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 +18 -18
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/AgentState.d.ts +2 -0
- package/api/types/AgentStateToolRulesItem.d.ts +1 -1
- package/api/types/JobStatus.d.ts +1 -2
- package/api/types/JobStatus.js +0 -1
- package/api/types/RequiredBeforeExitToolRule.d.ts +13 -0
- package/api/types/RequiredBeforeExitToolRule.js +5 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/api/resources/agents/client/Client.js +10 -10
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- 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.js +6 -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/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
- package/dist/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
- 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.js +4 -4
- 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 +7 -7
- 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 +2 -2
- 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 +18 -18
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/AgentState.d.ts +2 -0
- package/dist/api/types/AgentStateToolRulesItem.d.ts +1 -1
- package/dist/api/types/JobStatus.d.ts +1 -2
- package/dist/api/types/JobStatus.js +0 -1
- package/dist/api/types/RequiredBeforeExitToolRule.d.ts +13 -0
- package/dist/api/types/RequiredBeforeExitToolRule.js +5 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
- package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +2 -1
- package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +2 -0
- package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +2 -1
- package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +2 -0
- package/dist/serialization/types/AgentState.d.ts +1 -0
- package/dist/serialization/types/AgentState.js +1 -0
- package/dist/serialization/types/AgentStateToolRulesItem.d.ts +2 -1
- package/dist/serialization/types/AgentStateToolRulesItem.js +2 -0
- package/dist/serialization/types/JobStatus.d.ts +1 -1
- package/dist/serialization/types/JobStatus.js +1 -10
- package/dist/serialization/types/RequiredBeforeExitToolRule.d.ts +14 -0
- package/dist/serialization/types/RequiredBeforeExitToolRule.js +45 -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/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
- package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +2 -1
- package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +2 -0
- package/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +2 -1
- package/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +2 -0
- package/serialization/types/AgentState.d.ts +1 -0
- package/serialization/types/AgentState.js +1 -0
- package/serialization/types/AgentStateToolRulesItem.d.ts +2 -1
- package/serialization/types/AgentStateToolRulesItem.js +2 -0
- package/serialization/types/JobStatus.d.ts +1 -1
- package/serialization/types/JobStatus.js +1 -10
- package/serialization/types/RequiredBeforeExitToolRule.d.ts +14 -0
- package/serialization/types/RequiredBeforeExitToolRule.js +45 -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
|
@@ -10,8 +10,9 @@ import { ContinueToolRule } from "../../../types/ContinueToolRule";
|
|
|
10
10
|
import { TerminalToolRule } from "../../../types/TerminalToolRule";
|
|
11
11
|
import { MaxCountPerStepToolRule } from "../../../types/MaxCountPerStepToolRule";
|
|
12
12
|
import { ParentToolRule } from "../../../types/ParentToolRule";
|
|
13
|
+
import { RequiredBeforeExitToolRule } from "../../../types/RequiredBeforeExitToolRule";
|
|
13
14
|
import { InitToolRule } from "../../../types/InitToolRule";
|
|
14
15
|
export declare const UpdateAgentToolRulesItem: core.serialization.Schema<serializers.UpdateAgentToolRulesItem.Raw, Letta.UpdateAgentToolRulesItem>;
|
|
15
16
|
export declare namespace UpdateAgentToolRulesItem {
|
|
16
|
-
type Raw = ConditionalToolRule.Raw | ChildToolRule.Raw | ContinueToolRule.Raw | TerminalToolRule.Raw | MaxCountPerStepToolRule.Raw | ParentToolRule.Raw | InitToolRule.Raw;
|
|
17
|
+
type Raw = ConditionalToolRule.Raw | ChildToolRule.Raw | ContinueToolRule.Raw | TerminalToolRule.Raw | MaxCountPerStepToolRule.Raw | ParentToolRule.Raw | RequiredBeforeExitToolRule.Raw | InitToolRule.Raw;
|
|
17
18
|
}
|
|
@@ -44,6 +44,7 @@ const ContinueToolRule_1 = require("../../../types/ContinueToolRule");
|
|
|
44
44
|
const TerminalToolRule_1 = require("../../../types/TerminalToolRule");
|
|
45
45
|
const MaxCountPerStepToolRule_1 = require("../../../types/MaxCountPerStepToolRule");
|
|
46
46
|
const ParentToolRule_1 = require("../../../types/ParentToolRule");
|
|
47
|
+
const RequiredBeforeExitToolRule_1 = require("../../../types/RequiredBeforeExitToolRule");
|
|
47
48
|
const InitToolRule_1 = require("../../../types/InitToolRule");
|
|
48
49
|
exports.UpdateAgentToolRulesItem = core.serialization.undiscriminatedUnion([
|
|
49
50
|
ConditionalToolRule_1.ConditionalToolRule,
|
|
@@ -52,5 +53,6 @@ exports.UpdateAgentToolRulesItem = core.serialization.undiscriminatedUnion([
|
|
|
52
53
|
TerminalToolRule_1.TerminalToolRule,
|
|
53
54
|
MaxCountPerStepToolRule_1.MaxCountPerStepToolRule,
|
|
54
55
|
ParentToolRule_1.ParentToolRule,
|
|
56
|
+
RequiredBeforeExitToolRule_1.RequiredBeforeExitToolRule,
|
|
55
57
|
InitToolRule_1.InitToolRule,
|
|
56
58
|
]);
|
|
@@ -78,4 +78,5 @@ exports.AgentState = core.serialization.object({
|
|
|
78
78
|
multiAgentGroup: core.serialization.property("multi_agent_group", Group_1.Group.optional()),
|
|
79
79
|
lastRunCompletion: core.serialization.property("last_run_completion", core.serialization.date().optional()),
|
|
80
80
|
lastRunDurationMs: core.serialization.property("last_run_duration_ms", core.serialization.number().optional()),
|
|
81
|
+
timezone: core.serialization.string().optional(),
|
|
81
82
|
});
|
|
@@ -10,8 +10,9 @@ import { ContinueToolRule } from "./ContinueToolRule";
|
|
|
10
10
|
import { TerminalToolRule } from "./TerminalToolRule";
|
|
11
11
|
import { MaxCountPerStepToolRule } from "./MaxCountPerStepToolRule";
|
|
12
12
|
import { ParentToolRule } from "./ParentToolRule";
|
|
13
|
+
import { RequiredBeforeExitToolRule } from "./RequiredBeforeExitToolRule";
|
|
13
14
|
import { InitToolRule } from "./InitToolRule";
|
|
14
15
|
export declare const AgentStateToolRulesItem: core.serialization.Schema<serializers.AgentStateToolRulesItem.Raw, Letta.AgentStateToolRulesItem>;
|
|
15
16
|
export declare namespace AgentStateToolRulesItem {
|
|
16
|
-
type Raw = ConditionalToolRule.Raw | ChildToolRule.Raw | ContinueToolRule.Raw | TerminalToolRule.Raw | MaxCountPerStepToolRule.Raw | ParentToolRule.Raw | InitToolRule.Raw;
|
|
17
|
+
type Raw = ConditionalToolRule.Raw | ChildToolRule.Raw | ContinueToolRule.Raw | TerminalToolRule.Raw | MaxCountPerStepToolRule.Raw | ParentToolRule.Raw | RequiredBeforeExitToolRule.Raw | InitToolRule.Raw;
|
|
17
18
|
}
|
|
@@ -44,6 +44,7 @@ const ContinueToolRule_1 = require("./ContinueToolRule");
|
|
|
44
44
|
const TerminalToolRule_1 = require("./TerminalToolRule");
|
|
45
45
|
const MaxCountPerStepToolRule_1 = require("./MaxCountPerStepToolRule");
|
|
46
46
|
const ParentToolRule_1 = require("./ParentToolRule");
|
|
47
|
+
const RequiredBeforeExitToolRule_1 = require("./RequiredBeforeExitToolRule");
|
|
47
48
|
const InitToolRule_1 = require("./InitToolRule");
|
|
48
49
|
exports.AgentStateToolRulesItem = core.serialization.undiscriminatedUnion([
|
|
49
50
|
ConditionalToolRule_1.ConditionalToolRule,
|
|
@@ -52,5 +53,6 @@ exports.AgentStateToolRulesItem = core.serialization.undiscriminatedUnion([
|
|
|
52
53
|
TerminalToolRule_1.TerminalToolRule,
|
|
53
54
|
MaxCountPerStepToolRule_1.MaxCountPerStepToolRule,
|
|
54
55
|
ParentToolRule_1.ParentToolRule,
|
|
56
|
+
RequiredBeforeExitToolRule_1.RequiredBeforeExitToolRule,
|
|
55
57
|
InitToolRule_1.InitToolRule,
|
|
56
58
|
]);
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const JobStatus: core.serialization.Schema<serializers.JobStatus.Raw, Letta.JobStatus>;
|
|
8
8
|
export declare namespace JobStatus {
|
|
9
|
-
type Raw = "
|
|
9
|
+
type Raw = "created" | "running" | "completed" | "failed" | "pending" | "cancelled" | "expired";
|
|
10
10
|
}
|
|
@@ -38,13 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.JobStatus = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
exports.JobStatus = core.serialization.enum_([
|
|
42
|
-
"not_started",
|
|
43
|
-
"created",
|
|
44
|
-
"running",
|
|
45
|
-
"completed",
|
|
46
|
-
"failed",
|
|
47
|
-
"pending",
|
|
48
|
-
"cancelled",
|
|
49
|
-
"expired",
|
|
50
|
-
]);
|
|
41
|
+
exports.JobStatus = core.serialization.enum_(["created", "running", "completed", "failed", "pending", "cancelled", "expired"]);
|
|
@@ -0,0 +1,14 @@
|
|
|
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 RequiredBeforeExitToolRule: core.serialization.ObjectSchema<serializers.RequiredBeforeExitToolRule.Raw, Letta.RequiredBeforeExitToolRule>;
|
|
8
|
+
export declare namespace RequiredBeforeExitToolRule {
|
|
9
|
+
interface Raw {
|
|
10
|
+
tool_name: string;
|
|
11
|
+
type: "required_before_exit";
|
|
12
|
+
prompt_template?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.RequiredBeforeExitToolRule = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.RequiredBeforeExitToolRule = core.serialization.object({
|
|
42
|
+
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
|
+
type: core.serialization.stringLiteral("required_before_exit"),
|
|
44
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
45
|
+
});
|
|
@@ -166,6 +166,7 @@ export * from "./ReasoningContent";
|
|
|
166
166
|
export * from "./ReasoningMessageSource";
|
|
167
167
|
export * from "./ReasoningMessage";
|
|
168
168
|
export * from "./RedactedReasoningContent";
|
|
169
|
+
export * from "./RequiredBeforeExitToolRule";
|
|
169
170
|
export * from "./ResponseFormatJsonObject";
|
|
170
171
|
export * from "./ResponseFormatJsonSchema";
|
|
171
172
|
export * from "./ResponseFormatText";
|
|
@@ -182,6 +182,7 @@ __exportStar(require("./ReasoningContent"), exports);
|
|
|
182
182
|
__exportStar(require("./ReasoningMessageSource"), exports);
|
|
183
183
|
__exportStar(require("./ReasoningMessage"), exports);
|
|
184
184
|
__exportStar(require("./RedactedReasoningContent"), exports);
|
|
185
|
+
__exportStar(require("./RequiredBeforeExitToolRule"), exports);
|
|
185
186
|
__exportStar(require("./ResponseFormatJsonObject"), exports);
|
|
186
187
|
__exportStar(require("./ResponseFormatJsonSchema"), exports);
|
|
187
188
|
__exportStar(require("./ResponseFormatText"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.134";
|
package/version.js
CHANGED