@letta-ai/letta-client 1.0.0-alpha.19 → 1.0.0-alpha.20
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/CHANGELOG.md +14 -0
- package/README.md +15 -56
- package/client.d.mts +16 -16
- package/client.d.mts.map +1 -1
- package/client.d.ts +16 -16
- package/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +139 -129
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +139 -129
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +6 -6
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +6 -6
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/blocks.d.mts +21 -21
- package/resources/agents/blocks.d.mts.map +1 -1
- package/resources/agents/blocks.d.ts +21 -21
- package/resources/agents/blocks.d.ts.map +1 -1
- package/resources/agents/blocks.js +10 -10
- package/resources/agents/blocks.js.map +1 -1
- package/resources/agents/blocks.mjs +10 -10
- package/resources/agents/blocks.mjs.map +1 -1
- package/resources/agents/index.d.mts +3 -3
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +3 -3
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/messages.d.mts +136 -136
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +136 -136
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/agents/messages.js +21 -21
- package/resources/agents/messages.js.map +1 -1
- package/resources/agents/messages.mjs +21 -21
- package/resources/agents/messages.mjs.map +1 -1
- package/resources/archives/archives.d.mts +16 -12
- package/resources/archives/archives.d.mts.map +1 -1
- package/resources/archives/archives.d.ts +16 -12
- package/resources/archives/archives.d.ts.map +1 -1
- package/resources/archives/archives.js +6 -6
- package/resources/archives/archives.js.map +1 -1
- package/resources/archives/archives.mjs +6 -6
- package/resources/archives/archives.mjs.map +1 -1
- package/resources/archives/index.d.mts +1 -1
- package/resources/archives/index.d.mts.map +1 -1
- package/resources/archives/index.d.ts +1 -1
- package/resources/archives/index.d.ts.map +1 -1
- package/resources/blocks/blocks.d.mts +61 -61
- package/resources/blocks/blocks.d.mts.map +1 -1
- package/resources/blocks/blocks.d.ts +61 -61
- package/resources/blocks/blocks.d.ts.map +1 -1
- package/resources/blocks/blocks.js +6 -6
- package/resources/blocks/blocks.js.map +1 -1
- package/resources/blocks/blocks.mjs +6 -6
- package/resources/blocks/blocks.mjs.map +1 -1
- package/resources/blocks/index.d.mts +1 -1
- package/resources/blocks/index.d.mts.map +1 -1
- package/resources/blocks/index.d.ts +1 -1
- package/resources/blocks/index.d.ts.map +1 -1
- package/resources/folders/folders.d.mts +12 -12
- package/resources/folders/folders.d.mts.map +1 -1
- package/resources/folders/folders.d.ts +12 -12
- package/resources/folders/folders.d.ts.map +1 -1
- package/resources/folders/folders.js +6 -6
- package/resources/folders/folders.js.map +1 -1
- package/resources/folders/folders.mjs +6 -6
- package/resources/folders/folders.mjs.map +1 -1
- package/resources/folders/index.d.mts +1 -1
- package/resources/folders/index.d.mts.map +1 -1
- package/resources/folders/index.d.ts +1 -1
- package/resources/folders/index.d.ts.map +1 -1
- package/resources/groups/groups.d.mts +20 -20
- package/resources/groups/groups.d.mts.map +1 -1
- package/resources/groups/groups.d.ts +20 -20
- package/resources/groups/groups.d.ts.map +1 -1
- package/resources/groups/groups.js +6 -6
- package/resources/groups/groups.js.map +1 -1
- package/resources/groups/groups.mjs +6 -6
- package/resources/groups/groups.mjs.map +1 -1
- package/resources/groups/index.d.mts +2 -2
- package/resources/groups/index.d.mts.map +1 -1
- package/resources/groups/index.d.ts +2 -2
- package/resources/groups/index.d.ts.map +1 -1
- package/resources/groups/messages.d.mts +84 -84
- package/resources/groups/messages.d.mts.map +1 -1
- package/resources/groups/messages.d.ts +84 -84
- package/resources/groups/messages.d.ts.map +1 -1
- package/resources/groups/messages.js +15 -15
- package/resources/groups/messages.js.map +1 -1
- package/resources/groups/messages.mjs +15 -15
- package/resources/groups/messages.mjs.map +1 -1
- package/resources/identities/identities.d.mts +15 -15
- package/resources/identities/identities.d.mts.map +1 -1
- package/resources/identities/identities.d.ts +15 -15
- package/resources/identities/identities.d.ts.map +1 -1
- package/resources/identities/identities.js +6 -6
- package/resources/identities/identities.js.map +1 -1
- package/resources/identities/identities.mjs +6 -6
- package/resources/identities/identities.mjs.map +1 -1
- package/resources/identities/index.d.mts +1 -1
- package/resources/identities/index.d.mts.map +1 -1
- package/resources/identities/index.d.ts +1 -1
- package/resources/identities/index.d.ts.map +1 -1
- package/resources/index.d.mts +8 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/mcp-servers/index.d.mts +1 -1
- package/resources/mcp-servers/index.d.mts.map +1 -1
- package/resources/mcp-servers/index.d.ts +1 -1
- package/resources/mcp-servers/index.d.ts.map +1 -1
- package/resources/mcp-servers/mcp-servers.d.mts +10 -10
- package/resources/mcp-servers/mcp-servers.d.mts.map +1 -1
- package/resources/mcp-servers/mcp-servers.d.ts +10 -10
- package/resources/mcp-servers/mcp-servers.d.ts.map +1 -1
- package/resources/mcp-servers/mcp-servers.js +6 -6
- package/resources/mcp-servers/mcp-servers.js.map +1 -1
- package/resources/mcp-servers/mcp-servers.mjs +6 -6
- package/resources/mcp-servers/mcp-servers.mjs.map +1 -1
- package/resources/models/models.d.mts +5 -0
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +5 -0
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/tools.d.mts +36 -36
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +36 -36
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +6 -6
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +6 -6
- package/resources/tools.mjs.map +1 -1
- package/src/client.ts +18 -18
- package/src/resources/agents/agents.ts +187 -177
- package/src/resources/agents/blocks.ts +35 -35
- package/src/resources/agents/index.ts +9 -9
- package/src/resources/agents/messages.ts +200 -200
- package/src/resources/archives/archives.ts +22 -17
- package/src/resources/archives/index.ts +1 -1
- package/src/resources/blocks/blocks.ts +69 -69
- package/src/resources/blocks/index.ts +1 -1
- package/src/resources/folders/folders.ts +16 -16
- package/src/resources/folders/index.ts +1 -1
- package/src/resources/groups/groups.ts +33 -33
- package/src/resources/groups/index.ts +4 -4
- package/src/resources/groups/messages.ts +126 -126
- package/src/resources/identities/identities.ts +22 -22
- package/src/resources/identities/index.ts +1 -1
- package/src/resources/index.ts +9 -9
- package/src/resources/mcp-servers/index.ts +2 -2
- package/src/resources/mcp-servers/mcp-servers.ts +23 -23
- package/src/resources/models/models.ts +5 -0
- package/src/resources/tools.ts +46 -46
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/tools.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../src/resources/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,SAAS,EAAqC;OAEhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../src/resources/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,SAAS,EAAqC;OAEhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,aAAa,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,SAAe,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -38,9 +38,9 @@ import {
|
|
|
38
38
|
ToolCreateParams,
|
|
39
39
|
ToolDeleteResponse,
|
|
40
40
|
ToolListParams,
|
|
41
|
-
ToolModifyParams,
|
|
42
41
|
ToolReturnMessage,
|
|
43
42
|
ToolType,
|
|
43
|
+
ToolUpdateParams,
|
|
44
44
|
ToolUpsertBaseToolsResponse,
|
|
45
45
|
ToolUpsertParams,
|
|
46
46
|
Tools,
|
|
@@ -55,11 +55,11 @@ import {
|
|
|
55
55
|
AgentImportFileParams,
|
|
56
56
|
AgentImportFileResponse,
|
|
57
57
|
AgentListParams,
|
|
58
|
-
AgentModifyParams,
|
|
59
58
|
AgentRetrieveParams,
|
|
60
59
|
AgentState,
|
|
61
60
|
AgentStatesArrayPage,
|
|
62
61
|
AgentType,
|
|
62
|
+
AgentUpdateParams,
|
|
63
63
|
Agents,
|
|
64
64
|
AnthropicModelSettings,
|
|
65
65
|
AzureModelSettings,
|
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
Archive,
|
|
91
91
|
ArchiveCreateParams,
|
|
92
92
|
ArchiveListParams,
|
|
93
|
-
|
|
93
|
+
ArchiveUpdateParams,
|
|
94
94
|
Archives,
|
|
95
95
|
ArchivesArrayPage,
|
|
96
96
|
VectorDBProvider,
|
|
@@ -107,9 +107,9 @@ import {
|
|
|
107
107
|
BlockCreateParams,
|
|
108
108
|
BlockDeleteResponse,
|
|
109
109
|
BlockListParams,
|
|
110
|
-
BlockModifyParams,
|
|
111
110
|
BlockResponse,
|
|
112
111
|
BlockResponsesArrayPage,
|
|
112
|
+
BlockUpdateParams,
|
|
113
113
|
Blocks,
|
|
114
114
|
CreateBlock,
|
|
115
115
|
} from './resources/blocks/blocks';
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
FolderCreateParams,
|
|
119
119
|
FolderDeleteResponse,
|
|
120
120
|
FolderListParams,
|
|
121
|
-
|
|
121
|
+
FolderUpdateParams,
|
|
122
122
|
Folders,
|
|
123
123
|
FoldersArrayPage,
|
|
124
124
|
} from './resources/folders/folders';
|
|
@@ -128,7 +128,7 @@ import {
|
|
|
128
128
|
GroupCreateParams,
|
|
129
129
|
GroupDeleteResponse,
|
|
130
130
|
GroupListParams,
|
|
131
|
-
|
|
131
|
+
GroupUpdateParams,
|
|
132
132
|
Groups,
|
|
133
133
|
GroupsArrayPage,
|
|
134
134
|
ManagerType,
|
|
@@ -144,9 +144,9 @@ import {
|
|
|
144
144
|
IdentityCreateParams,
|
|
145
145
|
IdentityDeleteResponse,
|
|
146
146
|
IdentityListParams,
|
|
147
|
-
IdentityModifyParams,
|
|
148
147
|
IdentityProperty,
|
|
149
148
|
IdentityType,
|
|
149
|
+
IdentityUpdateParams,
|
|
150
150
|
IdentityUpsertParams,
|
|
151
151
|
} from './resources/identities/identities';
|
|
152
152
|
import {
|
|
@@ -157,11 +157,11 @@ import {
|
|
|
157
157
|
McpServerCreateParams,
|
|
158
158
|
McpServerCreateResponse,
|
|
159
159
|
McpServerListResponse,
|
|
160
|
-
McpServerModifyParams,
|
|
161
|
-
McpServerModifyResponse,
|
|
162
160
|
McpServerRefreshParams,
|
|
163
161
|
McpServerRefreshResponse,
|
|
164
162
|
McpServerRetrieveResponse,
|
|
163
|
+
McpServerUpdateParams,
|
|
164
|
+
McpServerUpdateResponse,
|
|
165
165
|
McpServers,
|
|
166
166
|
McpToolExecuteRequest,
|
|
167
167
|
SseMcpServer,
|
|
@@ -1027,10 +1027,10 @@ export declare namespace Letta {
|
|
|
1027
1027
|
type AgentStatesArrayPage as AgentStatesArrayPage,
|
|
1028
1028
|
type AgentCreateParams as AgentCreateParams,
|
|
1029
1029
|
type AgentRetrieveParams as AgentRetrieveParams,
|
|
1030
|
+
type AgentUpdateParams as AgentUpdateParams,
|
|
1030
1031
|
type AgentListParams as AgentListParams,
|
|
1031
1032
|
type AgentExportFileParams as AgentExportFileParams,
|
|
1032
1033
|
type AgentImportFileParams as AgentImportFileParams,
|
|
1033
|
-
type AgentModifyParams as AgentModifyParams,
|
|
1034
1034
|
};
|
|
1035
1035
|
|
|
1036
1036
|
export {
|
|
@@ -1045,8 +1045,8 @@ export declare namespace Letta {
|
|
|
1045
1045
|
type ToolUpsertBaseToolsResponse as ToolUpsertBaseToolsResponse,
|
|
1046
1046
|
type ToolsArrayPage as ToolsArrayPage,
|
|
1047
1047
|
type ToolCreateParams as ToolCreateParams,
|
|
1048
|
+
type ToolUpdateParams as ToolUpdateParams,
|
|
1048
1049
|
type ToolListParams as ToolListParams,
|
|
1049
|
-
type ToolModifyParams as ToolModifyParams,
|
|
1050
1050
|
type ToolUpsertParams as ToolUpsertParams,
|
|
1051
1051
|
};
|
|
1052
1052
|
|
|
@@ -1057,8 +1057,8 @@ export declare namespace Letta {
|
|
|
1057
1057
|
type BlockDeleteResponse as BlockDeleteResponse,
|
|
1058
1058
|
type BlockResponsesArrayPage as BlockResponsesArrayPage,
|
|
1059
1059
|
type BlockCreateParams as BlockCreateParams,
|
|
1060
|
+
type BlockUpdateParams as BlockUpdateParams,
|
|
1060
1061
|
type BlockListParams as BlockListParams,
|
|
1061
|
-
type BlockModifyParams as BlockModifyParams,
|
|
1062
1062
|
};
|
|
1063
1063
|
|
|
1064
1064
|
export {
|
|
@@ -1067,8 +1067,8 @@ export declare namespace Letta {
|
|
|
1067
1067
|
type VectorDBProvider as VectorDBProvider,
|
|
1068
1068
|
type ArchivesArrayPage as ArchivesArrayPage,
|
|
1069
1069
|
type ArchiveCreateParams as ArchiveCreateParams,
|
|
1070
|
+
type ArchiveUpdateParams as ArchiveUpdateParams,
|
|
1070
1071
|
type ArchiveListParams as ArchiveListParams,
|
|
1071
|
-
type ArchiveModifyParams as ArchiveModifyParams,
|
|
1072
1072
|
};
|
|
1073
1073
|
|
|
1074
1074
|
export {
|
|
@@ -1077,8 +1077,8 @@ export declare namespace Letta {
|
|
|
1077
1077
|
type FolderDeleteResponse as FolderDeleteResponse,
|
|
1078
1078
|
type FoldersArrayPage as FoldersArrayPage,
|
|
1079
1079
|
type FolderCreateParams as FolderCreateParams,
|
|
1080
|
+
type FolderUpdateParams as FolderUpdateParams,
|
|
1080
1081
|
type FolderListParams as FolderListParams,
|
|
1081
|
-
type FolderModifyParams as FolderModifyParams,
|
|
1082
1082
|
};
|
|
1083
1083
|
|
|
1084
1084
|
export {
|
|
@@ -1108,12 +1108,12 @@ export declare namespace Letta {
|
|
|
1108
1108
|
type UpdateStreamableHTTPMcpServer as UpdateStreamableHTTPMcpServer,
|
|
1109
1109
|
type McpServerCreateResponse as McpServerCreateResponse,
|
|
1110
1110
|
type McpServerRetrieveResponse as McpServerRetrieveResponse,
|
|
1111
|
+
type McpServerUpdateResponse as McpServerUpdateResponse,
|
|
1111
1112
|
type McpServerListResponse as McpServerListResponse,
|
|
1112
1113
|
type McpServerConnectResponse as McpServerConnectResponse,
|
|
1113
|
-
type McpServerModifyResponse as McpServerModifyResponse,
|
|
1114
1114
|
type McpServerRefreshResponse as McpServerRefreshResponse,
|
|
1115
1115
|
type McpServerCreateParams as McpServerCreateParams,
|
|
1116
|
-
type
|
|
1116
|
+
type McpServerUpdateParams as McpServerUpdateParams,
|
|
1117
1117
|
type McpServerRefreshParams as McpServerRefreshParams,
|
|
1118
1118
|
};
|
|
1119
1119
|
|
|
@@ -1144,8 +1144,8 @@ export declare namespace Letta {
|
|
|
1144
1144
|
type IdentityDeleteResponse as IdentityDeleteResponse,
|
|
1145
1145
|
type IdentitiesArrayPage as IdentitiesArrayPage,
|
|
1146
1146
|
type IdentityCreateParams as IdentityCreateParams,
|
|
1147
|
+
type IdentityUpdateParams as IdentityUpdateParams,
|
|
1147
1148
|
type IdentityListParams as IdentityListParams,
|
|
1148
|
-
type IdentityModifyParams as IdentityModifyParams,
|
|
1149
1149
|
type IdentityUpsertParams as IdentityUpsertParams,
|
|
1150
1150
|
};
|
|
1151
1151
|
|
|
@@ -1161,8 +1161,8 @@ export declare namespace Letta {
|
|
|
1161
1161
|
type GroupDeleteResponse as GroupDeleteResponse,
|
|
1162
1162
|
type GroupsArrayPage as GroupsArrayPage,
|
|
1163
1163
|
type GroupCreateParams as GroupCreateParams,
|
|
1164
|
+
type GroupUpdateParams as GroupUpdateParams,
|
|
1164
1165
|
type GroupListParams as GroupListParams,
|
|
1165
|
-
type GroupModifyParams as GroupModifyParams,
|
|
1166
1166
|
};
|
|
1167
1167
|
|
|
1168
1168
|
export {
|
|
@@ -17,9 +17,9 @@ import {
|
|
|
17
17
|
BlockAttachParams,
|
|
18
18
|
BlockDetachParams,
|
|
19
19
|
BlockListParams,
|
|
20
|
-
BlockModify,
|
|
21
|
-
BlockModifyParams,
|
|
22
20
|
BlockRetrieveParams,
|
|
21
|
+
BlockUpdate,
|
|
22
|
+
BlockUpdateParams,
|
|
23
23
|
Blocks,
|
|
24
24
|
} from './blocks';
|
|
25
25
|
import * as FilesAPI from './files';
|
|
@@ -75,17 +75,17 @@ import {
|
|
|
75
75
|
Message,
|
|
76
76
|
MessageCancelParams,
|
|
77
77
|
MessageCancelResponse,
|
|
78
|
+
MessageCreateAsyncParams,
|
|
79
|
+
MessageCreateParams,
|
|
80
|
+
MessageCreateParamsNonStreaming,
|
|
81
|
+
MessageCreateParamsStreaming,
|
|
78
82
|
MessageListParams,
|
|
79
|
-
MessageModifyParams,
|
|
80
|
-
MessageModifyResponse,
|
|
81
83
|
MessageResetParams,
|
|
82
84
|
MessageRole,
|
|
83
|
-
MessageSendAsyncParams,
|
|
84
|
-
MessageSendParams,
|
|
85
|
-
MessageSendParamsNonStreaming,
|
|
86
|
-
MessageSendParamsStreaming,
|
|
87
85
|
MessageStreamParams,
|
|
88
86
|
MessageType,
|
|
87
|
+
MessageUpdateParams,
|
|
88
|
+
MessageUpdateResponse,
|
|
89
89
|
Messages,
|
|
90
90
|
MessagesArrayPage,
|
|
91
91
|
OmittedReasoningContent,
|
|
@@ -152,6 +152,13 @@ export class Agents extends APIResource {
|
|
|
152
152
|
return this._client.get(path`/v1/agents/${agentID}`, { query, ...options });
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
/**
|
|
156
|
+
* Update an existing agent.
|
|
157
|
+
*/
|
|
158
|
+
update(agentID: string, body: AgentUpdateParams, options?: RequestOptions): APIPromise<AgentState> {
|
|
159
|
+
return this._client.patch(path`/v1/agents/${agentID}`, { body, ...options });
|
|
160
|
+
}
|
|
161
|
+
|
|
155
162
|
/**
|
|
156
163
|
* Get a list of all agents.
|
|
157
164
|
*/
|
|
@@ -206,13 +213,6 @@ export class Agents extends APIResource {
|
|
|
206
213
|
),
|
|
207
214
|
);
|
|
208
215
|
}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Update an existing agent.
|
|
212
|
-
*/
|
|
213
|
-
modify(agentID: string, body: AgentModifyParams, options?: RequestOptions): APIPromise<AgentState> {
|
|
214
|
-
return this._client.patch(path`/v1/agents/${agentID}`, { body, ...options });
|
|
215
|
-
}
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
export type AgentStatesArrayPage = ArrayPage<AgentState>;
|
|
@@ -1545,6 +1545,11 @@ export interface AgentCreateParams {
|
|
|
1545
1545
|
|
|
1546
1546
|
/**
|
|
1547
1547
|
* Configuration for Language Model (LLM) connection and generation parameters.
|
|
1548
|
+
*
|
|
1549
|
+
* .. deprecated:: LLMConfig is deprecated and should not be used as an input or
|
|
1550
|
+
* return type in API calls. Use the schemas in letta.schemas.model (ModelSettings,
|
|
1551
|
+
* OpenAIModelSettings, etc.) instead. For conversion, use the \_to_model() method
|
|
1552
|
+
* or Model.\_from_llm_config() method.
|
|
1548
1553
|
*/
|
|
1549
1554
|
llm_config?: ModelsAPI.LlmConfig | null;
|
|
1550
1555
|
|
|
@@ -1743,159 +1748,7 @@ export interface AgentRetrieveParams {
|
|
|
1743
1748
|
include_relationships?: Array<string> | null;
|
|
1744
1749
|
}
|
|
1745
1750
|
|
|
1746
|
-
export interface
|
|
1747
|
-
/**
|
|
1748
|
-
* @deprecated Whether to sort agents oldest to newest (True) or newest to oldest
|
|
1749
|
-
* (False, default)
|
|
1750
|
-
*/
|
|
1751
|
-
ascending?: boolean;
|
|
1752
|
-
|
|
1753
|
-
/**
|
|
1754
|
-
* Search agents by base template ID
|
|
1755
|
-
*/
|
|
1756
|
-
base_template_id?: string | null;
|
|
1757
|
-
|
|
1758
|
-
/**
|
|
1759
|
-
* Search agents by identifier keys
|
|
1760
|
-
*/
|
|
1761
|
-
identifier_keys?: Array<string> | null;
|
|
1762
|
-
|
|
1763
|
-
/**
|
|
1764
|
-
* Search agents by identity ID
|
|
1765
|
-
*/
|
|
1766
|
-
identity_id?: string | null;
|
|
1767
|
-
|
|
1768
|
-
/**
|
|
1769
|
-
* Specify which relational fields to include in the response. No relationships are
|
|
1770
|
-
* included by default.
|
|
1771
|
-
*/
|
|
1772
|
-
include?: Array<
|
|
1773
|
-
| 'agent.blocks'
|
|
1774
|
-
| 'agent.identities'
|
|
1775
|
-
| 'agent.managed_group'
|
|
1776
|
-
| 'agent.secrets'
|
|
1777
|
-
| 'agent.sources'
|
|
1778
|
-
| 'agent.tags'
|
|
1779
|
-
| 'agent.tools'
|
|
1780
|
-
>;
|
|
1781
|
-
|
|
1782
|
-
/**
|
|
1783
|
-
* Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include
|
|
1784
|
-
* in the response. If not provided, all relationships are loaded by default. Using
|
|
1785
|
-
* this can optimize performance by reducing unnecessary joins.This is a legacy
|
|
1786
|
-
* parameter, and no longer supported after 1.0.0 SDK versions.
|
|
1787
|
-
*/
|
|
1788
|
-
include_relationships?: Array<string> | null;
|
|
1789
|
-
|
|
1790
|
-
/**
|
|
1791
|
-
* Filter agents by their last stop reason.
|
|
1792
|
-
*/
|
|
1793
|
-
last_stop_reason?: RunsAPI.StopReasonType | null;
|
|
1794
|
-
|
|
1795
|
-
/**
|
|
1796
|
-
* If True, only returns agents that match ALL given tags. Otherwise, return agents
|
|
1797
|
-
* that have ANY of the passed-in tags.
|
|
1798
|
-
*/
|
|
1799
|
-
match_all_tags?: boolean;
|
|
1800
|
-
|
|
1801
|
-
/**
|
|
1802
|
-
* Name of the agent
|
|
1803
|
-
*/
|
|
1804
|
-
name?: string | null;
|
|
1805
|
-
|
|
1806
|
-
/**
|
|
1807
|
-
* Search agents by project ID - this will default to your default project on cloud
|
|
1808
|
-
*/
|
|
1809
|
-
project_id?: string | null;
|
|
1810
|
-
|
|
1811
|
-
/**
|
|
1812
|
-
* Search agents by name
|
|
1813
|
-
*/
|
|
1814
|
-
query_text?: string | null;
|
|
1815
|
-
|
|
1816
|
-
/**
|
|
1817
|
-
* @deprecated Field to sort by. Options: 'created_at' (default),
|
|
1818
|
-
* 'last_run_completion'
|
|
1819
|
-
*/
|
|
1820
|
-
sort_by?: string | null;
|
|
1821
|
-
|
|
1822
|
-
/**
|
|
1823
|
-
* List of tags to filter agents by
|
|
1824
|
-
*/
|
|
1825
|
-
tags?: Array<string> | null;
|
|
1826
|
-
|
|
1827
|
-
/**
|
|
1828
|
-
* Search agents by template ID
|
|
1829
|
-
*/
|
|
1830
|
-
template_id?: string | null;
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
export interface AgentExportFileParams {
|
|
1834
|
-
/**
|
|
1835
|
-
* @deprecated
|
|
1836
|
-
*/
|
|
1837
|
-
max_steps?: number;
|
|
1838
|
-
|
|
1839
|
-
/**
|
|
1840
|
-
* @deprecated If True, exports using the legacy single-agent 'v1' format with
|
|
1841
|
-
* inline tools/blocks. If False, exports using the new multi-entity 'v2' format,
|
|
1842
|
-
* with separate agents, tools, blocks, files, etc.
|
|
1843
|
-
*/
|
|
1844
|
-
use_legacy_format?: boolean;
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1847
|
-
export interface AgentImportFileParams {
|
|
1848
|
-
/**
|
|
1849
|
-
* Body param:
|
|
1850
|
-
*/
|
|
1851
|
-
file: Uploadable;
|
|
1852
|
-
|
|
1853
|
-
/**
|
|
1854
|
-
* @deprecated Body param: If set to True, appends "\_copy" to the end of the agent
|
|
1855
|
-
* name.
|
|
1856
|
-
*/
|
|
1857
|
-
append_copy_suffix?: boolean;
|
|
1858
|
-
|
|
1859
|
-
/**
|
|
1860
|
-
* Body param: Environment variables as a JSON string to pass to the agent for tool
|
|
1861
|
-
* execution.
|
|
1862
|
-
*/
|
|
1863
|
-
env_vars_json?: string | null;
|
|
1864
|
-
|
|
1865
|
-
/**
|
|
1866
|
-
* Body param: Override import with specific embedding handle.
|
|
1867
|
-
*/
|
|
1868
|
-
override_embedding_handle?: string | null;
|
|
1869
|
-
|
|
1870
|
-
/**
|
|
1871
|
-
* Body param: If set to True, existing tools can get their source code overwritten
|
|
1872
|
-
* by the uploaded tool definitions. Note that Letta core tools can never be
|
|
1873
|
-
* updated externally.
|
|
1874
|
-
*/
|
|
1875
|
-
override_existing_tools?: boolean;
|
|
1876
|
-
|
|
1877
|
-
/**
|
|
1878
|
-
* Body param: If provided, overrides the agent name with this value.
|
|
1879
|
-
*/
|
|
1880
|
-
override_name?: string | null;
|
|
1881
|
-
|
|
1882
|
-
/**
|
|
1883
|
-
* Body param: The project ID to associate the uploaded agent with.
|
|
1884
|
-
*/
|
|
1885
|
-
project_id?: string | null;
|
|
1886
|
-
|
|
1887
|
-
/**
|
|
1888
|
-
* Body param: If set to True, strips all messages from the agent before importing.
|
|
1889
|
-
*/
|
|
1890
|
-
strip_messages?: boolean;
|
|
1891
|
-
|
|
1892
|
-
/**
|
|
1893
|
-
* Header param:
|
|
1894
|
-
*/
|
|
1895
|
-
'x-override-embedding-model'?: string;
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
export interface AgentModifyParams {
|
|
1751
|
+
export interface AgentUpdateParams {
|
|
1899
1752
|
/**
|
|
1900
1753
|
* The base template id of the agent.
|
|
1901
1754
|
*/
|
|
@@ -1958,6 +1811,11 @@ export interface AgentModifyParams {
|
|
|
1958
1811
|
|
|
1959
1812
|
/**
|
|
1960
1813
|
* Configuration for Language Model (LLM) connection and generation parameters.
|
|
1814
|
+
*
|
|
1815
|
+
* .. deprecated:: LLMConfig is deprecated and should not be used as an input or
|
|
1816
|
+
* return type in API calls. Use the schemas in letta.schemas.model (ModelSettings,
|
|
1817
|
+
* OpenAIModelSettings, etc.) instead. For conversion, use the \_to_model() method
|
|
1818
|
+
* or Model.\_from_llm_config() method.
|
|
1961
1819
|
*/
|
|
1962
1820
|
llm_config?: ModelsAPI.LlmConfig | null;
|
|
1963
1821
|
|
|
@@ -2101,6 +1959,158 @@ export interface AgentModifyParams {
|
|
|
2101
1959
|
> | null;
|
|
2102
1960
|
}
|
|
2103
1961
|
|
|
1962
|
+
export interface AgentListParams extends ArrayPageParams {
|
|
1963
|
+
/**
|
|
1964
|
+
* @deprecated Whether to sort agents oldest to newest (True) or newest to oldest
|
|
1965
|
+
* (False, default)
|
|
1966
|
+
*/
|
|
1967
|
+
ascending?: boolean;
|
|
1968
|
+
|
|
1969
|
+
/**
|
|
1970
|
+
* Search agents by base template ID
|
|
1971
|
+
*/
|
|
1972
|
+
base_template_id?: string | null;
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* Search agents by identifier keys
|
|
1976
|
+
*/
|
|
1977
|
+
identifier_keys?: Array<string> | null;
|
|
1978
|
+
|
|
1979
|
+
/**
|
|
1980
|
+
* Search agents by identity ID
|
|
1981
|
+
*/
|
|
1982
|
+
identity_id?: string | null;
|
|
1983
|
+
|
|
1984
|
+
/**
|
|
1985
|
+
* Specify which relational fields to include in the response. No relationships are
|
|
1986
|
+
* included by default.
|
|
1987
|
+
*/
|
|
1988
|
+
include?: Array<
|
|
1989
|
+
| 'agent.blocks'
|
|
1990
|
+
| 'agent.identities'
|
|
1991
|
+
| 'agent.managed_group'
|
|
1992
|
+
| 'agent.secrets'
|
|
1993
|
+
| 'agent.sources'
|
|
1994
|
+
| 'agent.tags'
|
|
1995
|
+
| 'agent.tools'
|
|
1996
|
+
>;
|
|
1997
|
+
|
|
1998
|
+
/**
|
|
1999
|
+
* Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include
|
|
2000
|
+
* in the response. If not provided, all relationships are loaded by default. Using
|
|
2001
|
+
* this can optimize performance by reducing unnecessary joins.This is a legacy
|
|
2002
|
+
* parameter, and no longer supported after 1.0.0 SDK versions.
|
|
2003
|
+
*/
|
|
2004
|
+
include_relationships?: Array<string> | null;
|
|
2005
|
+
|
|
2006
|
+
/**
|
|
2007
|
+
* Filter agents by their last stop reason.
|
|
2008
|
+
*/
|
|
2009
|
+
last_stop_reason?: RunsAPI.StopReasonType | null;
|
|
2010
|
+
|
|
2011
|
+
/**
|
|
2012
|
+
* If True, only returns agents that match ALL given tags. Otherwise, return agents
|
|
2013
|
+
* that have ANY of the passed-in tags.
|
|
2014
|
+
*/
|
|
2015
|
+
match_all_tags?: boolean;
|
|
2016
|
+
|
|
2017
|
+
/**
|
|
2018
|
+
* Name of the agent
|
|
2019
|
+
*/
|
|
2020
|
+
name?: string | null;
|
|
2021
|
+
|
|
2022
|
+
/**
|
|
2023
|
+
* Search agents by project ID - this will default to your default project on cloud
|
|
2024
|
+
*/
|
|
2025
|
+
project_id?: string | null;
|
|
2026
|
+
|
|
2027
|
+
/**
|
|
2028
|
+
* Search agents by name
|
|
2029
|
+
*/
|
|
2030
|
+
query_text?: string | null;
|
|
2031
|
+
|
|
2032
|
+
/**
|
|
2033
|
+
* @deprecated Field to sort by. Options: 'created_at' (default),
|
|
2034
|
+
* 'last_run_completion'
|
|
2035
|
+
*/
|
|
2036
|
+
sort_by?: string | null;
|
|
2037
|
+
|
|
2038
|
+
/**
|
|
2039
|
+
* List of tags to filter agents by
|
|
2040
|
+
*/
|
|
2041
|
+
tags?: Array<string> | null;
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* Search agents by template ID
|
|
2045
|
+
*/
|
|
2046
|
+
template_id?: string | null;
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
export interface AgentExportFileParams {
|
|
2050
|
+
/**
|
|
2051
|
+
* @deprecated
|
|
2052
|
+
*/
|
|
2053
|
+
max_steps?: number;
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* @deprecated If True, exports using the legacy single-agent 'v1' format with
|
|
2057
|
+
* inline tools/blocks. If False, exports using the new multi-entity 'v2' format,
|
|
2058
|
+
* with separate agents, tools, blocks, files, etc.
|
|
2059
|
+
*/
|
|
2060
|
+
use_legacy_format?: boolean;
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
export interface AgentImportFileParams {
|
|
2064
|
+
/**
|
|
2065
|
+
* Body param:
|
|
2066
|
+
*/
|
|
2067
|
+
file: Uploadable;
|
|
2068
|
+
|
|
2069
|
+
/**
|
|
2070
|
+
* @deprecated Body param: If set to True, appends "\_copy" to the end of the agent
|
|
2071
|
+
* name.
|
|
2072
|
+
*/
|
|
2073
|
+
append_copy_suffix?: boolean;
|
|
2074
|
+
|
|
2075
|
+
/**
|
|
2076
|
+
* Body param: Environment variables as a JSON string to pass to the agent for tool
|
|
2077
|
+
* execution.
|
|
2078
|
+
*/
|
|
2079
|
+
env_vars_json?: string | null;
|
|
2080
|
+
|
|
2081
|
+
/**
|
|
2082
|
+
* Body param: Override import with specific embedding handle.
|
|
2083
|
+
*/
|
|
2084
|
+
override_embedding_handle?: string | null;
|
|
2085
|
+
|
|
2086
|
+
/**
|
|
2087
|
+
* Body param: If set to True, existing tools can get their source code overwritten
|
|
2088
|
+
* by the uploaded tool definitions. Note that Letta core tools can never be
|
|
2089
|
+
* updated externally.
|
|
2090
|
+
*/
|
|
2091
|
+
override_existing_tools?: boolean;
|
|
2092
|
+
|
|
2093
|
+
/**
|
|
2094
|
+
* Body param: If provided, overrides the agent name with this value.
|
|
2095
|
+
*/
|
|
2096
|
+
override_name?: string | null;
|
|
2097
|
+
|
|
2098
|
+
/**
|
|
2099
|
+
* Body param: The project ID to associate the uploaded agent with.
|
|
2100
|
+
*/
|
|
2101
|
+
project_id?: string | null;
|
|
2102
|
+
|
|
2103
|
+
/**
|
|
2104
|
+
* Body param: If set to True, strips all messages from the agent before importing.
|
|
2105
|
+
*/
|
|
2106
|
+
strip_messages?: boolean;
|
|
2107
|
+
|
|
2108
|
+
/**
|
|
2109
|
+
* Header param:
|
|
2110
|
+
*/
|
|
2111
|
+
'x-override-embedding-model'?: string;
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2104
2114
|
Agents.Messages = Messages;
|
|
2105
2115
|
Agents.Blocks = Blocks;
|
|
2106
2116
|
Agents.Tools = Tools;
|
|
@@ -2145,10 +2155,10 @@ export declare namespace Agents {
|
|
|
2145
2155
|
type AgentStatesArrayPage as AgentStatesArrayPage,
|
|
2146
2156
|
type AgentCreateParams as AgentCreateParams,
|
|
2147
2157
|
type AgentRetrieveParams as AgentRetrieveParams,
|
|
2158
|
+
type AgentUpdateParams as AgentUpdateParams,
|
|
2148
2159
|
type AgentListParams as AgentListParams,
|
|
2149
2160
|
type AgentExportFileParams as AgentExportFileParams,
|
|
2150
2161
|
type AgentImportFileParams as AgentImportFileParams,
|
|
2151
|
-
type AgentModifyParams as AgentModifyParams,
|
|
2152
2162
|
};
|
|
2153
2163
|
|
|
2154
2164
|
export {
|
|
@@ -2192,29 +2202,29 @@ export declare namespace Agents {
|
|
|
2192
2202
|
type UpdateSystemMessage as UpdateSystemMessage,
|
|
2193
2203
|
type UpdateUserMessage as UpdateUserMessage,
|
|
2194
2204
|
type UserMessage as UserMessage,
|
|
2205
|
+
type MessageUpdateResponse as MessageUpdateResponse,
|
|
2195
2206
|
type MessageCancelResponse as MessageCancelResponse,
|
|
2196
|
-
type MessageModifyResponse as MessageModifyResponse,
|
|
2197
2207
|
type MessagesArrayPage as MessagesArrayPage,
|
|
2208
|
+
type MessageCreateParams as MessageCreateParams,
|
|
2209
|
+
type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming,
|
|
2210
|
+
type MessageCreateParamsStreaming as MessageCreateParamsStreaming,
|
|
2211
|
+
type MessageUpdateParams as MessageUpdateParams,
|
|
2198
2212
|
type MessageListParams as MessageListParams,
|
|
2199
2213
|
type MessageCancelParams as MessageCancelParams,
|
|
2200
|
-
type
|
|
2214
|
+
type MessageCreateAsyncParams as MessageCreateAsyncParams,
|
|
2201
2215
|
type MessageResetParams as MessageResetParams,
|
|
2202
|
-
type MessageSendParams as MessageSendParams,
|
|
2203
|
-
type MessageSendParamsNonStreaming as MessageSendParamsNonStreaming,
|
|
2204
|
-
type MessageSendParamsStreaming as MessageSendParamsStreaming,
|
|
2205
|
-
type MessageSendAsyncParams as MessageSendAsyncParams,
|
|
2206
2216
|
type MessageStreamParams as MessageStreamParams,
|
|
2207
2217
|
};
|
|
2208
2218
|
|
|
2209
2219
|
export {
|
|
2210
2220
|
Blocks as Blocks,
|
|
2211
2221
|
type Block as Block,
|
|
2212
|
-
type
|
|
2222
|
+
type BlockUpdate as BlockUpdate,
|
|
2213
2223
|
type BlockRetrieveParams as BlockRetrieveParams,
|
|
2224
|
+
type BlockUpdateParams as BlockUpdateParams,
|
|
2214
2225
|
type BlockListParams as BlockListParams,
|
|
2215
2226
|
type BlockAttachParams as BlockAttachParams,
|
|
2216
2227
|
type BlockDetachParams as BlockDetachParams,
|
|
2217
|
-
type BlockModifyParams as BlockModifyParams,
|
|
2218
2228
|
};
|
|
2219
2229
|
|
|
2220
2230
|
export {
|