@letta-ai/letta-client 0.1.182 → 0.1.183

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.
Files changed (174) hide show
  1. package/api/resources/agents/client/Client.d.ts +14 -0
  2. package/api/resources/agents/client/Client.js +99 -10
  3. package/api/resources/agents/client/requests/ListAgentFilesRequest.d.ts +21 -0
  4. package/api/resources/agents/client/requests/index.d.ts +1 -0
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  8. package/api/resources/agents/resources/files/client/Client.d.ts +9 -0
  9. package/api/resources/agents/resources/files/client/Client.js +55 -3
  10. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  11. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  12. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  13. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  14. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  15. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  16. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  17. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  18. package/api/resources/batches/client/Client.js +4 -4
  19. package/api/resources/blocks/client/Client.js +6 -6
  20. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  21. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  22. package/api/resources/embeddingModels/client/Client.js +1 -1
  23. package/api/resources/folders/client/Client.js +9 -9
  24. package/api/resources/folders/resources/files/client/Client.js +3 -3
  25. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  26. package/api/resources/groups/client/Client.js +6 -6
  27. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  28. package/api/resources/health/client/Client.js +1 -1
  29. package/api/resources/identities/client/Client.js +7 -7
  30. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  31. package/api/resources/jobs/client/Client.js +5 -5
  32. package/api/resources/messages/client/Client.js +1 -1
  33. package/api/resources/models/client/Client.js +1 -1
  34. package/api/resources/projects/client/Client.js +1 -1
  35. package/api/resources/providers/client/Client.js +6 -6
  36. package/api/resources/runs/client/Client.js +4 -4
  37. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  38. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  39. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  40. package/api/resources/sources/client/Client.js +10 -10
  41. package/api/resources/sources/resources/files/client/Client.js +3 -3
  42. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  43. package/api/resources/steps/client/Client.js +3 -3
  44. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  45. package/api/resources/tags/client/Client.js +1 -1
  46. package/api/resources/telemetry/client/Client.js +1 -1
  47. package/api/resources/templates/client/Client.js +8 -8
  48. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  49. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +2 -0
  50. package/api/resources/tools/client/Client.js +20 -20
  51. package/api/resources/voice/client/Client.js +1 -1
  52. package/api/types/AgentFileAttachment.d.ts +28 -0
  53. package/api/types/ChatCompletionMessageFunctionToolCallInput.d.ts +11 -0
  54. package/api/types/ChatCompletionMessageFunctionToolCallInput.js +5 -0
  55. package/api/types/{ChatCompletionMessageFunctionToolCall.d.ts → ChatCompletionMessageFunctionToolCallOutput.d.ts} +1 -1
  56. package/api/types/ChatCompletionMessageFunctionToolCallOutput.js +5 -0
  57. package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +8 -0
  58. package/api/types/Message.d.ts +1 -1
  59. package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +9 -0
  60. package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +5 -0
  61. package/api/types/PaginatedAgentFiles.d.ts +15 -0
  62. package/api/types/PaginatedAgentFiles.js +5 -0
  63. package/api/types/index.d.ts +5 -1
  64. package/api/types/index.js +5 -1
  65. package/dist/api/resources/agents/client/Client.d.ts +14 -0
  66. package/dist/api/resources/agents/client/Client.js +99 -10
  67. package/dist/api/resources/agents/client/requests/ListAgentFilesRequest.d.ts +21 -0
  68. package/dist/api/resources/agents/client/requests/ListAgentFilesRequest.js +5 -0
  69. package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
  70. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  71. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  72. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  73. package/dist/api/resources/agents/resources/files/client/Client.d.ts +9 -0
  74. package/dist/api/resources/agents/resources/files/client/Client.js +55 -3
  75. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  76. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  77. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  78. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  79. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  80. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  81. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  82. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  83. package/dist/api/resources/batches/client/Client.js +4 -4
  84. package/dist/api/resources/blocks/client/Client.js +6 -6
  85. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  86. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  87. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  88. package/dist/api/resources/folders/client/Client.js +9 -9
  89. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  90. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  91. package/dist/api/resources/groups/client/Client.js +6 -6
  92. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  93. package/dist/api/resources/health/client/Client.js +1 -1
  94. package/dist/api/resources/identities/client/Client.js +7 -7
  95. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  96. package/dist/api/resources/jobs/client/Client.js +5 -5
  97. package/dist/api/resources/messages/client/Client.js +1 -1
  98. package/dist/api/resources/models/client/Client.js +1 -1
  99. package/dist/api/resources/projects/client/Client.js +1 -1
  100. package/dist/api/resources/providers/client/Client.js +6 -6
  101. package/dist/api/resources/runs/client/Client.js +4 -4
  102. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  103. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  104. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  105. package/dist/api/resources/sources/client/Client.js +10 -10
  106. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  107. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  108. package/dist/api/resources/steps/client/Client.js +3 -3
  109. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  110. package/dist/api/resources/tags/client/Client.js +1 -1
  111. package/dist/api/resources/telemetry/client/Client.js +1 -1
  112. package/dist/api/resources/templates/client/Client.js +8 -8
  113. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  114. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +2 -0
  115. package/dist/api/resources/tools/client/Client.js +20 -20
  116. package/dist/api/resources/voice/client/Client.js +1 -1
  117. package/dist/api/types/AgentFileAttachment.d.ts +28 -0
  118. package/dist/api/types/AgentFileAttachment.js +5 -0
  119. package/dist/api/types/ChatCompletionMessageFunctionToolCallInput.d.ts +11 -0
  120. package/dist/api/types/ChatCompletionMessageFunctionToolCallInput.js +5 -0
  121. package/dist/api/types/{ChatCompletionMessageFunctionToolCall.d.ts → ChatCompletionMessageFunctionToolCallOutput.d.ts} +1 -1
  122. package/dist/api/types/ChatCompletionMessageFunctionToolCallOutput.js +5 -0
  123. package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +8 -0
  124. package/dist/api/types/Message.d.ts +1 -1
  125. package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +9 -0
  126. package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +5 -0
  127. package/dist/api/types/PaginatedAgentFiles.d.ts +15 -0
  128. package/dist/api/types/PaginatedAgentFiles.js +5 -0
  129. package/dist/api/types/index.d.ts +5 -1
  130. package/dist/api/types/index.js +5 -1
  131. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +2 -0
  132. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +2 -0
  133. package/dist/serialization/types/AgentFileAttachment.d.ts +21 -0
  134. package/dist/serialization/types/AgentFileAttachment.js +52 -0
  135. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallInput.d.ts +16 -0
  136. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallInput.js +48 -0
  137. package/dist/serialization/types/{ChatCompletionMessageFunctionToolCall.d.ts → ChatCompletionMessageFunctionToolCallOutput.d.ts} +2 -2
  138. package/dist/serialization/types/{ChatCompletionMessageFunctionToolCall.js → ChatCompletionMessageFunctionToolCallOutput.js} +2 -2
  139. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +6 -0
  140. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +6 -0
  141. package/dist/serialization/types/Message.d.ts +2 -2
  142. package/dist/serialization/types/Message.js +2 -2
  143. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +14 -0
  144. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +46 -0
  145. package/dist/serialization/types/PaginatedAgentFiles.d.ts +15 -0
  146. package/dist/serialization/types/PaginatedAgentFiles.js +46 -0
  147. package/dist/serialization/types/index.d.ts +5 -1
  148. package/dist/serialization/types/index.js +5 -1
  149. package/dist/version.d.ts +1 -1
  150. package/dist/version.js +1 -1
  151. package/package.json +1 -1
  152. package/reference.md +119 -0
  153. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +2 -0
  154. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +2 -0
  155. package/serialization/types/AgentFileAttachment.d.ts +21 -0
  156. package/serialization/types/AgentFileAttachment.js +52 -0
  157. package/serialization/types/ChatCompletionMessageFunctionToolCallInput.d.ts +16 -0
  158. package/serialization/types/ChatCompletionMessageFunctionToolCallInput.js +48 -0
  159. package/serialization/types/{ChatCompletionMessageFunctionToolCall.d.ts → ChatCompletionMessageFunctionToolCallOutput.d.ts} +2 -2
  160. package/serialization/types/{ChatCompletionMessageFunctionToolCall.js → ChatCompletionMessageFunctionToolCallOutput.js} +2 -2
  161. package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +6 -0
  162. package/serialization/types/LettaSchemasAgentFileMessageSchema.js +6 -0
  163. package/serialization/types/Message.d.ts +2 -2
  164. package/serialization/types/Message.js +2 -2
  165. package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +14 -0
  166. package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +46 -0
  167. package/serialization/types/PaginatedAgentFiles.d.ts +15 -0
  168. package/serialization/types/PaginatedAgentFiles.js +46 -0
  169. package/serialization/types/index.d.ts +5 -1
  170. package/serialization/types/index.js +5 -1
  171. package/version.d.ts +1 -1
  172. package/version.js +1 -1
  173. /package/api/{types/ChatCompletionMessageFunctionToolCall.js → resources/agents/client/requests/ListAgentFilesRequest.js} +0 -0
  174. /package/{dist/api/types/ChatCompletionMessageFunctionToolCall.js → api/types/AgentFileAttachment.js} +0 -0
