@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/dist/api/types/index.js
CHANGED
|
@@ -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);
|
|
@@ -27,6 +27,7 @@ export declare namespace CreateAgentRequest {
|
|
|
27
27
|
embedding_config?: EmbeddingConfig.Raw | null;
|
|
28
28
|
initial_message_sequence?: MessageCreate.Raw[] | null;
|
|
29
29
|
include_base_tools?: boolean | null;
|
|
30
|
+
include_multi_agent_tools?: boolean | null;
|
|
30
31
|
description?: string | null;
|
|
31
32
|
metadata_?: Record<string, unknown> | null;
|
|
32
33
|
llm?: string | null;
|
|
@@ -59,6 +59,7 @@ exports.CreateAgentRequest = core.serialization.object({
|
|
|
59
59
|
embeddingConfig: core.serialization.property("embedding_config", EmbeddingConfig_1.EmbeddingConfig.optional()),
|
|
60
60
|
initialMessageSequence: core.serialization.property("initial_message_sequence", core.serialization.list(MessageCreate_1.MessageCreate).optional()),
|
|
61
61
|
includeBaseTools: core.serialization.property("include_base_tools", core.serialization.boolean().optional()),
|
|
62
|
+
includeMultiAgentTools: core.serialization.property("include_multi_agent_tools", core.serialization.boolean().optional()),
|
|
62
63
|
description: core.serialization.string().optional(),
|
|
63
64
|
metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
64
65
|
llm: core.serialization.string().optional(),
|
|
@@ -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
|
}
|
|
@@ -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
|
});
|
package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.js
CHANGED
|
@@ -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
|
+
}
|
|
@@ -36,24 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const ToolCallMessage_1 = require("../../../../../types/ToolCallMessage");
|
|
45
|
-
const ToolReturnMessage_1 = require("../../../../../types/ToolReturnMessage");
|
|
46
|
-
const AssistantMessageOutput_1 = require("../../../../../types/AssistantMessageOutput");
|
|
47
|
-
exports.MessagesListResponseItem = core.serialization
|
|
48
|
-
.union(core.serialization.discriminant("messageType", "message_type"), {
|
|
49
|
-
system_message: SystemMessageOutput_1.SystemMessageOutput,
|
|
50
|
-
user_message: UserMessageOutput_1.UserMessageOutput,
|
|
51
|
-
reasoning_message: ReasoningMessage_1.ReasoningMessage,
|
|
52
|
-
tool_call_message: ToolCallMessage_1.ToolCallMessage,
|
|
53
|
-
tool_return_message: ToolReturnMessage_1.ToolReturnMessage,
|
|
54
|
-
assistant_message: AssistantMessageOutput_1.AssistantMessageOutput,
|
|
55
|
-
})
|
|
56
|
-
.transform({
|
|
57
|
-
transform: (value) => value,
|
|
58
|
-
untransform: (value) => value,
|
|
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()),
|
|
59
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
|
+
}
|
|
@@ -36,24 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const ToolReturnMessage_1 = require("../../../../../types/ToolReturnMessage");
|
|
46
|
-
const AssistantMessageOutput_1 = require("../../../../../types/AssistantMessageOutput");
|
|
47
|
-
exports.MessagesListResponseItem = core.serialization
|
|
48
|
-
.union(core.serialization.discriminant("messageType", "message_type"), {
|
|
49
|
-
system_message: SystemMessageOutput_1.SystemMessageOutput,
|
|
50
|
-
user_message: UserMessageOutput_1.UserMessageOutput,
|
|
51
|
-
reasoning_message: ReasoningMessage_1.ReasoningMessage,
|
|
52
|
-
tool_call_message: ToolCallMessage_1.ToolCallMessage,
|
|
53
|
-
tool_return_message: ToolReturnMessage_1.ToolReturnMessage,
|
|
54
|
-
assistant_message: AssistantMessageOutput_1.AssistantMessageOutput,
|
|
55
|
-
})
|
|
56
|
-
.transform({
|
|
57
|
-
transform: (value) => value,
|
|
58
|
-
untransform: (value) => value,
|
|
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()),
|
|
59
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/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.11";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -3018,7 +3018,7 @@ await client.runs.deleteRun("run_id");
|
|
|
3018
3018
|
</dl>
|
|
3019
3019
|
</details>
|
|
3020
3020
|
|
|
3021
|
-
<details><summary><code>client.runs.<a href="/src/api/resources/runs/client/Client.ts">getRunMessages</a>(runId, { ...params }) -> Letta.
|
|
3021
|
+
<details><summary><code>client.runs.<a href="/src/api/resources/runs/client/Client.ts">getRunMessages</a>(runId, { ...params }) -> Letta.LettaMessageUnion[]</code></summary>
|
|
3022
3022
|
<dl>
|
|
3023
3023
|
<dd>
|
|
3024
3024
|
|
|
@@ -3035,17 +3035,15 @@ Get messages associated with a run with filtering options.
|
|
|
3035
3035
|
Args:
|
|
3036
3036
|
run_id: ID of the run
|
|
3037
3037
|
cursor: Cursor for pagination
|
|
3038
|
-
start_date: Filter messages after this date
|
|
3039
|
-
end_date: Filter messages before this date
|
|
3040
3038
|
limit: Maximum number of messages to return
|
|
3041
|
-
query_text: Search text in message content
|
|
3042
3039
|
ascending: Sort order by creation time
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
role: Filter by message role (user/assistant/system/tool)
|
|
3046
|
-
tool_name: Filter by tool call name
|
|
3040
|
+
role: Filter by role (user/assistant/system/tool)
|
|
3041
|
+
return_message_object: Whether to return Message objects or LettaMessage objects
|
|
3047
3042
|
user_id: ID of the user making the request
|
|
3048
3043
|
|
|
3044
|
+
Returns:
|
|
3045
|
+
A list of messages associated with the run. Default is List[LettaMessage].
|
|
3046
|
+
|
|
3049
3047
|
</dd>
|
|
3050
3048
|
</dl>
|
|
3051
3049
|
</dd>
|
|
@@ -4473,7 +4471,7 @@ await client.agents.messages.list("agent_id");
|
|
|
4473
4471
|
</dl>
|
|
4474
4472
|
</details>
|
|
4475
4473
|
|
|
4476
|
-
<details><summary><code>client.agents.messages.<a href="/src/api/resources/agents/resources/messages/client/Client.ts">
|
|
4474
|
+
<details><summary><code>client.agents.messages.<a href="/src/api/resources/agents/resources/messages/client/Client.ts">send</a>(agentId, { ...params }) -> Letta.LettaResponse</code></summary>
|
|
4477
4475
|
<dl>
|
|
4478
4476
|
<dd>
|
|
4479
4477
|
|
|
@@ -4502,7 +4500,7 @@ This endpoint accepts a message from a user and processes it through the agent.
|
|
|
4502
4500
|
<dd>
|
|
4503
4501
|
|
|
4504
4502
|
```typescript
|
|
4505
|
-
await client.agents.messages.
|
|
4503
|
+
await client.agents.messages.send("agent_id", {
|
|
4506
4504
|
messages: [
|
|
4507
4505
|
{
|
|
4508
4506
|
role: "user",
|
|
@@ -4714,7 +4712,7 @@ for await (const item of response) {
|
|
|
4714
4712
|
</dl>
|
|
4715
4713
|
</details>
|
|
4716
4714
|
|
|
4717
|
-
<details><summary><code>client.agents.messages.<a href="/src/api/resources/agents/resources/messages/client/Client.ts">
|
|
4715
|
+
<details><summary><code>client.agents.messages.<a href="/src/api/resources/agents/resources/messages/client/Client.ts">sendAsync</a>(agentId, { ...params }) -> Letta.Run</code></summary>
|
|
4718
4716
|
<dl>
|
|
4719
4717
|
<dd>
|
|
4720
4718
|
|
|
@@ -4726,8 +4724,8 @@ for await (const item of response) {
|
|
|
4726
4724
|
<dl>
|
|
4727
4725
|
<dd>
|
|
4728
4726
|
|
|
4729
|
-
Asynchronously process a user message and return a
|
|
4730
|
-
The actual processing happens in the background, and the status can be checked using the
|
|
4727
|
+
Asynchronously process a user message and return a run object.
|
|
4728
|
+
The actual processing happens in the background, and the status can be checked using the run ID.
|
|
4731
4729
|
|
|
4732
4730
|
</dd>
|
|
4733
4731
|
</dl>
|
|
@@ -4743,7 +4741,7 @@ The actual processing happens in the background, and the status can be checked u
|
|
|
4743
4741
|
<dd>
|
|
4744
4742
|
|
|
4745
4743
|
```typescript
|
|
4746
|
-
await client.agents.messages.
|
|
4744
|
+
await client.agents.messages.sendAsync("agent_id", {
|
|
4747
4745
|
messages: [
|
|
4748
4746
|
{
|
|
4749
4747
|
role: "user",
|
|
@@ -27,6 +27,7 @@ export declare namespace CreateAgentRequest {
|
|
|
27
27
|
embedding_config?: EmbeddingConfig.Raw | null;
|
|
28
28
|
initial_message_sequence?: MessageCreate.Raw[] | null;
|
|
29
29
|
include_base_tools?: boolean | null;
|
|
30
|
+
include_multi_agent_tools?: boolean | null;
|
|
30
31
|
description?: string | null;
|
|
31
32
|
metadata_?: Record<string, unknown> | null;
|
|
32
33
|
llm?: string | null;
|
|
@@ -59,6 +59,7 @@ exports.CreateAgentRequest = core.serialization.object({
|
|
|
59
59
|
embeddingConfig: core.serialization.property("embedding_config", EmbeddingConfig_1.EmbeddingConfig.optional()),
|
|
60
60
|
initialMessageSequence: core.serialization.property("initial_message_sequence", core.serialization.list(MessageCreate_1.MessageCreate).optional()),
|
|
61
61
|
includeBaseTools: core.serialization.property("include_base_tools", core.serialization.boolean().optional()),
|
|
62
|
+
includeMultiAgentTools: core.serialization.property("include_multi_agent_tools", core.serialization.boolean().optional()),
|
|
62
63
|
description: core.serialization.string().optional(),
|
|
63
64
|
metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
64
65
|
llm: core.serialization.string().optional(),
|