@letta-ai/letta-client 0.1.75 → 0.1.77
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/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/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/api/resources/agents/resources/passages/client/Client.js +3 -3
- 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/blocks/client/Client.js +6 -6
- package/api/resources/groups/client/Client.js +7 -7
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +6 -6
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +7 -7
- package/api/resources/sources/client/Client.js +6 -6
- 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/tag/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +16 -16
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/AgentSchema.d.ts +1 -1
- package/api/types/AgentSchemaToolRulesItem.d.ts +5 -0
- package/api/types/{ToolRuleSchema.d.ts → BaseToolRuleSchema.d.ts} +1 -1
- package/api/types/ChildToolRuleSchema.d.ts +8 -0
- package/api/types/ChildToolRuleSchema.js +5 -0
- package/api/types/ConditionalToolRuleSchema.d.ts +10 -0
- package/api/types/ConditionalToolRuleSchema.js +5 -0
- package/api/types/MaxCountPerStepToolRuleSchema.d.ts +8 -0
- package/api/types/MaxCountPerStepToolRuleSchema.js +5 -0
- package/api/types/index.d.ts +5 -1
- package/api/types/index.js +5 -1
- package/dist/api/resources/agents/client/Client.js +10 -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/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
- 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/blocks/client/Client.js +6 -6
- package/dist/api/resources/groups/client/Client.js +7 -7
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +6 -6
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +7 -7
- package/dist/api/resources/sources/client/Client.js +6 -6
- 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/tag/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +16 -16
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/AgentSchema.d.ts +1 -1
- package/dist/api/types/AgentSchemaToolRulesItem.d.ts +5 -0
- package/dist/api/types/AgentSchemaToolRulesItem.js +5 -0
- package/dist/api/types/{ToolRuleSchema.d.ts → BaseToolRuleSchema.d.ts} +1 -1
- package/dist/api/types/BaseToolRuleSchema.js +5 -0
- package/dist/api/types/ChildToolRuleSchema.d.ts +8 -0
- package/dist/api/types/ChildToolRuleSchema.js +5 -0
- package/dist/api/types/ConditionalToolRuleSchema.d.ts +10 -0
- package/dist/api/types/ConditionalToolRuleSchema.js +5 -0
- package/dist/api/types/MaxCountPerStepToolRuleSchema.d.ts +8 -0
- package/dist/api/types/MaxCountPerStepToolRuleSchema.js +5 -0
- package/dist/api/types/index.d.ts +5 -1
- package/dist/api/types/index.js +5 -1
- package/dist/serialization/types/AgentSchema.d.ts +2 -2
- package/dist/serialization/types/AgentSchema.js +2 -2
- package/dist/serialization/types/AgentSchemaToolRulesItem.d.ts +14 -0
- package/dist/serialization/types/AgentSchemaToolRulesItem.js +50 -0
- package/dist/serialization/types/{ToolRuleSchema.d.ts → BaseToolRuleSchema.d.ts} +2 -2
- package/dist/serialization/types/{ToolRuleSchema.js → BaseToolRuleSchema.js} +2 -2
- package/dist/serialization/types/ChildToolRuleSchema.d.ts +14 -0
- package/dist/serialization/types/ChildToolRuleSchema.js +45 -0
- package/dist/serialization/types/ConditionalToolRuleSchema.d.ts +16 -0
- package/dist/serialization/types/ConditionalToolRuleSchema.js +47 -0
- package/dist/serialization/types/MaxCountPerStepToolRuleSchema.d.ts +14 -0
- package/dist/serialization/types/MaxCountPerStepToolRuleSchema.js +45 -0
- package/dist/serialization/types/index.d.ts +5 -1
- package/dist/serialization/types/index.js +5 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/AgentSchema.d.ts +2 -2
- package/serialization/types/AgentSchema.js +2 -2
- package/serialization/types/AgentSchemaToolRulesItem.d.ts +14 -0
- package/serialization/types/AgentSchemaToolRulesItem.js +50 -0
- package/serialization/types/{ToolRuleSchema.d.ts → BaseToolRuleSchema.d.ts} +2 -2
- package/serialization/types/{ToolRuleSchema.js → BaseToolRuleSchema.js} +2 -2
- package/serialization/types/ChildToolRuleSchema.d.ts +14 -0
- package/serialization/types/ChildToolRuleSchema.js +45 -0
- package/serialization/types/ConditionalToolRuleSchema.d.ts +16 -0
- package/serialization/types/ConditionalToolRuleSchema.js +47 -0
- package/serialization/types/MaxCountPerStepToolRuleSchema.d.ts +14 -0
- package/serialization/types/MaxCountPerStepToolRuleSchema.js +45 -0
- package/serialization/types/index.d.ts +5 -1
- package/serialization/types/index.js +5 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/types/{ToolRuleSchema.js → AgentSchemaToolRulesItem.js} +0 -0
- /package/{dist/api/types/ToolRuleSchema.js → api/types/BaseToolRuleSchema.js} +0 -0
package/dist/api/types/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./ActionModel"), exports);
|
|
|
22
22
|
__exportStar(require("./ActionParametersModel"), exports);
|
|
23
23
|
__exportStar(require("./ActionResponseModel"), exports);
|
|
24
24
|
__exportStar(require("./AgentEnvironmentVariable"), exports);
|
|
25
|
+
__exportStar(require("./AgentSchemaToolRulesItem"), exports);
|
|
25
26
|
__exportStar(require("./AgentSchema"), exports);
|
|
26
27
|
__exportStar(require("./AgentStateToolRulesItem"), exports);
|
|
27
28
|
__exportStar(require("./AgentState"), exports);
|
|
@@ -35,6 +36,7 @@ __exportStar(require("./Audio"), exports);
|
|
|
35
36
|
__exportStar(require("./AuthRequest"), exports);
|
|
36
37
|
__exportStar(require("./AuthResponse"), exports);
|
|
37
38
|
__exportStar(require("./AuthSchemeField"), exports);
|
|
39
|
+
__exportStar(require("./BaseToolRuleSchema"), exports);
|
|
38
40
|
__exportStar(require("./Block"), exports);
|
|
39
41
|
__exportStar(require("./BlockUpdate"), exports);
|
|
40
42
|
__exportStar(require("./ChatCompletionAssistantMessageParamContentItem"), exports);
|
|
@@ -66,6 +68,7 @@ __exportStar(require("./ChatCompletionUserMessageParamContentItem"), exports);
|
|
|
66
68
|
__exportStar(require("./ChatCompletionUserMessageParamContent"), exports);
|
|
67
69
|
__exportStar(require("./ChatCompletionUserMessageParam"), exports);
|
|
68
70
|
__exportStar(require("./ChildToolRule"), exports);
|
|
71
|
+
__exportStar(require("./ChildToolRuleSchema"), exports);
|
|
69
72
|
__exportStar(require("./CompletionCreateParamsNonStreamingMessagesItem"), exports);
|
|
70
73
|
__exportStar(require("./CompletionCreateParamsNonStreamingModel"), exports);
|
|
71
74
|
__exportStar(require("./CompletionCreateParamsNonStreamingFunctionCall"), exports);
|
|
@@ -87,6 +90,7 @@ __exportStar(require("./CompletionCreateParamsStreamingStop"), exports);
|
|
|
87
90
|
__exportStar(require("./CompletionCreateParamsStreamingToolChoice"), exports);
|
|
88
91
|
__exportStar(require("./CompletionCreateParamsStreaming"), exports);
|
|
89
92
|
__exportStar(require("./ConditionalToolRule"), exports);
|
|
93
|
+
__exportStar(require("./ConditionalToolRuleSchema"), exports);
|
|
90
94
|
__exportStar(require("./ContextWindowOverview"), exports);
|
|
91
95
|
__exportStar(require("./ContinueToolRule"), exports);
|
|
92
96
|
__exportStar(require("./CoreMemoryBlockSchema"), exports);
|
|
@@ -137,6 +141,7 @@ __exportStar(require("./McpServerType"), exports);
|
|
|
137
141
|
__exportStar(require("./McpTool"), exports);
|
|
138
142
|
__exportStar(require("./ManagerType"), exports);
|
|
139
143
|
__exportStar(require("./MaxCountPerStepToolRule"), exports);
|
|
144
|
+
__exportStar(require("./MaxCountPerStepToolRuleSchema"), exports);
|
|
140
145
|
__exportStar(require("./Memory"), exports);
|
|
141
146
|
__exportStar(require("./MessageContentItem"), exports);
|
|
142
147
|
__exportStar(require("./Message"), exports);
|
|
@@ -195,7 +200,6 @@ __exportStar(require("./ToolReturn"), exports);
|
|
|
195
200
|
__exportStar(require("./ToolReturnContent"), exports);
|
|
196
201
|
__exportStar(require("./ToolReturnMessageStatus"), exports);
|
|
197
202
|
__exportStar(require("./ToolReturnMessage"), exports);
|
|
198
|
-
__exportStar(require("./ToolRuleSchema"), exports);
|
|
199
203
|
__exportStar(require("./ToolSchema"), exports);
|
|
200
204
|
__exportStar(require("./ToolType"), exports);
|
|
201
205
|
__exportStar(require("./UpdateAssistantMessageContent"), exports);
|
|
@@ -10,7 +10,7 @@ import { LlmConfig } from "./LlmConfig";
|
|
|
10
10
|
import { MessageSchema } from "./MessageSchema";
|
|
11
11
|
import { TagSchema } from "./TagSchema";
|
|
12
12
|
import { ToolEnvVarSchema } from "./ToolEnvVarSchema";
|
|
13
|
-
import {
|
|
13
|
+
import { AgentSchemaToolRulesItem } from "./AgentSchemaToolRulesItem";
|
|
14
14
|
import { ToolSchema } from "./ToolSchema";
|
|
15
15
|
export declare const AgentSchema: core.serialization.ObjectSchema<serializers.AgentSchema.Raw, Letta.AgentSchema>;
|
|
16
16
|
export declare namespace AgentSchema {
|
|
@@ -29,7 +29,7 @@ export declare namespace AgentSchema {
|
|
|
29
29
|
system: string;
|
|
30
30
|
tags: TagSchema.Raw[];
|
|
31
31
|
tool_exec_environment_variables: ToolEnvVarSchema.Raw[];
|
|
32
|
-
tool_rules:
|
|
32
|
+
tool_rules: AgentSchemaToolRulesItem.Raw[];
|
|
33
33
|
tools: ToolSchema.Raw[];
|
|
34
34
|
updated_at: string;
|
|
35
35
|
version: string;
|
|
@@ -44,7 +44,7 @@ const LlmConfig_1 = require("./LlmConfig");
|
|
|
44
44
|
const MessageSchema_1 = require("./MessageSchema");
|
|
45
45
|
const TagSchema_1 = require("./TagSchema");
|
|
46
46
|
const ToolEnvVarSchema_1 = require("./ToolEnvVarSchema");
|
|
47
|
-
const
|
|
47
|
+
const AgentSchemaToolRulesItem_1 = require("./AgentSchemaToolRulesItem");
|
|
48
48
|
const ToolSchema_1 = require("./ToolSchema");
|
|
49
49
|
exports.AgentSchema = core.serialization.object({
|
|
50
50
|
agentType: core.serialization.property("agent_type", core.serialization.string()),
|
|
@@ -61,7 +61,7 @@ exports.AgentSchema = core.serialization.object({
|
|
|
61
61
|
system: core.serialization.string(),
|
|
62
62
|
tags: core.serialization.list(TagSchema_1.TagSchema),
|
|
63
63
|
toolExecEnvironmentVariables: core.serialization.property("tool_exec_environment_variables", core.serialization.list(ToolEnvVarSchema_1.ToolEnvVarSchema)),
|
|
64
|
-
toolRules: core.serialization.property("tool_rules", core.serialization.list(
|
|
64
|
+
toolRules: core.serialization.property("tool_rules", core.serialization.list(AgentSchemaToolRulesItem_1.AgentSchemaToolRulesItem)),
|
|
65
65
|
tools: core.serialization.list(ToolSchema_1.ToolSchema),
|
|
66
66
|
updatedAt: core.serialization.property("updated_at", core.serialization.string()),
|
|
67
67
|
version: core.serialization.string(),
|
|
@@ -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
|
+
import { BaseToolRuleSchema } from "./BaseToolRuleSchema";
|
|
8
|
+
import { ChildToolRuleSchema } from "./ChildToolRuleSchema";
|
|
9
|
+
import { MaxCountPerStepToolRuleSchema } from "./MaxCountPerStepToolRuleSchema";
|
|
10
|
+
import { ConditionalToolRuleSchema } from "./ConditionalToolRuleSchema";
|
|
11
|
+
export declare const AgentSchemaToolRulesItem: core.serialization.Schema<serializers.AgentSchemaToolRulesItem.Raw, Letta.AgentSchemaToolRulesItem>;
|
|
12
|
+
export declare namespace AgentSchemaToolRulesItem {
|
|
13
|
+
type Raw = BaseToolRuleSchema.Raw | ChildToolRuleSchema.Raw | MaxCountPerStepToolRuleSchema.Raw | ConditionalToolRuleSchema.Raw;
|
|
14
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.AgentSchemaToolRulesItem = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const BaseToolRuleSchema_1 = require("./BaseToolRuleSchema");
|
|
42
|
+
const ChildToolRuleSchema_1 = require("./ChildToolRuleSchema");
|
|
43
|
+
const MaxCountPerStepToolRuleSchema_1 = require("./MaxCountPerStepToolRuleSchema");
|
|
44
|
+
const ConditionalToolRuleSchema_1 = require("./ConditionalToolRuleSchema");
|
|
45
|
+
exports.AgentSchemaToolRulesItem = core.serialization.undiscriminatedUnion([
|
|
46
|
+
BaseToolRuleSchema_1.BaseToolRuleSchema,
|
|
47
|
+
ChildToolRuleSchema_1.ChildToolRuleSchema,
|
|
48
|
+
MaxCountPerStepToolRuleSchema_1.MaxCountPerStepToolRuleSchema,
|
|
49
|
+
ConditionalToolRuleSchema_1.ConditionalToolRuleSchema,
|
|
50
|
+
]);
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const BaseToolRuleSchema: core.serialization.ObjectSchema<serializers.BaseToolRuleSchema.Raw, Letta.BaseToolRuleSchema>;
|
|
8
|
+
export declare namespace BaseToolRuleSchema {
|
|
9
9
|
interface Raw {
|
|
10
10
|
tool_name: string;
|
|
11
11
|
type: string;
|
|
@@ -36,9 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.BaseToolRuleSchema = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
exports.
|
|
41
|
+
exports.BaseToolRuleSchema = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.string(),
|
|
44
44
|
});
|
|
@@ -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 ChildToolRuleSchema: core.serialization.ObjectSchema<serializers.ChildToolRuleSchema.Raw, Letta.ChildToolRuleSchema>;
|
|
8
|
+
export declare namespace ChildToolRuleSchema {
|
|
9
|
+
interface Raw {
|
|
10
|
+
tool_name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
children: string[];
|
|
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.ChildToolRuleSchema = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ChildToolRuleSchema = core.serialization.object({
|
|
42
|
+
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
|
+
type: core.serialization.string(),
|
|
44
|
+
children: core.serialization.list(core.serialization.string()),
|
|
45
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
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 ConditionalToolRuleSchema: core.serialization.ObjectSchema<serializers.ConditionalToolRuleSchema.Raw, Letta.ConditionalToolRuleSchema>;
|
|
8
|
+
export declare namespace ConditionalToolRuleSchema {
|
|
9
|
+
interface Raw {
|
|
10
|
+
tool_name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
default_child?: string | null;
|
|
13
|
+
child_output_mapping: Record<string, string>;
|
|
14
|
+
require_output_mapping: boolean;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.ConditionalToolRuleSchema = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ConditionalToolRuleSchema = core.serialization.object({
|
|
42
|
+
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
|
+
type: core.serialization.string(),
|
|
44
|
+
defaultChild: core.serialization.property("default_child", core.serialization.string().optional()),
|
|
45
|
+
childOutputMapping: core.serialization.property("child_output_mapping", core.serialization.record(core.serialization.string(), core.serialization.string())),
|
|
46
|
+
requireOutputMapping: core.serialization.property("require_output_mapping", core.serialization.boolean()),
|
|
47
|
+
});
|
|
@@ -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 MaxCountPerStepToolRuleSchema: core.serialization.ObjectSchema<serializers.MaxCountPerStepToolRuleSchema.Raw, Letta.MaxCountPerStepToolRuleSchema>;
|
|
8
|
+
export declare namespace MaxCountPerStepToolRuleSchema {
|
|
9
|
+
interface Raw {
|
|
10
|
+
tool_name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
max_count_limit: number;
|
|
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.MaxCountPerStepToolRuleSchema = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.MaxCountPerStepToolRuleSchema = core.serialization.object({
|
|
42
|
+
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
|
+
type: core.serialization.string(),
|
|
44
|
+
maxCountLimit: core.serialization.property("max_count_limit", core.serialization.number()),
|
|
45
|
+
});
|
|
@@ -6,6 +6,7 @@ export * from "./ActionModel";
|
|
|
6
6
|
export * from "./ActionParametersModel";
|
|
7
7
|
export * from "./ActionResponseModel";
|
|
8
8
|
export * from "./AgentEnvironmentVariable";
|
|
9
|
+
export * from "./AgentSchemaToolRulesItem";
|
|
9
10
|
export * from "./AgentSchema";
|
|
10
11
|
export * from "./AgentStateToolRulesItem";
|
|
11
12
|
export * from "./AgentState";
|
|
@@ -19,6 +20,7 @@ export * from "./Audio";
|
|
|
19
20
|
export * from "./AuthRequest";
|
|
20
21
|
export * from "./AuthResponse";
|
|
21
22
|
export * from "./AuthSchemeField";
|
|
23
|
+
export * from "./BaseToolRuleSchema";
|
|
22
24
|
export * from "./Block";
|
|
23
25
|
export * from "./BlockUpdate";
|
|
24
26
|
export * from "./ChatCompletionAssistantMessageParamContentItem";
|
|
@@ -50,6 +52,7 @@ export * from "./ChatCompletionUserMessageParamContentItem";
|
|
|
50
52
|
export * from "./ChatCompletionUserMessageParamContent";
|
|
51
53
|
export * from "./ChatCompletionUserMessageParam";
|
|
52
54
|
export * from "./ChildToolRule";
|
|
55
|
+
export * from "./ChildToolRuleSchema";
|
|
53
56
|
export * from "./CompletionCreateParamsNonStreamingMessagesItem";
|
|
54
57
|
export * from "./CompletionCreateParamsNonStreamingModel";
|
|
55
58
|
export * from "./CompletionCreateParamsNonStreamingFunctionCall";
|
|
@@ -71,6 +74,7 @@ export * from "./CompletionCreateParamsStreamingStop";
|
|
|
71
74
|
export * from "./CompletionCreateParamsStreamingToolChoice";
|
|
72
75
|
export * from "./CompletionCreateParamsStreaming";
|
|
73
76
|
export * from "./ConditionalToolRule";
|
|
77
|
+
export * from "./ConditionalToolRuleSchema";
|
|
74
78
|
export * from "./ContextWindowOverview";
|
|
75
79
|
export * from "./ContinueToolRule";
|
|
76
80
|
export * from "./CoreMemoryBlockSchema";
|
|
@@ -121,6 +125,7 @@ export * from "./McpServerType";
|
|
|
121
125
|
export * from "./McpTool";
|
|
122
126
|
export * from "./ManagerType";
|
|
123
127
|
export * from "./MaxCountPerStepToolRule";
|
|
128
|
+
export * from "./MaxCountPerStepToolRuleSchema";
|
|
124
129
|
export * from "./Memory";
|
|
125
130
|
export * from "./MessageContentItem";
|
|
126
131
|
export * from "./Message";
|
|
@@ -179,7 +184,6 @@ export * from "./ToolReturn";
|
|
|
179
184
|
export * from "./ToolReturnContent";
|
|
180
185
|
export * from "./ToolReturnMessageStatus";
|
|
181
186
|
export * from "./ToolReturnMessage";
|
|
182
|
-
export * from "./ToolRuleSchema";
|
|
183
187
|
export * from "./ToolSchema";
|
|
184
188
|
export * from "./ToolType";
|
|
185
189
|
export * from "./UpdateAssistantMessageContent";
|
|
@@ -22,6 +22,7 @@ __exportStar(require("./ActionModel"), exports);
|
|
|
22
22
|
__exportStar(require("./ActionParametersModel"), exports);
|
|
23
23
|
__exportStar(require("./ActionResponseModel"), exports);
|
|
24
24
|
__exportStar(require("./AgentEnvironmentVariable"), exports);
|
|
25
|
+
__exportStar(require("./AgentSchemaToolRulesItem"), exports);
|
|
25
26
|
__exportStar(require("./AgentSchema"), exports);
|
|
26
27
|
__exportStar(require("./AgentStateToolRulesItem"), exports);
|
|
27
28
|
__exportStar(require("./AgentState"), exports);
|
|
@@ -35,6 +36,7 @@ __exportStar(require("./Audio"), exports);
|
|
|
35
36
|
__exportStar(require("./AuthRequest"), exports);
|
|
36
37
|
__exportStar(require("./AuthResponse"), exports);
|
|
37
38
|
__exportStar(require("./AuthSchemeField"), exports);
|
|
39
|
+
__exportStar(require("./BaseToolRuleSchema"), exports);
|
|
38
40
|
__exportStar(require("./Block"), exports);
|
|
39
41
|
__exportStar(require("./BlockUpdate"), exports);
|
|
40
42
|
__exportStar(require("./ChatCompletionAssistantMessageParamContentItem"), exports);
|
|
@@ -66,6 +68,7 @@ __exportStar(require("./ChatCompletionUserMessageParamContentItem"), exports);
|
|
|
66
68
|
__exportStar(require("./ChatCompletionUserMessageParamContent"), exports);
|
|
67
69
|
__exportStar(require("./ChatCompletionUserMessageParam"), exports);
|
|
68
70
|
__exportStar(require("./ChildToolRule"), exports);
|
|
71
|
+
__exportStar(require("./ChildToolRuleSchema"), exports);
|
|
69
72
|
__exportStar(require("./CompletionCreateParamsNonStreamingMessagesItem"), exports);
|
|
70
73
|
__exportStar(require("./CompletionCreateParamsNonStreamingModel"), exports);
|
|
71
74
|
__exportStar(require("./CompletionCreateParamsNonStreamingFunctionCall"), exports);
|
|
@@ -87,6 +90,7 @@ __exportStar(require("./CompletionCreateParamsStreamingStop"), exports);
|
|
|
87
90
|
__exportStar(require("./CompletionCreateParamsStreamingToolChoice"), exports);
|
|
88
91
|
__exportStar(require("./CompletionCreateParamsStreaming"), exports);
|
|
89
92
|
__exportStar(require("./ConditionalToolRule"), exports);
|
|
93
|
+
__exportStar(require("./ConditionalToolRuleSchema"), exports);
|
|
90
94
|
__exportStar(require("./ContextWindowOverview"), exports);
|
|
91
95
|
__exportStar(require("./ContinueToolRule"), exports);
|
|
92
96
|
__exportStar(require("./CoreMemoryBlockSchema"), exports);
|
|
@@ -137,6 +141,7 @@ __exportStar(require("./McpServerType"), exports);
|
|
|
137
141
|
__exportStar(require("./McpTool"), exports);
|
|
138
142
|
__exportStar(require("./ManagerType"), exports);
|
|
139
143
|
__exportStar(require("./MaxCountPerStepToolRule"), exports);
|
|
144
|
+
__exportStar(require("./MaxCountPerStepToolRuleSchema"), exports);
|
|
140
145
|
__exportStar(require("./Memory"), exports);
|
|
141
146
|
__exportStar(require("./MessageContentItem"), exports);
|
|
142
147
|
__exportStar(require("./Message"), exports);
|
|
@@ -195,7 +200,6 @@ __exportStar(require("./ToolReturn"), exports);
|
|
|
195
200
|
__exportStar(require("./ToolReturnContent"), exports);
|
|
196
201
|
__exportStar(require("./ToolReturnMessageStatus"), exports);
|
|
197
202
|
__exportStar(require("./ToolReturnMessage"), exports);
|
|
198
|
-
__exportStar(require("./ToolRuleSchema"), exports);
|
|
199
203
|
__exportStar(require("./ToolSchema"), exports);
|
|
200
204
|
__exportStar(require("./ToolType"), exports);
|
|
201
205
|
__exportStar(require("./UpdateAssistantMessageContent"), 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.77";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ import { LlmConfig } from "./LlmConfig";
|
|
|
10
10
|
import { MessageSchema } from "./MessageSchema";
|
|
11
11
|
import { TagSchema } from "./TagSchema";
|
|
12
12
|
import { ToolEnvVarSchema } from "./ToolEnvVarSchema";
|
|
13
|
-
import {
|
|
13
|
+
import { AgentSchemaToolRulesItem } from "./AgentSchemaToolRulesItem";
|
|
14
14
|
import { ToolSchema } from "./ToolSchema";
|
|
15
15
|
export declare const AgentSchema: core.serialization.ObjectSchema<serializers.AgentSchema.Raw, Letta.AgentSchema>;
|
|
16
16
|
export declare namespace AgentSchema {
|
|
@@ -29,7 +29,7 @@ export declare namespace AgentSchema {
|
|
|
29
29
|
system: string;
|
|
30
30
|
tags: TagSchema.Raw[];
|
|
31
31
|
tool_exec_environment_variables: ToolEnvVarSchema.Raw[];
|
|
32
|
-
tool_rules:
|
|
32
|
+
tool_rules: AgentSchemaToolRulesItem.Raw[];
|
|
33
33
|
tools: ToolSchema.Raw[];
|
|
34
34
|
updated_at: string;
|
|
35
35
|
version: string;
|
|
@@ -44,7 +44,7 @@ const LlmConfig_1 = require("./LlmConfig");
|
|
|
44
44
|
const MessageSchema_1 = require("./MessageSchema");
|
|
45
45
|
const TagSchema_1 = require("./TagSchema");
|
|
46
46
|
const ToolEnvVarSchema_1 = require("./ToolEnvVarSchema");
|
|
47
|
-
const
|
|
47
|
+
const AgentSchemaToolRulesItem_1 = require("./AgentSchemaToolRulesItem");
|
|
48
48
|
const ToolSchema_1 = require("./ToolSchema");
|
|
49
49
|
exports.AgentSchema = core.serialization.object({
|
|
50
50
|
agentType: core.serialization.property("agent_type", core.serialization.string()),
|
|
@@ -61,7 +61,7 @@ exports.AgentSchema = core.serialization.object({
|
|
|
61
61
|
system: core.serialization.string(),
|
|
62
62
|
tags: core.serialization.list(TagSchema_1.TagSchema),
|
|
63
63
|
toolExecEnvironmentVariables: core.serialization.property("tool_exec_environment_variables", core.serialization.list(ToolEnvVarSchema_1.ToolEnvVarSchema)),
|
|
64
|
-
toolRules: core.serialization.property("tool_rules", core.serialization.list(
|
|
64
|
+
toolRules: core.serialization.property("tool_rules", core.serialization.list(AgentSchemaToolRulesItem_1.AgentSchemaToolRulesItem)),
|
|
65
65
|
tools: core.serialization.list(ToolSchema_1.ToolSchema),
|
|
66
66
|
updatedAt: core.serialization.property("updated_at", core.serialization.string()),
|
|
67
67
|
version: core.serialization.string(),
|
|
@@ -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
|
+
import { BaseToolRuleSchema } from "./BaseToolRuleSchema";
|
|
8
|
+
import { ChildToolRuleSchema } from "./ChildToolRuleSchema";
|
|
9
|
+
import { MaxCountPerStepToolRuleSchema } from "./MaxCountPerStepToolRuleSchema";
|
|
10
|
+
import { ConditionalToolRuleSchema } from "./ConditionalToolRuleSchema";
|
|
11
|
+
export declare const AgentSchemaToolRulesItem: core.serialization.Schema<serializers.AgentSchemaToolRulesItem.Raw, Letta.AgentSchemaToolRulesItem>;
|
|
12
|
+
export declare namespace AgentSchemaToolRulesItem {
|
|
13
|
+
type Raw = BaseToolRuleSchema.Raw | ChildToolRuleSchema.Raw | MaxCountPerStepToolRuleSchema.Raw | ConditionalToolRuleSchema.Raw;
|
|
14
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.AgentSchemaToolRulesItem = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const BaseToolRuleSchema_1 = require("./BaseToolRuleSchema");
|
|
42
|
+
const ChildToolRuleSchema_1 = require("./ChildToolRuleSchema");
|
|
43
|
+
const MaxCountPerStepToolRuleSchema_1 = require("./MaxCountPerStepToolRuleSchema");
|
|
44
|
+
const ConditionalToolRuleSchema_1 = require("./ConditionalToolRuleSchema");
|
|
45
|
+
exports.AgentSchemaToolRulesItem = core.serialization.undiscriminatedUnion([
|
|
46
|
+
BaseToolRuleSchema_1.BaseToolRuleSchema,
|
|
47
|
+
ChildToolRuleSchema_1.ChildToolRuleSchema,
|
|
48
|
+
MaxCountPerStepToolRuleSchema_1.MaxCountPerStepToolRuleSchema,
|
|
49
|
+
ConditionalToolRuleSchema_1.ConditionalToolRuleSchema,
|
|
50
|
+
]);
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const BaseToolRuleSchema: core.serialization.ObjectSchema<serializers.BaseToolRuleSchema.Raw, Letta.BaseToolRuleSchema>;
|
|
8
|
+
export declare namespace BaseToolRuleSchema {
|
|
9
9
|
interface Raw {
|
|
10
10
|
tool_name: string;
|
|
11
11
|
type: string;
|
|
@@ -36,9 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.BaseToolRuleSchema = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
exports.
|
|
41
|
+
exports.BaseToolRuleSchema = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.string(),
|
|
44
44
|
});
|
|
@@ -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 ChildToolRuleSchema: core.serialization.ObjectSchema<serializers.ChildToolRuleSchema.Raw, Letta.ChildToolRuleSchema>;
|
|
8
|
+
export declare namespace ChildToolRuleSchema {
|
|
9
|
+
interface Raw {
|
|
10
|
+
tool_name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
children: string[];
|
|
13
|
+
}
|
|
14
|
+
}
|