@@ -0,0 +1,52 @@
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.AgentFileAttachment = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.AgentFileAttachment = core.serialization.object({
42
+ id: core.serialization.string(),
43
+ fileId: core.serialization.property("file_id", core.serialization.string()),
44
+ fileName: core.serialization.property("file_name", core.serialization.string()),
45
+ folderId: core.serialization.property("folder_id", core.serialization.string()),
46
+ folderName: core.serialization.property("folder_name", core.serialization.string()),
47
+ isOpen: core.serialization.property("is_open", core.serialization.boolean()),
48
+ lastAccessedAt: core.serialization.property("last_accessed_at", core.serialization.date().optional()),
49
+ visibleContent: core.serialization.property("visible_content", core.serialization.string().optional()),
50
+ startLine: core.serialization.property("start_line", core.serialization.number().optional()),
51
+ endLine: core.serialization.property("end_line", core.serialization.number().optional()),
52
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction } from "./OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction";
8
+ export declare const ChatCompletionMessageFunctionToolCallInput: core.serialization.ObjectSchema<serializers.ChatCompletionMessageFunctionToolCallInput.Raw, Letta.ChatCompletionMessageFunctionToolCallInput>;
9
+ export declare namespace ChatCompletionMessageFunctionToolCallInput {
10
+ interface Raw {
11
+ id: string;
12
+ function: OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.Raw;
13
+ type: "function";
14
+ [key: string]: any;
15
+ }
16
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ChatCompletionMessageFunctionToolCallInput = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction_1 = require("./OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction");
42
+ exports.ChatCompletionMessageFunctionToolCallInput = core.serialization
43
+ .object({
44
+ id: core.serialization.string(),
45
+ function: OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction_1.OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction,
46
+ type: core.serialization.stringLiteral("function"),
47
+ })
48
+ .passthrough();
@@ -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 { FunctionOutput } from "./FunctionOutput";
8
- export declare const ChatCompletionMessageFunctionToolCall: core.serialization.ObjectSchema<serializers.ChatCompletionMessageFunctionToolCall.Raw, Letta.ChatCompletionMessageFunctionToolCall>;
9
- export declare namespace ChatCompletionMessageFunctionToolCall {
8
+ export declare const ChatCompletionMessageFunctionToolCallOutput: core.serialization.ObjectSchema<serializers.ChatCompletionMessageFunctionToolCallOutput.Raw, Letta.ChatCompletionMessageFunctionToolCallOutput>;
9
+ export declare namespace ChatCompletionMessageFunctionToolCallOutput {
10
10
  interface Raw {
11
11
  id: string;
12
12
  function: FunctionOutput.Raw;
@@ -36,10 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ChatCompletionMessageFunctionToolCall = void 0;
39
+ exports.ChatCompletionMessageFunctionToolCallOutput = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const FunctionOutput_1 = require("./FunctionOutput");
42
- exports.ChatCompletionMessageFunctionToolCall = core.serialization
42
+ exports.ChatCompletionMessageFunctionToolCallOutput = core.serialization
43
43
  .object({
44
44
  id: core.serialization.string(),
45
45
  function: FunctionOutput_1.FunctionOutput,
@@ -6,6 +6,8 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { MessageRole } from "./MessageRole";
8
8
  import { LettaSchemasAgentFileMessageSchemaContent } from "./LettaSchemasAgentFileMessageSchemaContent";
9
+ import { ChatCompletionMessageFunctionToolCallInput } from "./ChatCompletionMessageFunctionToolCallInput";
10
+ import { ToolReturn } from "./ToolReturn";
9
11
  export declare const LettaSchemasAgentFileMessageSchema: core.serialization.ObjectSchema<serializers.LettaSchemasAgentFileMessageSchema.Raw, Letta.LettaSchemasAgentFileMessageSchema>;
10
12
  export declare namespace LettaSchemasAgentFileMessageSchema {
11
13
  interface Raw {
@@ -19,5 +21,9 @@ export declare namespace LettaSchemasAgentFileMessageSchema {
19
21
  id: string;
20
22
  model?: string | null;
21
23
  agent_id?: string | null;
24
+ tool_calls?: ChatCompletionMessageFunctionToolCallInput.Raw[] | null;
25
+ tool_call_id?: string | null;
26
+ tool_returns?: ToolReturn.Raw[] | null;
27
+ created_at?: string | null;
22
28
  }
23
29
  }
@@ -40,6 +40,8 @@ exports.LettaSchemasAgentFileMessageSchema = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const MessageRole_1 = require("./MessageRole");
42
42
  const LettaSchemasAgentFileMessageSchemaContent_1 = require("./LettaSchemasAgentFileMessageSchemaContent");
43
+ const ChatCompletionMessageFunctionToolCallInput_1 = require("./ChatCompletionMessageFunctionToolCallInput");
44
+ const ToolReturn_1 = require("./ToolReturn");
43
45
  exports.LettaSchemasAgentFileMessageSchema = core.serialization.object({
44
46
  role: MessageRole_1.MessageRole,
45
47
  content: LettaSchemasAgentFileMessageSchemaContent_1.LettaSchemasAgentFileMessageSchemaContent,
@@ -51,4 +53,8 @@ exports.LettaSchemasAgentFileMessageSchema = core.serialization.object({
51
53
  id: core.serialization.string(),
52
54
  model: core.serialization.string().optional(),
53
55
  agentId: core.serialization.property("agent_id", core.serialization.string().optional()),
56
+ toolCalls: core.serialization.property("tool_calls", core.serialization.list(ChatCompletionMessageFunctionToolCallInput_1.ChatCompletionMessageFunctionToolCallInput).optional()),
57
+ toolCallId: core.serialization.property("tool_call_id", core.serialization.string().optional()),
58
+ toolReturns: core.serialization.property("tool_returns", core.serialization.list(ToolReturn_1.ToolReturn).optional()),
59
+ createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
54
60
  });
@@ -6,7 +6,7 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { MessageRole } from "./MessageRole";
8
8
  import { MessageContentItem } from "./MessageContentItem";
9
- import { ChatCompletionMessageFunctionToolCall } from "./ChatCompletionMessageFunctionToolCall";
9
+ import { ChatCompletionMessageFunctionToolCallOutput } from "./ChatCompletionMessageFunctionToolCallOutput";
10
10
  import { ToolReturn } from "./ToolReturn";
11
11
  export declare const Message: core.serialization.ObjectSchema<serializers.Message.Raw, Letta.Message>;
12
12
  export declare namespace Message {
@@ -21,7 +21,7 @@ export declare namespace Message {
21
21
  role: MessageRole.Raw;
22
22
  content?: MessageContentItem.Raw[] | null;
23
23
  name?: string | null;
24
- tool_calls?: ChatCompletionMessageFunctionToolCall.Raw[] | null;
24
+ tool_calls?: ChatCompletionMessageFunctionToolCallOutput.Raw[] | null;
25
25
  tool_call_id?: string | null;
26
26
  step_id?: string | null;
27
27
  otid?: string | null;
@@ -40,7 +40,7 @@ exports.Message = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const MessageRole_1 = require("./MessageRole");
42
42
  const MessageContentItem_1 = require("./MessageContentItem");
43
- const ChatCompletionMessageFunctionToolCall_1 = require("./ChatCompletionMessageFunctionToolCall");
43
+ const ChatCompletionMessageFunctionToolCallOutput_1 = require("./ChatCompletionMessageFunctionToolCallOutput");
44
44
  const ToolReturn_1 = require("./ToolReturn");
45
45
  exports.Message = core.serialization.object({
46
46
  createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
@@ -53,7 +53,7 @@ exports.Message = core.serialization.object({
53
53
  role: MessageRole_1.MessageRole,
54
54
  content: core.serialization.list(MessageContentItem_1.MessageContentItem).optional(),
55
55
  name: core.serialization.string().optional(),
56
- toolCalls: core.serialization.property("tool_calls", core.serialization.list(ChatCompletionMessageFunctionToolCall_1.ChatCompletionMessageFunctionToolCall).optional()),
56
+ toolCalls: core.serialization.property("tool_calls", core.serialization.list(ChatCompletionMessageFunctionToolCallOutput_1.ChatCompletionMessageFunctionToolCallOutput).optional()),
57
57
  toolCallId: core.serialization.property("tool_call_id", core.serialization.string().optional()),
58
58
  stepId: core.serialization.property("step_id", core.serialization.string().optional()),
59
59
  otid: core.serialization.string().optional(),
@@ -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 OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction: core.serialization.ObjectSchema<serializers.OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.Raw, Letta.OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction>;
8
+ export declare namespace OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction {
9
+ interface Raw {
10
+ arguments: string;
11
+ name: string;
12
+ [key: string]: any;
13
+ }
14
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction = core.serialization
42
+ .object({
43
+ arguments: core.serialization.string(),
44
+ name: core.serialization.string(),
45
+ })
46
+ .passthrough();
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { AgentFileAttachment } from "./AgentFileAttachment";
8
+ export declare const PaginatedAgentFiles: core.serialization.ObjectSchema<serializers.PaginatedAgentFiles.Raw, Letta.PaginatedAgentFiles>;
9
+ export declare namespace PaginatedAgentFiles {
10
+ interface Raw {
11
+ files: AgentFileAttachment.Raw[];
12
+ next_cursor?: string | null;
13
+ has_more: boolean;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.PaginatedAgentFiles = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const AgentFileAttachment_1 = require("./AgentFileAttachment");
42
+ exports.PaginatedAgentFiles = core.serialization.object({
43
+ files: core.serialization.list(AgentFileAttachment_1.AgentFileAttachment),
44
+ nextCursor: core.serialization.property("next_cursor", core.serialization.string().optional()),
45
+ hasMore: core.serialization.property("has_more", core.serialization.boolean()),
46
+ });
@@ -6,6 +6,7 @@ export * from "./ActionModel";
6
6
  export * from "./ActionParametersModel";
7
7
  export * from "./ActionResponseModel";
8
8
  export * from "./AgentEnvironmentVariable";
9
+ export * from "./AgentFileAttachment";
9
10
  export * from "./AgentFileSchema";
10
11
  export * from "./AgentStateToolRulesItem";
11
12
  export * from "./AgentStateResponseFormat";
@@ -48,7 +49,8 @@ export * from "./ChatCompletionFunctionCallOptionParam";
48
49
  export * from "./ChatCompletionFunctionMessageParam";
49
50
  export * from "./ChatCompletionFunctionToolParam";
50
51
  export * from "./ChatCompletionMessageCustomToolCallParam";
51
- export * from "./ChatCompletionMessageFunctionToolCall";
52
+ export * from "./ChatCompletionMessageFunctionToolCallInput";
53
+ export * from "./ChatCompletionMessageFunctionToolCallOutput";
52
54
  export * from "./ChatCompletionMessageFunctionToolCallParam";
53
55
  export * from "./ChatCompletionNamedToolChoiceCustomParam";
54
56
  export * from "./ChatCompletionNamedToolChoiceParam";
@@ -187,6 +189,7 @@ export * from "./Organization";
187
189
  export * from "./OrganizationCreate";
188
190
  export * from "./OrganizationSourcesStats";
189
191
  export * from "./OrganizationUpdate";
192
+ export * from "./PaginatedAgentFiles";
190
193
  export * from "./ParameterProperties";
191
194
  export * from "./ParametersSchema";
192
195
  export * from "./ParentToolRule";
@@ -293,6 +296,7 @@ export * from "./LettaSerializeSchemasPydanticAgentSchemaToolSchema";
293
296
  export * from "./OpenaiTypesChatChatCompletionCustomToolParamCustomFormat";
294
297
  export * from "./OpenaiTypesChatChatCompletionCustomToolParamCustom";
295
298
  export * from "./OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom";
299
+ export * from "./OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction";
296
300
  export * from "./OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction";
297
301
  export * from "./OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom";
298
302
  export * from "./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction";
@@ -22,6 +22,7 @@ __exportStar(require("./ActionModel"), exports);
22
22
  __exportStar(require("./ActionParametersModel"), exports);
23
23
  __exportStar(require("./ActionResponseModel"), exports);
24
24
  __exportStar(require("./AgentEnvironmentVariable"), exports);
25
+ __exportStar(require("./AgentFileAttachment"), exports);
25
26
  __exportStar(require("./AgentFileSchema"), exports);
26
27
  __exportStar(require("./AgentStateToolRulesItem"), exports);
27
28
  __exportStar(require("./AgentStateResponseFormat"), exports);
@@ -64,7 +65,8 @@ __exportStar(require("./ChatCompletionFunctionCallOptionParam"), exports);
64
65
  __exportStar(require("./ChatCompletionFunctionMessageParam"), exports);
65
66
  __exportStar(require("./ChatCompletionFunctionToolParam"), exports);
66
67
  __exportStar(require("./ChatCompletionMessageCustomToolCallParam"), exports);
67
- __exportStar(require("./ChatCompletionMessageFunctionToolCall"), exports);
68
+ __exportStar(require("./ChatCompletionMessageFunctionToolCallInput"), exports);
69
+ __exportStar(require("./ChatCompletionMessageFunctionToolCallOutput"), exports);
68
70
  __exportStar(require("./ChatCompletionMessageFunctionToolCallParam"), exports);
69
71
  __exportStar(require("./ChatCompletionNamedToolChoiceCustomParam"), exports);
70
72
  __exportStar(require("./ChatCompletionNamedToolChoiceParam"), exports);
@@ -203,6 +205,7 @@ __exportStar(require("./Organization"), exports);
203
205
  __exportStar(require("./OrganizationCreate"), exports);
204
206
  __exportStar(require("./OrganizationSourcesStats"), exports);
205
207
  __exportStar(require("./OrganizationUpdate"), exports);
208
+ __exportStar(require("./PaginatedAgentFiles"), exports);
206
209
  __exportStar(require("./ParameterProperties"), exports);
207
210
  __exportStar(require("./ParametersSchema"), exports);
208
211
  __exportStar(require("./ParentToolRule"), exports);
@@ -309,6 +312,7 @@ __exportStar(require("./LettaSerializeSchemasPydanticAgentSchemaToolSchema"), ex
309
312
  __exportStar(require("./OpenaiTypesChatChatCompletionCustomToolParamCustomFormat"), exports);
310
313
  __exportStar(require("./OpenaiTypesChatChatCompletionCustomToolParamCustom"), exports);
311
314
  __exportStar(require("./OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom"), exports);
315
+ __exportStar(require("./OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction"), exports);
312
316
  __exportStar(require("./OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction"), exports);
313
317
  __exportStar(require("./OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom"), exports);
314
318
  __exportStar(require("./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.182";
1
+ export declare const SDK_VERSION = "0.1.183";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.182";
4
+ exports.SDK_VERSION = "0.1.183";