@letta-ai/letta-client 0.1.9 → 0.1.11
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 +12 -9
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +5 -1
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -1
- package/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +7 -7
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +6 -6
- package/api/resources/agents/resources/messages/client/Client.js +11 -11
- package/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -6
- package/api/resources/agents/resources/messages/types/MessagesListResponse.d.ts +1 -1
- package/api/resources/agents/resources/messages/types/index.d.ts +0 -1
- package/api/resources/agents/resources/messages/types/index.js +0 -1
- package/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/sources/client/Client.js +1 -1
- 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/AgentsSearchRequestSearchItem.d.ts +4 -1
- package/api/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +7 -0
- package/api/resources/agents/types/index.d.ts +1 -0
- package/api/resources/agents/types/index.js +1 -0
- package/api/resources/blocks/client/Client.js +7 -7
- package/api/resources/health/client/Client.js +1 -1
- 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.d.ts +6 -8
- package/api/resources/runs/client/Client.js +12 -37
- package/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +1 -25
- package/api/resources/sources/client/Client.js +8 -8
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/tag/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +12 -12
- package/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
- package/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
- package/api/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +2 -2
- package/api/types/LettaRequest.d.ts +2 -6
- package/api/types/LettaRequestConfig.d.ts +11 -0
- package/api/types/LettaResponse.d.ts +1 -1
- package/api/types/LlmConfigModelEndpointType.d.ts +2 -1
- package/api/types/LlmConfigModelEndpointType.js +1 -0
- package/api/types/Run.d.ts +2 -0
- package/api/types/ToolType.d.ts +2 -1
- package/api/types/ToolType.js +1 -0
- package/api/types/index.d.ts +2 -1
- package/api/types/index.js +2 -1
- package/dist/api/resources/agents/client/Client.js +12 -9
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +5 -1
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -1
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +7 -7
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +6 -6
- package/dist/api/resources/agents/resources/messages/client/Client.js +11 -11
- package/dist/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -6
- package/dist/api/resources/agents/resources/messages/types/MessagesListResponse.d.ts +1 -1
- package/dist/api/resources/agents/resources/messages/types/index.d.ts +0 -1
- package/dist/api/resources/agents/resources/messages/types/index.js +0 -1
- package/dist/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
- 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/AgentsSearchRequestSearchItem.d.ts +4 -1
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +7 -0
- package/dist/api/resources/agents/types/index.d.ts +1 -0
- package/dist/api/resources/agents/types/index.js +1 -0
- package/dist/api/resources/blocks/client/Client.js +7 -7
- package/dist/api/resources/health/client/Client.js +1 -1
- 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.d.ts +6 -8
- package/dist/api/resources/runs/client/Client.js +12 -37
- package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +1 -25
- package/dist/api/resources/sources/client/Client.js +8 -8
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/tag/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +12 -12
- package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
- package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
- package/dist/api/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +2 -2
- package/dist/api/types/LettaMessageUnion.js +5 -0
- package/dist/api/types/LettaRequest.d.ts +2 -6
- package/dist/api/types/LettaRequestConfig.d.ts +11 -0
- package/dist/api/types/LettaRequestConfig.js +5 -0
- package/dist/api/types/LettaResponse.d.ts +1 -1
- package/dist/api/types/LlmConfigModelEndpointType.d.ts +2 -1
- package/dist/api/types/LlmConfigModelEndpointType.js +1 -0
- package/dist/api/types/Run.d.ts +2 -0
- package/dist/api/types/ToolType.d.ts +2 -1
- package/dist/api/types/ToolType.js +1 -0
- package/dist/api/types/index.d.ts +2 -1
- package/dist/api/types/index.js +2 -1
- 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/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -3
- package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +2 -3
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +2 -2
- package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +0 -1
- package/dist/serialization/resources/agents/resources/messages/types/index.js +0 -1
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -1
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +2 -0
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +13 -0
- package/dist/serialization/resources/agents/{resources/messages/types/MessagesListResponseItem.js → types/AgentsSearchRequestSearchItemTags.js} +5 -20
- package/dist/serialization/resources/agents/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/types/index.js +1 -0
- package/dist/serialization/resources/runs/client/getRunMessages.d.ts +3 -3
- package/dist/serialization/resources/runs/client/getRunMessages.js +2 -2
- package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
- package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
- package/dist/serialization/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +3 -3
- package/{serialization/types/LettaResponseMessagesItem.js → dist/serialization/types/LettaMessageUnion.js} +2 -2
- package/dist/serialization/types/LettaRequest.d.ts +2 -3
- package/dist/serialization/types/LettaRequest.js +2 -3
- package/dist/serialization/types/LettaRequestConfig.d.ts +14 -0
- package/{serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js → dist/serialization/types/LettaRequestConfig.js} +6 -20
- package/dist/serialization/types/LettaResponse.d.ts +2 -2
- package/dist/serialization/types/LettaResponse.js +2 -2
- package/dist/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
- package/dist/serialization/types/LlmConfigModelEndpointType.js +1 -0
- package/dist/serialization/types/Run.d.ts +2 -0
- package/dist/serialization/types/Run.js +2 -0
- package/dist/serialization/types/ToolType.d.ts +1 -1
- package/dist/serialization/types/ToolType.js +1 -0
- package/dist/serialization/types/index.d.ts +2 -1
- package/dist/serialization/types/index.js +2 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +12 -14
- 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/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -3
- package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +2 -3
- package/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
- package/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +2 -2
- package/serialization/resources/agents/resources/messages/types/index.d.ts +0 -1
- package/serialization/resources/agents/resources/messages/types/index.js +0 -1
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -1
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +2 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +13 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.js +44 -0
- package/serialization/resources/agents/types/index.d.ts +1 -0
- package/serialization/resources/agents/types/index.js +1 -0
- package/serialization/resources/runs/client/getRunMessages.d.ts +3 -3
- package/serialization/resources/runs/client/getRunMessages.js +2 -2
- package/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
- package/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
- package/serialization/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +3 -3
- package/{dist/serialization/types/LettaResponseMessagesItem.js → serialization/types/LettaMessageUnion.js} +2 -2
- package/serialization/types/LettaRequest.d.ts +2 -3
- package/serialization/types/LettaRequest.js +2 -3
- package/serialization/types/LettaRequestConfig.d.ts +14 -0
- package/serialization/types/LettaRequestConfig.js +45 -0
- package/serialization/types/LettaResponse.d.ts +2 -2
- package/serialization/types/LettaResponse.js +2 -2
- package/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
- package/serialization/types/LlmConfigModelEndpointType.js +1 -0
- package/serialization/types/Run.d.ts +2 -0
- package/serialization/types/Run.js +2 -0
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +1 -0
- package/serialization/types/index.d.ts +2 -1
- package/serialization/types/index.js +2 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -25
- package/dist/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -25
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -34
- package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -34
- /package/api/resources/agents/{resources/messages/types/MessagesListResponseItem.js → types/AgentsSearchRequestSearchItemTags.js} +0 -0
- /package/api/types/{LettaResponseMessagesItem.js → LettaMessageUnion.js} +0 -0
- /package/{dist/api/resources/agents/resources/messages/types/MessagesListResponseItem.js → api/types/LettaRequestConfig.js} +0 -0
- /package/dist/api/{types/LettaResponseMessagesItem.js → resources/agents/types/AgentsSearchRequestSearchItemTags.js} +0 -0
package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts
CHANGED
|
@@ -5,13 +5,12 @@ import * as serializers from "../../../../../../index";
|
|
|
5
5
|
import * as Letta from "../../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../../core";
|
|
7
7
|
import { MessageCreate } from "../../../../../../types/MessageCreate";
|
|
8
|
+
import { LettaRequestConfig } from "../../../../../../types/LettaRequestConfig";
|
|
8
9
|
export declare const LettaStreamingRequest: core.serialization.Schema<serializers.agents.LettaStreamingRequest.Raw, Letta.agents.LettaStreamingRequest>;
|
|
9
10
|
export declare namespace LettaStreamingRequest {
|
|
10
11
|
interface Raw {
|
|
11
12
|
messages: MessageCreate.Raw[];
|
|
12
|
-
|
|
13
|
-
assistant_message_tool_name?: string | null;
|
|
14
|
-
assistant_message_tool_kwarg?: string | null;
|
|
13
|
+
config?: LettaRequestConfig.Raw | null;
|
|
15
14
|
stream_tokens?: boolean | null;
|
|
16
15
|
}
|
|
17
16
|
}
|
package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js
CHANGED
|
@@ -39,10 +39,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.LettaStreamingRequest = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../../../core"));
|
|
41
41
|
const MessageCreate_1 = require("../../../../../../types/MessageCreate");
|
|
42
|
+
const LettaRequestConfig_1 = require("../../../../../../types/LettaRequestConfig");
|
|
42
43
|
exports.LettaStreamingRequest = core.serialization.object({
|
|
43
44
|
messages: core.serialization.list(MessageCreate_1.MessageCreate),
|
|
44
|
-
|
|
45
|
-
assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
|
|
46
|
-
assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
|
|
45
|
+
config: LettaRequestConfig_1.LettaRequestConfig.optional(),
|
|
47
46
|
streamTokens: core.serialization.property("stream_tokens", core.serialization.boolean().optional()),
|
|
48
47
|
});
|
|
@@ -5,8 +5,8 @@ import * as serializers from "../../../../../index";
|
|
|
5
5
|
import * as Letta from "../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
import { LettaSchemasMessageMessage } from "../../../../../types/LettaSchemasMessageMessage";
|
|
8
|
-
import {
|
|
8
|
+
import { LettaMessageUnion } from "../../../../../types/LettaMessageUnion";
|
|
9
9
|
export declare const MessagesListResponse: core.serialization.Schema<serializers.agents.MessagesListResponse.Raw, Letta.agents.MessagesListResponse>;
|
|
10
10
|
export declare namespace MessagesListResponse {
|
|
11
|
-
type Raw = LettaSchemasMessageMessage.Raw[] |
|
|
11
|
+
type Raw = LettaSchemasMessageMessage.Raw[] | LettaMessageUnion.Raw[];
|
|
12
12
|
}
|
|
@@ -39,8 +39,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.MessagesListResponse = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../../core"));
|
|
41
41
|
const LettaSchemasMessageMessage_1 = require("../../../../../types/LettaSchemasMessageMessage");
|
|
42
|
-
const
|
|
42
|
+
const LettaMessageUnion_1 = require("../../../../../types/LettaMessageUnion");
|
|
43
43
|
exports.MessagesListResponse = core.serialization.undiscriminatedUnion([
|
|
44
44
|
core.serialization.list(LettaSchemasMessageMessage_1.LettaSchemasMessageMessage),
|
|
45
|
-
core.serialization.list(
|
|
45
|
+
core.serialization.list(LettaMessageUnion_1.LettaMessageUnion),
|
|
46
46
|
]);
|
|
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./MessagesListResponseItem"), exports);
|
|
18
17
|
__exportStar(require("./MessagesListResponse"), exports);
|
|
19
18
|
__exportStar(require("./LettaStreamingResponse"), exports);
|
|
@@ -6,16 +6,20 @@ import * as Letta from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { AgentsSearchRequestSearchItemVersion } from "./AgentsSearchRequestSearchItemVersion";
|
|
8
8
|
import { AgentsSearchRequestSearchItemName } from "./AgentsSearchRequestSearchItemName";
|
|
9
|
+
import { AgentsSearchRequestSearchItemTags } from "./AgentsSearchRequestSearchItemTags";
|
|
9
10
|
import { AgentsSearchRequestSearchItemOrderBy } from "./AgentsSearchRequestSearchItemOrderBy";
|
|
10
11
|
export declare const AgentsSearchRequestSearchItem: core.serialization.Schema<serializers.AgentsSearchRequestSearchItem.Raw, Letta.AgentsSearchRequestSearchItem>;
|
|
11
12
|
export declare namespace AgentsSearchRequestSearchItem {
|
|
12
|
-
type Raw = AgentsSearchRequestSearchItem.Version | AgentsSearchRequestSearchItem.Name | AgentsSearchRequestSearchItem.OrderBy;
|
|
13
|
+
type Raw = AgentsSearchRequestSearchItem.Version | AgentsSearchRequestSearchItem.Name | AgentsSearchRequestSearchItem.Tags | AgentsSearchRequestSearchItem.OrderBy;
|
|
13
14
|
interface Version extends AgentsSearchRequestSearchItemVersion.Raw {
|
|
14
15
|
field: "version";
|
|
15
16
|
}
|
|
16
17
|
interface Name extends AgentsSearchRequestSearchItemName.Raw {
|
|
17
18
|
field: "name";
|
|
18
19
|
}
|
|
20
|
+
interface Tags extends AgentsSearchRequestSearchItemTags.Raw {
|
|
21
|
+
field: "tags";
|
|
22
|
+
}
|
|
19
23
|
interface OrderBy extends AgentsSearchRequestSearchItemOrderBy.Raw {
|
|
20
24
|
field: "order_by";
|
|
21
25
|
}
|
|
@@ -40,11 +40,13 @@ exports.AgentsSearchRequestSearchItem = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const AgentsSearchRequestSearchItemVersion_1 = require("./AgentsSearchRequestSearchItemVersion");
|
|
42
42
|
const AgentsSearchRequestSearchItemName_1 = require("./AgentsSearchRequestSearchItemName");
|
|
43
|
+
const AgentsSearchRequestSearchItemTags_1 = require("./AgentsSearchRequestSearchItemTags");
|
|
43
44
|
const AgentsSearchRequestSearchItemOrderBy_1 = require("./AgentsSearchRequestSearchItemOrderBy");
|
|
44
45
|
exports.AgentsSearchRequestSearchItem = core.serialization
|
|
45
46
|
.union("field", {
|
|
46
47
|
version: AgentsSearchRequestSearchItemVersion_1.AgentsSearchRequestSearchItemVersion,
|
|
47
48
|
name: AgentsSearchRequestSearchItemName_1.AgentsSearchRequestSearchItemName,
|
|
49
|
+
tags: AgentsSearchRequestSearchItemTags_1.AgentsSearchRequestSearchItemTags,
|
|
48
50
|
order_by: AgentsSearchRequestSearchItemOrderBy_1.AgentsSearchRequestSearchItemOrderBy,
|
|
49
51
|
})
|
|
50
52
|
.transform({
|
|
@@ -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 AgentsSearchRequestSearchItemTags: core.serialization.ObjectSchema<serializers.AgentsSearchRequestSearchItemTags.Raw, Letta.AgentsSearchRequestSearchItemTags>;
|
|
8
|
+
export declare namespace AgentsSearchRequestSearchItemTags {
|
|
9
|
+
interface Raw {
|
|
10
|
+
operator: "contains";
|
|
11
|
+
value: string[];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.AgentsSearchRequestSearchItemTags = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.AgentsSearchRequestSearchItemTags = core.serialization.object({
|
|
42
|
+
operator: core.serialization.stringLiteral("contains"),
|
|
43
|
+
value: core.serialization.list(core.serialization.string()),
|
|
44
|
+
});
|
|
@@ -3,6 +3,7 @@ export * from "./UpdateAgentToolRulesItem";
|
|
|
3
3
|
export * from "./AgentsSearchRequestSearchItemVersion";
|
|
4
4
|
export * from "./AgentsSearchRequestSearchItemNameOperator";
|
|
5
5
|
export * from "./AgentsSearchRequestSearchItemName";
|
|
6
|
+
export * from "./AgentsSearchRequestSearchItemTags";
|
|
6
7
|
export * from "./AgentsSearchRequestSearchItemOrderByValue";
|
|
7
8
|
export * from "./AgentsSearchRequestSearchItemOrderByDirection";
|
|
8
9
|
export * from "./AgentsSearchRequestSearchItemOrderBy";
|
|
@@ -19,6 +19,7 @@ __exportStar(require("./UpdateAgentToolRulesItem"), exports);
|
|
|
19
19
|
__exportStar(require("./AgentsSearchRequestSearchItemVersion"), exports);
|
|
20
20
|
__exportStar(require("./AgentsSearchRequestSearchItemNameOperator"), exports);
|
|
21
21
|
__exportStar(require("./AgentsSearchRequestSearchItemName"), exports);
|
|
22
|
+
__exportStar(require("./AgentsSearchRequestSearchItemTags"), exports);
|
|
22
23
|
__exportStar(require("./AgentsSearchRequestSearchItemOrderByValue"), exports);
|
|
23
24
|
__exportStar(require("./AgentsSearchRequestSearchItemOrderByDirection"), exports);
|
|
24
25
|
__exportStar(require("./AgentsSearchRequestSearchItemOrderBy"), exports);
|
|
@@ -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
|
-
import {
|
|
8
|
-
export declare const Response: core.serialization.Schema<serializers.runs.getRunMessages.Response.Raw, Letta.
|
|
7
|
+
import { LettaMessageUnion } from "../../../types/LettaMessageUnion";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.runs.getRunMessages.Response.Raw, Letta.LettaMessageUnion[]>;
|
|
9
9
|
export declare namespace Response {
|
|
10
|
-
type Raw =
|
|
10
|
+
type Raw = LettaMessageUnion.Raw[];
|
|
11
11
|
}
|
|
@@ -38,5 +38,5 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Response = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
const
|
|
42
|
-
exports.Response = core.serialization.list(
|
|
41
|
+
const LettaMessageUnion_1 = require("../../../types/LettaMessageUnion");
|
|
42
|
+
exports.Response = core.serialization.list(LettaMessageUnion_1.LettaMessageUnion);
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const EmbeddingConfigEmbeddingEndpointType: core.serialization.Schema<serializers.EmbeddingConfigEmbeddingEndpointType.Raw, Letta.EmbeddingConfigEmbeddingEndpointType>;
|
|
8
8
|
export declare namespace EmbeddingConfigEmbeddingEndpointType {
|
|
9
|
-
type Raw = "openai" | "anthropic" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together";
|
|
9
|
+
type Raw = "openai" | "anthropic" | "bedrock" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together";
|
|
10
10
|
}
|
|
@@ -10,9 +10,9 @@ import { ReasoningMessage } from "./ReasoningMessage";
|
|
|
10
10
|
import { ToolCallMessage } from "./ToolCallMessage";
|
|
11
11
|
import { ToolReturnMessage } from "./ToolReturnMessage";
|
|
12
12
|
import { AssistantMessageOutput } from "./AssistantMessageOutput";
|
|
13
|
-
export declare const
|
|
14
|
-
export declare namespace
|
|
15
|
-
type Raw =
|
|
13
|
+
export declare const LettaMessageUnion: core.serialization.Schema<serializers.LettaMessageUnion.Raw, Letta.LettaMessageUnion>;
|
|
14
|
+
export declare namespace LettaMessageUnion {
|
|
15
|
+
type Raw = LettaMessageUnion.SystemMessage | LettaMessageUnion.UserMessage | LettaMessageUnion.ReasoningMessage | LettaMessageUnion.ToolCallMessage | LettaMessageUnion.ToolReturnMessage | LettaMessageUnion.AssistantMessage;
|
|
16
16
|
interface SystemMessage extends SystemMessageOutput.Raw {
|
|
17
17
|
message_type: "system_message";
|
|
18
18
|
}
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.LettaMessageUnion = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const SystemMessageOutput_1 = require("./SystemMessageOutput");
|
|
42
42
|
const UserMessageOutput_1 = require("./UserMessageOutput");
|
|
@@ -44,7 +44,7 @@ const ReasoningMessage_1 = require("./ReasoningMessage");
|
|
|
44
44
|
const ToolCallMessage_1 = require("./ToolCallMessage");
|
|
45
45
|
const ToolReturnMessage_1 = require("./ToolReturnMessage");
|
|
46
46
|
const AssistantMessageOutput_1 = require("./AssistantMessageOutput");
|
|
47
|
-
exports.
|
|
47
|
+
exports.LettaMessageUnion = core.serialization
|
|
48
48
|
.union(core.serialization.discriminant("messageType", "message_type"), {
|
|
49
49
|
system_message: SystemMessageOutput_1.SystemMessageOutput,
|
|
50
50
|
user_message: UserMessageOutput_1.UserMessageOutput,
|
|
@@ -5,12 +5,11 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { MessageCreate } from "./MessageCreate";
|
|
8
|
+
import { LettaRequestConfig } from "./LettaRequestConfig";
|
|
8
9
|
export declare const LettaRequest: core.serialization.ObjectSchema<serializers.LettaRequest.Raw, Letta.LettaRequest>;
|
|
9
10
|
export declare namespace LettaRequest {
|
|
10
11
|
interface Raw {
|
|
11
12
|
messages: MessageCreate.Raw[];
|
|
12
|
-
|
|
13
|
-
assistant_message_tool_name?: string | null;
|
|
14
|
-
assistant_message_tool_kwarg?: string | null;
|
|
13
|
+
config?: LettaRequestConfig.Raw | null;
|
|
15
14
|
}
|
|
16
15
|
}
|
|
@@ -39,9 +39,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.LettaRequest = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const MessageCreate_1 = require("./MessageCreate");
|
|
42
|
+
const LettaRequestConfig_1 = require("./LettaRequestConfig");
|
|
42
43
|
exports.LettaRequest = core.serialization.object({
|
|
43
44
|
messages: core.serialization.list(MessageCreate_1.MessageCreate),
|
|
44
|
-
|
|
45
|
-
assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
|
|
46
|
-
assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
|
|
45
|
+
config: LettaRequestConfig_1.LettaRequestConfig.optional(),
|
|
47
46
|
});
|
|
@@ -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 LettaRequestConfig: core.serialization.ObjectSchema<serializers.LettaRequestConfig.Raw, Letta.LettaRequestConfig>;
|
|
8
|
+
export declare namespace LettaRequestConfig {
|
|
9
|
+
interface Raw {
|
|
10
|
+
use_assistant_message?: boolean | null;
|
|
11
|
+
assistant_message_tool_name?: string | null;
|
|
12
|
+
assistant_message_tool_kwarg?: 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.LettaRequestConfig = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.LettaRequestConfig = core.serialization.object({
|
|
42
|
+
useAssistantMessage: core.serialization.property("use_assistant_message", core.serialization.boolean().optional()),
|
|
43
|
+
assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
|
|
44
|
+
assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
|
|
45
|
+
});
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
import {
|
|
7
|
+
import { LettaMessageUnion } from "./LettaMessageUnion";
|
|
8
8
|
import { LettaUsageStatistics } from "./LettaUsageStatistics";
|
|
9
9
|
export declare const LettaResponse: core.serialization.ObjectSchema<serializers.LettaResponse.Raw, Letta.LettaResponse>;
|
|
10
10
|
export declare namespace LettaResponse {
|
|
11
11
|
interface Raw {
|
|
12
|
-
messages:
|
|
12
|
+
messages: LettaMessageUnion.Raw[];
|
|
13
13
|
usage: LettaUsageStatistics.Raw;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -38,9 +38,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.LettaResponse = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
const
|
|
41
|
+
const LettaMessageUnion_1 = require("./LettaMessageUnion");
|
|
42
42
|
const LettaUsageStatistics_1 = require("./LettaUsageStatistics");
|
|
43
43
|
exports.LettaResponse = core.serialization.object({
|
|
44
|
-
messages: core.serialization.list(
|
|
44
|
+
messages: core.serialization.list(LettaMessageUnion_1.LettaMessageUnion),
|
|
45
45
|
usage: LettaUsageStatistics_1.LettaUsageStatistics,
|
|
46
46
|
});
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const LlmConfigModelEndpointType: core.serialization.Schema<serializers.LlmConfigModelEndpointType.Raw, Letta.LlmConfigModelEndpointType>;
|
|
8
8
|
export declare namespace LlmConfigModelEndpointType {
|
|
9
|
-
type Raw = "openai" | "anthropic" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together";
|
|
9
|
+
type Raw = "openai" | "anthropic" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together" | "bedrock";
|
|
10
10
|
}
|
|
@@ -6,6 +6,7 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { JobStatus } from "./JobStatus";
|
|
8
8
|
import { JobType } from "./JobType";
|
|
9
|
+
import { LettaRequestConfig } from "./LettaRequestConfig";
|
|
9
10
|
export declare const Run: core.serialization.ObjectSchema<serializers.Run.Raw, Letta.Run>;
|
|
10
11
|
export declare namespace Run {
|
|
11
12
|
interface Raw {
|
|
@@ -18,5 +19,6 @@ export declare namespace Run {
|
|
|
18
19
|
metadata_?: Record<string, unknown> | null;
|
|
19
20
|
job_type?: JobType.Raw | null;
|
|
20
21
|
id?: string | null;
|
|
22
|
+
request_config?: LettaRequestConfig.Raw | null;
|
|
21
23
|
}
|
|
22
24
|
}
|
|
@@ -40,6 +40,7 @@ exports.Run = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const JobStatus_1 = require("./JobStatus");
|
|
42
42
|
const JobType_1 = require("./JobType");
|
|
43
|
+
const LettaRequestConfig_1 = require("./LettaRequestConfig");
|
|
43
44
|
exports.Run = core.serialization.object({
|
|
44
45
|
createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
|
|
45
46
|
lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
|
|
@@ -50,4 +51,5 @@ exports.Run = core.serialization.object({
|
|
|
50
51
|
metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
51
52
|
jobType: core.serialization.property("job_type", JobType_1.JobType.optional()),
|
|
52
53
|
id: core.serialization.string().optional(),
|
|
54
|
+
requestConfig: core.serialization.property("request_config", LettaRequestConfig_1.LettaRequestConfig.optional()),
|
|
53
55
|
});
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ToolType: core.serialization.Schema<serializers.ToolType.Raw, Letta.ToolType>;
|
|
8
8
|
export declare namespace ToolType {
|
|
9
|
-
type Raw = "custom" | "letta_core" | "letta_memory_core";
|
|
9
|
+
type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core";
|
|
10
10
|
}
|
|
@@ -52,7 +52,7 @@ export * from "./JobType";
|
|
|
52
52
|
export * from "./LlmConfigModelEndpointType";
|
|
53
53
|
export * from "./LlmConfig";
|
|
54
54
|
export * from "./LettaRequest";
|
|
55
|
-
export * from "./
|
|
55
|
+
export * from "./LettaRequestConfig";
|
|
56
56
|
export * from "./LettaResponse";
|
|
57
57
|
export * from "./LettaUsageStatistics";
|
|
58
58
|
export * from "./LocalSandboxConfig";
|
|
@@ -116,3 +116,4 @@ export * from "./LettaSchemasOpenaiChatCompletionsToolCallInput";
|
|
|
116
116
|
export * from "./LettaSchemasOpenaiChatCompletionsToolCallOutput";
|
|
117
117
|
export * from "./LettaSchemasOpenaiChatCompletionsToolCallFunction";
|
|
118
118
|
export * from "./LettaSchemasToolTool";
|
|
119
|
+
export * from "./LettaMessageUnion";
|
|
@@ -68,7 +68,7 @@ __exportStar(require("./JobType"), exports);
|
|
|
68
68
|
__exportStar(require("./LlmConfigModelEndpointType"), exports);
|
|
69
69
|
__exportStar(require("./LlmConfig"), exports);
|
|
70
70
|
__exportStar(require("./LettaRequest"), exports);
|
|
71
|
-
__exportStar(require("./
|
|
71
|
+
__exportStar(require("./LettaRequestConfig"), exports);
|
|
72
72
|
__exportStar(require("./LettaResponse"), exports);
|
|
73
73
|
__exportStar(require("./LettaUsageStatistics"), exports);
|
|
74
74
|
__exportStar(require("./LocalSandboxConfig"), exports);
|
|
@@ -132,3 +132,4 @@ __exportStar(require("./LettaSchemasOpenaiChatCompletionsToolCallInput"), export
|
|
|
132
132
|
__exportStar(require("./LettaSchemasOpenaiChatCompletionsToolCallOutput"), exports);
|
|
133
133
|
__exportStar(require("./LettaSchemasOpenaiChatCompletionsToolCallFunction"), exports);
|
|
134
134
|
__exportStar(require("./LettaSchemasToolTool"), exports);
|
|
135
|
+
__exportStar(require("./LettaMessageUnion"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.11";
|
package/version.js
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Letta from "../../../../../index";
|
|
5
|
-
export type MessagesListResponseItem = Letta.agents.MessagesListResponseItem.SystemMessage | Letta.agents.MessagesListResponseItem.UserMessage | Letta.agents.MessagesListResponseItem.ReasoningMessage | Letta.agents.MessagesListResponseItem.ToolCallMessage | Letta.agents.MessagesListResponseItem.ToolReturnMessage | Letta.agents.MessagesListResponseItem.AssistantMessage;
|
|
6
|
-
export declare namespace MessagesListResponseItem {
|
|
7
|
-
interface SystemMessage extends Letta.SystemMessageOutput {
|
|
8
|
-
messageType: "system_message";
|
|
9
|
-
}
|
|
10
|
-
interface UserMessage extends Letta.UserMessageOutput {
|
|
11
|
-
messageType: "user_message";
|
|
12
|
-
}
|
|
13
|
-
interface ReasoningMessage extends Letta.ReasoningMessage {
|
|
14
|
-
messageType: "reasoning_message";
|
|
15
|
-
}
|
|
16
|
-
interface ToolCallMessage extends Letta.ToolCallMessage {
|
|
17
|
-
messageType: "tool_call_message";
|
|
18
|
-
}
|
|
19
|
-
interface ToolReturnMessage extends Letta.ToolReturnMessage {
|
|
20
|
-
messageType: "tool_return_message";
|
|
21
|
-
}
|
|
22
|
-
interface AssistantMessage extends Letta.AssistantMessageOutput {
|
|
23
|
-
messageType: "assistant_message";
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Letta from "../../../../../index";
|
|
5
|
-
export type MessagesListResponseItem = Letta.agents.MessagesListResponseItem.SystemMessage | Letta.agents.MessagesListResponseItem.UserMessage | Letta.agents.MessagesListResponseItem.ReasoningMessage | Letta.agents.MessagesListResponseItem.ToolCallMessage | Letta.agents.MessagesListResponseItem.ToolReturnMessage | Letta.agents.MessagesListResponseItem.AssistantMessage;
|
|
6
|
-
export declare namespace MessagesListResponseItem {
|
|
7
|
-
interface SystemMessage extends Letta.SystemMessageOutput {
|
|
8
|
-
messageType: "system_message";
|
|
9
|
-
}
|
|
10
|
-
interface UserMessage extends Letta.UserMessageOutput {
|
|
11
|
-
messageType: "user_message";
|
|
12
|
-
}
|
|
13
|
-
interface ReasoningMessage extends Letta.ReasoningMessage {
|
|
14
|
-
messageType: "reasoning_message";
|
|
15
|
-
}
|
|
16
|
-
interface ToolCallMessage extends Letta.ToolCallMessage {
|
|
17
|
-
messageType: "tool_call_message";
|
|
18
|
-
}
|
|
19
|
-
interface ToolReturnMessage extends Letta.ToolReturnMessage {
|
|
20
|
-
messageType: "tool_return_message";
|
|
21
|
-
}
|
|
22
|
-
interface AssistantMessage extends Letta.AssistantMessageOutput {
|
|
23
|
-
messageType: "assistant_message";
|
|
24
|
-
}
|
|
25
|
-
}
|
package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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 { SystemMessageOutput } from "../../../../../types/SystemMessageOutput";
|
|
8
|
-
import { UserMessageOutput } from "../../../../../types/UserMessageOutput";
|
|
9
|
-
import { ReasoningMessage } from "../../../../../types/ReasoningMessage";
|
|
10
|
-
import { ToolCallMessage } from "../../../../../types/ToolCallMessage";
|
|
11
|
-
import { ToolReturnMessage } from "../../../../../types/ToolReturnMessage";
|
|
12
|
-
import { AssistantMessageOutput } from "../../../../../types/AssistantMessageOutput";
|
|
13
|
-
export declare const MessagesListResponseItem: core.serialization.Schema<serializers.agents.MessagesListResponseItem.Raw, Letta.agents.MessagesListResponseItem>;
|
|
14
|
-
export declare namespace MessagesListResponseItem {
|
|
15
|
-
type Raw = MessagesListResponseItem.SystemMessage | MessagesListResponseItem.UserMessage | MessagesListResponseItem.ReasoningMessage | MessagesListResponseItem.ToolCallMessage | MessagesListResponseItem.ToolReturnMessage | MessagesListResponseItem.AssistantMessage;
|
|
16
|
-
interface SystemMessage extends SystemMessageOutput.Raw {
|
|
17
|
-
message_type: "system_message";
|
|
18
|
-
}
|
|
19
|
-
interface UserMessage extends UserMessageOutput.Raw {
|
|
20
|
-
message_type: "user_message";
|
|
21
|
-
}
|
|
22
|
-
interface ReasoningMessage extends ReasoningMessage.Raw {
|
|
23
|
-
message_type: "reasoning_message";
|
|
24
|
-
}
|
|
25
|
-
interface ToolCallMessage extends ToolCallMessage.Raw {
|
|
26
|
-
message_type: "tool_call_message";
|
|
27
|
-
}
|
|
28
|
-
interface ToolReturnMessage extends ToolReturnMessage.Raw {
|
|
29
|
-
message_type: "tool_return_message";
|
|
30
|
-
}
|
|
31
|
-
interface AssistantMessage extends AssistantMessageOutput.Raw {
|
|
32
|
-
message_type: "assistant_message";
|
|
33
|
-
}
|
|
34
|
-
}
|
package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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 { SystemMessageOutput } from "../../../../../types/SystemMessageOutput";
|
|
8
|
-
import { UserMessageOutput } from "../../../../../types/UserMessageOutput";
|
|
9
|
-
import { ReasoningMessage } from "../../../../../types/ReasoningMessage";
|
|
10
|
-
import { ToolCallMessage } from "../../../../../types/ToolCallMessage";
|
|
11
|
-
import { ToolReturnMessage } from "../../../../../types/ToolReturnMessage";
|
|
12
|
-
import { AssistantMessageOutput } from "../../../../../types/AssistantMessageOutput";
|
|
13
|
-
export declare const MessagesListResponseItem: core.serialization.Schema<serializers.agents.MessagesListResponseItem.Raw, Letta.agents.MessagesListResponseItem>;
|
|
14
|
-
export declare namespace MessagesListResponseItem {
|
|
15
|
-
type Raw = MessagesListResponseItem.SystemMessage | MessagesListResponseItem.UserMessage | MessagesListResponseItem.ReasoningMessage | MessagesListResponseItem.ToolCallMessage | MessagesListResponseItem.ToolReturnMessage | MessagesListResponseItem.AssistantMessage;
|
|
16
|
-
interface SystemMessage extends SystemMessageOutput.Raw {
|
|
17
|
-
message_type: "system_message";
|
|
18
|
-
}
|
|
19
|
-
interface UserMessage extends UserMessageOutput.Raw {
|
|
20
|
-
message_type: "user_message";
|
|
21
|
-
}
|
|
22
|
-
interface ReasoningMessage extends ReasoningMessage.Raw {
|
|
23
|
-
message_type: "reasoning_message";
|
|
24
|
-
}
|
|
25
|
-
interface ToolCallMessage extends ToolCallMessage.Raw {
|
|
26
|
-
message_type: "tool_call_message";
|
|
27
|
-
}
|
|
28
|
-
interface ToolReturnMessage extends ToolReturnMessage.Raw {
|
|
29
|
-
message_type: "tool_return_message";
|
|
30
|
-
}
|
|
31
|
-
interface AssistantMessage extends AssistantMessageOutput.Raw {
|
|
32
|
-
message_type: "assistant_message";
|
|
33
|
-
}
|
|
34
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|