@letta-ai/letta-client 0.1.63 → 0.1.65
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 +7 -7
- package/api/resources/agents/client/Client.js +28 -22
- package/api/resources/agents/client/requests/{BodyUploadAgentSerialized.d.ts → BodyImportAgentSerialized.d.ts} +1 -1
- package/api/resources/agents/client/requests/index.d.ts +1 -1
- 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.d.ts +9 -6
- package/api/resources/agents/resources/messages/client/Client.js +14 -11
- 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.d.ts +8 -2
- package/api/resources/groups/client/Client.js +15 -9
- package/api/resources/groups/client/requests/SendGroupMessageRequest.d.ts +4 -1
- 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 +27 -0
- package/api/types/AssistantMessage.d.ts +3 -1
- package/api/types/CoreMemoryBlockSchema.d.ts +16 -0
- package/api/types/LettaMessageContentUnion.d.ts +5 -0
- package/api/types/Message.d.ts +1 -1
- package/api/types/MessageContentItem.d.ts +5 -0
- package/api/types/MessageCreateContent.d.ts +1 -1
- package/api/types/MessageSchema.d.ts +17 -0
- package/api/types/OmittedReasoningContent.d.ts +8 -0
- package/api/types/OmittedReasoningContent.js +5 -0
- package/api/types/ParameterProperties.d.ts +7 -0
- package/api/types/ParameterProperties.js +5 -0
- package/api/types/ParametersSchema.d.ts +9 -0
- package/api/types/ParametersSchema.js +5 -0
- package/api/types/ReasoningContent.d.ts +12 -0
- package/api/types/ReasoningContent.js +5 -0
- package/api/types/ReasoningMessage.d.ts +6 -0
- package/api/types/ReasoningMessageSource.d.ts +8 -0
- package/api/types/ReasoningMessageSource.js +10 -0
- package/api/types/RedactedReasoningContent.d.ts +8 -0
- package/api/types/RedactedReasoningContent.js +5 -0
- package/api/types/SystemMessage.d.ts +5 -4
- package/api/types/TagSchema.d.ts +6 -0
- package/api/types/TagSchema.js +5 -0
- package/api/types/ToolCallContent.d.ts +12 -0
- package/api/types/ToolCallContent.js +5 -0
- package/api/types/ToolCallMessage.d.ts +2 -0
- package/api/types/ToolEnvVarSchema.d.ts +11 -0
- package/api/types/ToolEnvVarSchema.js +5 -0
- package/api/types/ToolJsonSchema.d.ts +11 -0
- package/api/types/ToolJsonSchema.js +5 -0
- package/api/types/ToolReturnContent.d.ts +12 -0
- package/api/types/ToolReturnContent.js +5 -0
- package/api/types/ToolReturnMessage.d.ts +2 -0
- package/api/types/ToolRuleSchema.d.ts +7 -0
- package/api/types/ToolRuleSchema.js +5 -0
- package/api/types/ToolSchema.d.ts +18 -0
- package/api/types/ToolSchema.js +5 -0
- package/api/types/UpdateSystemMessage.d.ts +2 -3
- package/api/types/UpdateUserMessage.d.ts +1 -1
- package/api/types/UpdateUserMessageContent.d.ts +1 -1
- package/api/types/UserMessage.d.ts +4 -2
- package/api/types/UserMessageContent.d.ts +1 -1
- package/api/types/index.d.ts +18 -2
- package/api/types/index.js +18 -2
- package/dist/api/resources/agents/client/Client.d.ts +7 -7
- package/dist/api/resources/agents/client/Client.js +28 -22
- package/dist/api/resources/agents/client/requests/{BodyUploadAgentSerialized.d.ts → BodyImportAgentSerialized.d.ts} +1 -1
- package/dist/api/resources/agents/client/requests/BodyImportAgentSerialized.js +5 -0
- package/dist/api/resources/agents/client/requests/index.d.ts +1 -1
- 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.d.ts +9 -6
- package/dist/api/resources/agents/resources/messages/client/Client.js +14 -11
- 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.d.ts +8 -2
- package/dist/api/resources/groups/client/Client.js +15 -9
- package/dist/api/resources/groups/client/requests/SendGroupMessageRequest.d.ts +4 -1
- 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 +27 -0
- package/dist/api/types/AgentSchema.js +5 -0
- package/dist/api/types/AssistantMessage.d.ts +3 -1
- package/dist/api/types/CoreMemoryBlockSchema.d.ts +16 -0
- package/dist/api/types/CoreMemoryBlockSchema.js +5 -0
- package/dist/api/types/LettaMessageContentUnion.d.ts +5 -0
- package/dist/api/types/LettaMessageContentUnion.js +5 -0
- package/dist/api/types/Message.d.ts +1 -1
- package/dist/api/types/MessageContentItem.d.ts +5 -0
- package/dist/api/types/MessageContentItem.js +5 -0
- package/dist/api/types/MessageCreateContent.d.ts +1 -1
- package/dist/api/types/MessageSchema.d.ts +17 -0
- package/dist/api/types/MessageSchema.js +5 -0
- package/dist/api/types/OmittedReasoningContent.d.ts +8 -0
- package/dist/api/types/OmittedReasoningContent.js +5 -0
- package/dist/api/types/ParameterProperties.d.ts +7 -0
- package/dist/api/types/ParameterProperties.js +5 -0
- package/dist/api/types/ParametersSchema.d.ts +9 -0
- package/dist/api/types/ParametersSchema.js +5 -0
- package/dist/api/types/ReasoningContent.d.ts +12 -0
- package/dist/api/types/ReasoningContent.js +5 -0
- package/dist/api/types/ReasoningMessage.d.ts +6 -0
- package/dist/api/types/ReasoningMessageSource.d.ts +8 -0
- package/dist/api/types/ReasoningMessageSource.js +10 -0
- package/dist/api/types/RedactedReasoningContent.d.ts +8 -0
- package/dist/api/types/RedactedReasoningContent.js +5 -0
- package/dist/api/types/SystemMessage.d.ts +5 -4
- package/dist/api/types/TagSchema.d.ts +6 -0
- package/dist/api/types/TagSchema.js +5 -0
- package/dist/api/types/ToolCallContent.d.ts +12 -0
- package/dist/api/types/ToolCallContent.js +5 -0
- package/dist/api/types/ToolCallMessage.d.ts +2 -0
- package/dist/api/types/ToolEnvVarSchema.d.ts +11 -0
- package/dist/api/types/ToolEnvVarSchema.js +5 -0
- package/dist/api/types/ToolJsonSchema.d.ts +11 -0
- package/dist/api/types/ToolJsonSchema.js +5 -0
- package/dist/api/types/ToolReturnContent.d.ts +12 -0
- package/dist/api/types/ToolReturnContent.js +5 -0
- package/dist/api/types/ToolReturnMessage.d.ts +2 -0
- package/dist/api/types/ToolRuleSchema.d.ts +7 -0
- package/dist/api/types/ToolRuleSchema.js +5 -0
- package/dist/api/types/ToolSchema.d.ts +18 -0
- package/dist/api/types/ToolSchema.js +5 -0
- package/dist/api/types/UpdateSystemMessage.d.ts +2 -3
- package/dist/api/types/UpdateUserMessage.d.ts +1 -1
- package/dist/api/types/UpdateUserMessageContent.d.ts +1 -1
- package/dist/api/types/UserMessage.d.ts +4 -2
- package/dist/api/types/UserMessageContent.d.ts +1 -1
- package/dist/api/types/index.d.ts +18 -2
- package/dist/api/types/index.js +18 -2
- package/dist/serialization/types/AgentSchema.d.ts +40 -0
- package/dist/serialization/types/AgentSchema.js +71 -0
- package/dist/serialization/types/AssistantMessage.d.ts +1 -0
- package/dist/serialization/types/AssistantMessage.js +1 -0
- package/dist/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
- package/dist/serialization/types/CoreMemoryBlockSchema.js +53 -0
- package/dist/serialization/types/LettaMessageContentUnion.d.ts +15 -0
- package/dist/serialization/types/LettaMessageContentUnion.js +52 -0
- package/dist/serialization/types/Message.d.ts +2 -2
- package/dist/serialization/types/Message.js +2 -2
- package/dist/serialization/types/MessageContentItem.d.ts +16 -0
- package/dist/serialization/types/MessageContentItem.js +54 -0
- package/dist/serialization/types/MessageCreateContent.d.ts +2 -2
- package/dist/serialization/types/MessageCreateContent.js +5 -2
- package/dist/serialization/types/MessageSchema.d.ts +23 -0
- package/dist/serialization/types/MessageSchema.js +54 -0
- package/dist/serialization/types/OmittedReasoningContent.d.ts +13 -0
- package/dist/serialization/types/{SystemMessageContent.js → OmittedReasoningContent.js} +5 -6
- package/dist/serialization/types/ParameterProperties.d.ts +13 -0
- package/{serialization/types/SystemMessageContent.js → dist/serialization/types/ParameterProperties.js} +5 -6
- package/dist/serialization/types/ParametersSchema.d.ts +15 -0
- package/dist/serialization/types/ParametersSchema.js +46 -0
- package/dist/serialization/types/ReasoningContent.d.ts +15 -0
- package/dist/serialization/types/ReasoningContent.js +46 -0
- package/dist/serialization/types/ReasoningMessage.d.ts +3 -0
- package/dist/serialization/types/ReasoningMessage.js +3 -0
- package/dist/serialization/types/ReasoningMessageSource.d.ts +10 -0
- package/dist/serialization/types/{UpdateSystemMessageContent.js → ReasoningMessageSource.js} +2 -6
- package/dist/serialization/types/RedactedReasoningContent.d.ts +13 -0
- package/{serialization/types/UpdateSystemMessageContent.js → dist/serialization/types/RedactedReasoningContent.js} +5 -6
- package/dist/serialization/types/SystemMessage.d.ts +2 -2
- package/dist/serialization/types/SystemMessage.js +2 -2
- package/dist/serialization/types/TagSchema.d.ts +12 -0
- package/dist/serialization/types/TagSchema.js +43 -0
- package/dist/serialization/types/ToolCallContent.d.ts +15 -0
- package/dist/serialization/types/ToolCallContent.js +46 -0
- package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
- package/dist/serialization/types/ToolCallMessage.js +1 -0
- package/dist/serialization/types/ToolEnvVarSchema.d.ts +17 -0
- package/dist/serialization/types/ToolEnvVarSchema.js +48 -0
- package/dist/serialization/types/ToolJsonSchema.d.ts +17 -0
- package/dist/serialization/types/ToolJsonSchema.js +48 -0
- package/dist/serialization/types/ToolReturnContent.d.ts +15 -0
- package/dist/serialization/types/ToolReturnContent.js +46 -0
- package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
- package/dist/serialization/types/ToolReturnMessage.js +1 -0
- package/dist/serialization/types/ToolRuleSchema.d.ts +13 -0
- package/dist/serialization/types/ToolRuleSchema.js +44 -0
- package/dist/serialization/types/ToolSchema.d.ts +24 -0
- package/dist/serialization/types/ToolSchema.js +55 -0
- package/dist/serialization/types/UpdateSystemMessage.d.ts +1 -2
- package/dist/serialization/types/UpdateSystemMessage.js +1 -2
- package/dist/serialization/types/UserMessage.d.ts +1 -0
- package/dist/serialization/types/UserMessage.js +1 -0
- package/dist/serialization/types/index.d.ts +18 -2
- package/dist/serialization/types/index.js +18 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +38 -18
- package/serialization/types/AgentSchema.d.ts +40 -0
- package/serialization/types/AgentSchema.js +71 -0
- package/serialization/types/AssistantMessage.d.ts +1 -0
- package/serialization/types/AssistantMessage.js +1 -0
- package/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
- package/serialization/types/CoreMemoryBlockSchema.js +53 -0
- package/serialization/types/LettaMessageContentUnion.d.ts +15 -0
- package/serialization/types/LettaMessageContentUnion.js +52 -0
- package/serialization/types/Message.d.ts +2 -2
- package/serialization/types/Message.js +2 -2
- package/serialization/types/MessageContentItem.d.ts +16 -0
- package/serialization/types/MessageContentItem.js +54 -0
- package/serialization/types/MessageCreateContent.d.ts +2 -2
- package/serialization/types/MessageCreateContent.js +5 -2
- package/serialization/types/MessageSchema.d.ts +23 -0
- package/serialization/types/MessageSchema.js +54 -0
- package/serialization/types/OmittedReasoningContent.d.ts +13 -0
- package/serialization/types/OmittedReasoningContent.js +44 -0
- package/serialization/types/ParameterProperties.d.ts +13 -0
- package/serialization/types/ParameterProperties.js +44 -0
- package/serialization/types/ParametersSchema.d.ts +15 -0
- package/serialization/types/ParametersSchema.js +46 -0
- package/serialization/types/ReasoningContent.d.ts +15 -0
- package/serialization/types/ReasoningContent.js +46 -0
- package/serialization/types/ReasoningMessage.d.ts +3 -0
- package/serialization/types/ReasoningMessage.js +3 -0
- package/serialization/types/ReasoningMessageSource.d.ts +10 -0
- package/serialization/types/ReasoningMessageSource.js +41 -0
- package/serialization/types/RedactedReasoningContent.d.ts +13 -0
- package/serialization/types/RedactedReasoningContent.js +44 -0
- package/serialization/types/SystemMessage.d.ts +2 -2
- package/serialization/types/SystemMessage.js +2 -2
- package/serialization/types/TagSchema.d.ts +12 -0
- package/serialization/types/TagSchema.js +43 -0
- package/serialization/types/ToolCallContent.d.ts +15 -0
- package/serialization/types/ToolCallContent.js +46 -0
- package/serialization/types/ToolCallMessage.d.ts +1 -0
- package/serialization/types/ToolCallMessage.js +1 -0
- package/serialization/types/ToolEnvVarSchema.d.ts +17 -0
- package/serialization/types/ToolEnvVarSchema.js +48 -0
- package/serialization/types/ToolJsonSchema.d.ts +17 -0
- package/serialization/types/ToolJsonSchema.js +48 -0
- package/serialization/types/ToolReturnContent.d.ts +15 -0
- package/serialization/types/ToolReturnContent.js +46 -0
- package/serialization/types/ToolReturnMessage.d.ts +1 -0
- package/serialization/types/ToolReturnMessage.js +1 -0
- package/serialization/types/ToolRuleSchema.d.ts +13 -0
- package/serialization/types/ToolRuleSchema.js +44 -0
- package/serialization/types/ToolSchema.d.ts +24 -0
- package/serialization/types/ToolSchema.js +55 -0
- package/serialization/types/UpdateSystemMessage.d.ts +1 -2
- package/serialization/types/UpdateSystemMessage.js +1 -2
- package/serialization/types/UserMessage.d.ts +1 -0
- package/serialization/types/UserMessage.js +1 -0
- package/serialization/types/index.d.ts +18 -2
- package/serialization/types/index.js +18 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/SystemMessageContent.d.ts +0 -8
- package/api/types/UpdateSystemMessageContent.d.ts +0 -8
- package/dist/api/types/SystemMessageContent.d.ts +0 -8
- package/dist/api/types/UpdateSystemMessageContent.d.ts +0 -8
- package/dist/serialization/types/SystemMessageContent.d.ts +0 -11
- package/dist/serialization/types/UpdateSystemMessageContent.d.ts +0 -11
- package/serialization/types/SystemMessageContent.d.ts +0 -11
- package/serialization/types/UpdateSystemMessageContent.d.ts +0 -11
- /package/api/resources/agents/client/requests/{BodyUploadAgentSerialized.js → BodyImportAgentSerialized.js} +0 -0
- /package/api/types/{SystemMessageContent.js → AgentSchema.js} +0 -0
- /package/api/types/{UpdateSystemMessageContent.js → CoreMemoryBlockSchema.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/BodyUploadAgentSerialized.js → api/types/LettaMessageContentUnion.js} +0 -0
- /package/{dist/api/types/SystemMessageContent.js → api/types/MessageContentItem.js} +0 -0
- /package/{dist/api/types/UpdateSystemMessageContent.js → api/types/MessageSchema.js} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
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 { ParameterProperties } from "./ParameterProperties";
|
|
8
|
+
export declare const ParametersSchema: core.serialization.ObjectSchema<serializers.ParametersSchema.Raw, Letta.ParametersSchema>;
|
|
9
|
+
export declare namespace ParametersSchema {
|
|
10
|
+
interface Raw {
|
|
11
|
+
type?: string | null;
|
|
12
|
+
properties: Record<string, ParameterProperties.Raw>;
|
|
13
|
+
required?: string[] | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.ParametersSchema = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const ParameterProperties_1 = require("./ParameterProperties");
|
|
42
|
+
exports.ParametersSchema = core.serialization.object({
|
|
43
|
+
type: core.serialization.string().optional(),
|
|
44
|
+
properties: core.serialization.record(core.serialization.string(), ParameterProperties_1.ParameterProperties),
|
|
45
|
+
required: core.serialization.list(core.serialization.string()).optional(),
|
|
46
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
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 ReasoningContent: core.serialization.ObjectSchema<serializers.ReasoningContent.Raw, Letta.ReasoningContent>;
|
|
8
|
+
export declare namespace ReasoningContent {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: "reasoning";
|
|
11
|
+
is_native: boolean;
|
|
12
|
+
reasoning: string;
|
|
13
|
+
signature?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.ReasoningContent = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ReasoningContent = core.serialization.object({
|
|
42
|
+
type: core.serialization.stringLiteral("reasoning"),
|
|
43
|
+
isNative: core.serialization.property("is_native", core.serialization.boolean()),
|
|
44
|
+
reasoning: core.serialization.string(),
|
|
45
|
+
signature: core.serialization.string().optional(),
|
|
46
|
+
});
|
|
@@ -4,12 +4,15 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { ReasoningMessageSource } from "./ReasoningMessageSource";
|
|
7
8
|
export declare const ReasoningMessage: core.serialization.ObjectSchema<serializers.ReasoningMessage.Raw, Letta.ReasoningMessage>;
|
|
8
9
|
export declare namespace ReasoningMessage {
|
|
9
10
|
interface Raw {
|
|
10
11
|
id: string;
|
|
11
12
|
date: string;
|
|
13
|
+
name?: string | null;
|
|
12
14
|
message_type: "reasoning_message";
|
|
15
|
+
source?: ReasoningMessageSource.Raw | null;
|
|
13
16
|
reasoning: string;
|
|
14
17
|
}
|
|
15
18
|
}
|
|
@@ -38,9 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ReasoningMessage = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
+
const ReasoningMessageSource_1 = require("./ReasoningMessageSource");
|
|
41
42
|
exports.ReasoningMessage = core.serialization.object({
|
|
42
43
|
id: core.serialization.string(),
|
|
43
44
|
date: core.serialization.date(),
|
|
45
|
+
name: core.serialization.string().optional(),
|
|
44
46
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("reasoning_message")),
|
|
47
|
+
source: ReasoningMessageSource_1.ReasoningMessageSource.optional(),
|
|
45
48
|
reasoning: core.serialization.string(),
|
|
46
49
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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 ReasoningMessageSource: core.serialization.Schema<serializers.ReasoningMessageSource.Raw, Letta.ReasoningMessageSource>;
|
|
8
|
+
export declare namespace ReasoningMessageSource {
|
|
9
|
+
type Raw = "reasoner_model" | "non_reasoner_model";
|
|
10
|
+
}
|
package/dist/serialization/types/{UpdateSystemMessageContent.js → ReasoningMessageSource.js}
RENAMED
|
@@ -36,10 +36,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.ReasoningMessageSource = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
|
|
42
|
-
exports.UpdateSystemMessageContent = core.serialization.undiscriminatedUnion([
|
|
43
|
-
core.serialization.list(ComponentsSchemasTextContent_1.ComponentsSchemasTextContent),
|
|
44
|
-
core.serialization.string(),
|
|
45
|
-
]);
|
|
41
|
+
exports.ReasoningMessageSource = core.serialization.enum_(["reasoner_model", "non_reasoner_model"]);
|
|
@@ -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 Letta from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const RedactedReasoningContent: core.serialization.ObjectSchema<serializers.RedactedReasoningContent.Raw, Letta.RedactedReasoningContent>;
|
|
8
|
+
export declare namespace RedactedReasoningContent {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: "redacted_reasoning";
|
|
11
|
+
data: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -36,10 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.RedactedReasoningContent = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
core.serialization.
|
|
44
|
-
|
|
45
|
-
]);
|
|
41
|
+
exports.RedactedReasoningContent = core.serialization.object({
|
|
42
|
+
type: core.serialization.stringLiteral("redacted_reasoning"),
|
|
43
|
+
data: core.serialization.string(),
|
|
44
|
+
});
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
import { SystemMessageContent } from "./SystemMessageContent";
|
|
8
7
|
export declare const SystemMessage: core.serialization.ObjectSchema<serializers.SystemMessage.Raw, Letta.SystemMessage>;
|
|
9
8
|
export declare namespace SystemMessage {
|
|
10
9
|
interface Raw {
|
|
11
10
|
id: string;
|
|
12
11
|
date: string;
|
|
12
|
+
name?: string | null;
|
|
13
13
|
message_type: "system_message";
|
|
14
|
-
content:
|
|
14
|
+
content: string;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -38,10 +38,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.SystemMessage = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
const SystemMessageContent_1 = require("./SystemMessageContent");
|
|
42
41
|
exports.SystemMessage = core.serialization.object({
|
|
43
42
|
id: core.serialization.string(),
|
|
44
43
|
date: core.serialization.date(),
|
|
44
|
+
name: core.serialization.string().optional(),
|
|
45
45
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("system_message")),
|
|
46
|
-
content:
|
|
46
|
+
content: core.serialization.string(),
|
|
47
47
|
});
|
|
@@ -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 TagSchema: core.serialization.ObjectSchema<serializers.TagSchema.Raw, Letta.TagSchema>;
|
|
8
|
+
export declare namespace TagSchema {
|
|
9
|
+
interface Raw {
|
|
10
|
+
tag: 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.TagSchema = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.TagSchema = core.serialization.object({
|
|
42
|
+
tag: core.serialization.string(),
|
|
43
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
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 ToolCallContent: core.serialization.ObjectSchema<serializers.ToolCallContent.Raw, Letta.ToolCallContent>;
|
|
8
|
+
export declare namespace ToolCallContent {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: "tool_return";
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
input: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.ToolCallContent = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ToolCallContent = core.serialization.object({
|
|
42
|
+
type: core.serialization.stringLiteral("tool_return"),
|
|
43
|
+
id: core.serialization.string(),
|
|
44
|
+
name: core.serialization.string(),
|
|
45
|
+
input: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
46
|
+
});
|
|
@@ -42,6 +42,7 @@ const ToolCallMessageToolCall_1 = require("./ToolCallMessageToolCall");
|
|
|
42
42
|
exports.ToolCallMessage = core.serialization.object({
|
|
43
43
|
id: core.serialization.string(),
|
|
44
44
|
date: core.serialization.date(),
|
|
45
|
+
name: core.serialization.string().optional(),
|
|
45
46
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("tool_call_message")),
|
|
46
47
|
toolCall: core.serialization.property("tool_call", ToolCallMessageToolCall_1.ToolCallMessageToolCall),
|
|
47
48
|
});
|
|
@@ -0,0 +1,17 @@
|
|
|
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 ToolEnvVarSchema: core.serialization.ObjectSchema<serializers.ToolEnvVarSchema.Raw, Letta.ToolEnvVarSchema>;
|
|
8
|
+
export declare namespace ToolEnvVarSchema {
|
|
9
|
+
interface Raw {
|
|
10
|
+
created_at: string;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
is_deleted: boolean;
|
|
13
|
+
key: string;
|
|
14
|
+
updated_at: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.ToolEnvVarSchema = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ToolEnvVarSchema = core.serialization.object({
|
|
42
|
+
createdAt: core.serialization.property("created_at", core.serialization.string()),
|
|
43
|
+
description: core.serialization.string().optional(),
|
|
44
|
+
isDeleted: core.serialization.property("is_deleted", core.serialization.boolean()),
|
|
45
|
+
key: core.serialization.string(),
|
|
46
|
+
updatedAt: core.serialization.property("updated_at", core.serialization.string()),
|
|
47
|
+
value: core.serialization.string(),
|
|
48
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { ParametersSchema } from "./ParametersSchema";
|
|
8
|
+
export declare const ToolJsonSchema: core.serialization.ObjectSchema<serializers.ToolJsonSchema.Raw, Letta.ToolJsonSchema>;
|
|
9
|
+
export declare namespace ToolJsonSchema {
|
|
10
|
+
interface Raw {
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
parameters: ParametersSchema.Raw;
|
|
14
|
+
type?: string | null;
|
|
15
|
+
required?: string[] | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.ToolJsonSchema = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const ParametersSchema_1 = require("./ParametersSchema");
|
|
42
|
+
exports.ToolJsonSchema = core.serialization.object({
|
|
43
|
+
name: core.serialization.string(),
|
|
44
|
+
description: core.serialization.string(),
|
|
45
|
+
parameters: ParametersSchema_1.ParametersSchema,
|
|
46
|
+
type: core.serialization.string().optional(),
|
|
47
|
+
required: core.serialization.list(core.serialization.string()).optional(),
|
|
48
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
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 ToolReturnContent: core.serialization.ObjectSchema<serializers.ToolReturnContent.Raw, Letta.ToolReturnContent>;
|
|
8
|
+
export declare namespace ToolReturnContent {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: "tool_return";
|
|
11
|
+
tool_call_id: string;
|
|
12
|
+
content: string;
|
|
13
|
+
is_error: boolean;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.ToolReturnContent = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ToolReturnContent = core.serialization.object({
|
|
42
|
+
type: core.serialization.stringLiteral("tool_return"),
|
|
43
|
+
toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
|
|
44
|
+
content: core.serialization.string(),
|
|
45
|
+
isError: core.serialization.property("is_error", core.serialization.boolean()),
|
|
46
|
+
});
|
|
@@ -42,6 +42,7 @@ const ToolReturnMessageStatus_1 = require("./ToolReturnMessageStatus");
|
|
|
42
42
|
exports.ToolReturnMessage = core.serialization.object({
|
|
43
43
|
id: core.serialization.string(),
|
|
44
44
|
date: core.serialization.date(),
|
|
45
|
+
name: core.serialization.string().optional(),
|
|
45
46
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("tool_return_message")),
|
|
46
47
|
toolReturn: core.serialization.property("tool_return", core.serialization.string()),
|
|
47
48
|
status: ToolReturnMessageStatus_1.ToolReturnMessageStatus,
|
|
@@ -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 Letta from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ToolRuleSchema: core.serialization.ObjectSchema<serializers.ToolRuleSchema.Raw, Letta.ToolRuleSchema>;
|
|
8
|
+
export declare namespace ToolRuleSchema {
|
|
9
|
+
interface Raw {
|
|
10
|
+
tool_name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
}
|
|
13
|
+
}
|