@letta-ai/letta-client 0.1.56 → 0.1.58

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 (175) hide show
  1. package/api/resources/agents/client/Client.js +13 -13
  2. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +1 -1
  3. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  4. package/api/resources/agents/resources/context/client/Client.js +1 -1
  5. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  6. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  7. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  8. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  9. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  10. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  11. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  12. package/api/resources/blocks/client/Client.js +18 -7
  13. package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +8 -0
  14. package/api/resources/health/client/Client.js +1 -1
  15. package/api/resources/identities/client/Client.js +6 -6
  16. package/api/resources/identities/client/requests/IdentityUpdate.d.ts +2 -0
  17. package/api/resources/jobs/client/Client.js +4 -4
  18. package/api/resources/models/client/Client.js +2 -2
  19. package/api/resources/providers/client/Client.js +4 -4
  20. package/api/resources/runs/client/Client.js +7 -7
  21. package/api/resources/sources/client/Client.js +6 -6
  22. package/api/resources/sources/resources/files/client/Client.js +3 -3
  23. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  24. package/api/resources/steps/client/Client.js +2 -2
  25. package/api/resources/tag/client/Client.js +1 -1
  26. package/api/resources/templates/client/Client.js +1 -1
  27. package/api/resources/tools/client/Client.js +11 -11
  28. package/api/resources/voice/client/Client.js +1 -1
  29. package/api/types/ChatCompletionUserMessageParamContentItem.d.ts +1 -1
  30. package/api/types/CompletionCreateParamsNonStreaming.d.ts +1 -0
  31. package/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  32. package/api/types/CompletionCreateParamsNonStreamingResponseFormat.d.ts +1 -1
  33. package/api/types/CompletionCreateParamsStreaming.d.ts +1 -0
  34. package/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  35. package/api/types/CompletionCreateParamsStreamingResponseFormat.d.ts +1 -1
  36. package/api/types/FileFile.d.ts +8 -0
  37. package/api/types/FileFile.js +5 -0
  38. package/api/types/File_.d.ts +8 -0
  39. package/api/types/File_.js +5 -0
  40. package/api/types/Identity.d.ts +2 -0
  41. package/api/types/IdentityCreate.d.ts +2 -0
  42. package/api/types/WebSearchOptions.d.ts +8 -0
  43. package/api/types/WebSearchOptions.js +5 -0
  44. package/api/types/WebSearchOptionsSearchContextSize.d.ts +9 -0
  45. package/api/types/WebSearchOptionsSearchContextSize.js +11 -0
  46. package/api/types/WebSearchOptionsUserLocation.d.ts +8 -0
  47. package/api/types/WebSearchOptionsUserLocation.js +5 -0
  48. package/api/types/WebSearchOptionsUserLocationApproximate.d.ts +9 -0
  49. package/api/types/WebSearchOptionsUserLocationApproximate.js +5 -0
  50. package/api/types/index.d.ts +6 -0
  51. package/api/types/index.js +6 -0
  52. package/dist/api/resources/agents/client/Client.js +13 -13
  53. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +1 -1
  54. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  55. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  56. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  57. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  58. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  59. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  60. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  61. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  62. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  63. package/dist/api/resources/blocks/client/Client.js +18 -7
  64. package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +8 -0
  65. package/dist/api/resources/health/client/Client.js +1 -1
  66. package/dist/api/resources/identities/client/Client.js +6 -6
  67. package/dist/api/resources/identities/client/requests/IdentityUpdate.d.ts +2 -0
  68. package/dist/api/resources/jobs/client/Client.js +4 -4
  69. package/dist/api/resources/models/client/Client.js +2 -2
  70. package/dist/api/resources/providers/client/Client.js +4 -4
  71. package/dist/api/resources/runs/client/Client.js +7 -7
  72. package/dist/api/resources/sources/client/Client.js +6 -6
  73. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  74. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  75. package/dist/api/resources/steps/client/Client.js +2 -2
  76. package/dist/api/resources/tag/client/Client.js +1 -1
  77. package/dist/api/resources/templates/client/Client.js +1 -1
  78. package/dist/api/resources/tools/client/Client.js +11 -11
  79. package/dist/api/resources/voice/client/Client.js +1 -1
  80. package/dist/api/types/ChatCompletionUserMessageParamContentItem.d.ts +1 -1
  81. package/dist/api/types/CompletionCreateParamsNonStreaming.d.ts +1 -0
  82. package/dist/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  83. package/dist/api/types/CompletionCreateParamsNonStreamingResponseFormat.d.ts +1 -1
  84. package/dist/api/types/CompletionCreateParamsStreaming.d.ts +1 -0
  85. package/dist/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  86. package/dist/api/types/CompletionCreateParamsStreamingResponseFormat.d.ts +1 -1
  87. package/dist/api/types/FileFile.d.ts +8 -0
  88. package/dist/api/types/FileFile.js +5 -0
  89. package/dist/api/types/File_.d.ts +8 -0
  90. package/dist/api/types/File_.js +5 -0
  91. package/dist/api/types/Identity.d.ts +2 -0
  92. package/dist/api/types/IdentityCreate.d.ts +2 -0
  93. package/dist/api/types/WebSearchOptions.d.ts +8 -0
  94. package/dist/api/types/WebSearchOptions.js +5 -0
  95. package/dist/api/types/WebSearchOptionsSearchContextSize.d.ts +9 -0
  96. package/dist/api/types/WebSearchOptionsSearchContextSize.js +11 -0
  97. package/dist/api/types/WebSearchOptionsUserLocation.d.ts +8 -0
  98. package/dist/api/types/WebSearchOptionsUserLocation.js +5 -0
  99. package/dist/api/types/WebSearchOptionsUserLocationApproximate.d.ts +9 -0
  100. package/dist/api/types/WebSearchOptionsUserLocationApproximate.js +5 -0
  101. package/dist/api/types/index.d.ts +6 -0
  102. package/dist/api/types/index.js +6 -0
  103. package/dist/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +1 -0
  104. package/dist/serialization/resources/identities/client/requests/IdentityUpdate.js +1 -0
  105. package/dist/serialization/types/ChatCompletionUserMessageParamContentItem.d.ts +2 -1
  106. package/dist/serialization/types/ChatCompletionUserMessageParamContentItem.js +2 -0
  107. package/dist/serialization/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
  108. package/dist/serialization/types/CompletionCreateParamsNonStreaming.js +2 -0
  109. package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  110. package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.js +3 -0
  111. package/dist/serialization/types/CompletionCreateParamsNonStreamingResponseFormat.d.ts +2 -2
  112. package/dist/serialization/types/CompletionCreateParamsNonStreamingResponseFormat.js +2 -2
  113. package/dist/serialization/types/CompletionCreateParamsStreaming.d.ts +2 -0
  114. package/dist/serialization/types/CompletionCreateParamsStreaming.js +2 -0
  115. package/dist/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  116. package/dist/serialization/types/CompletionCreateParamsStreamingModel.js +3 -0
  117. package/dist/serialization/types/CompletionCreateParamsStreamingResponseFormat.d.ts +2 -2
  118. package/dist/serialization/types/CompletionCreateParamsStreamingResponseFormat.js +2 -2
  119. package/dist/serialization/types/FileFile.d.ts +14 -0
  120. package/dist/serialization/types/FileFile.js +45 -0
  121. package/dist/serialization/types/File_.d.ts +14 -0
  122. package/dist/serialization/types/File_.js +45 -0
  123. package/dist/serialization/types/Identity.d.ts +1 -0
  124. package/dist/serialization/types/Identity.js +1 -0
  125. package/dist/serialization/types/IdentityCreate.d.ts +1 -0
  126. package/dist/serialization/types/IdentityCreate.js +1 -0
  127. package/dist/serialization/types/WebSearchOptions.d.ts +15 -0
  128. package/dist/serialization/types/WebSearchOptions.js +46 -0
  129. package/dist/serialization/types/WebSearchOptionsSearchContextSize.d.ts +10 -0
  130. package/dist/serialization/types/WebSearchOptionsSearchContextSize.js +41 -0
  131. package/dist/serialization/types/WebSearchOptionsUserLocation.d.ts +14 -0
  132. package/dist/serialization/types/WebSearchOptionsUserLocation.js +45 -0
  133. package/dist/serialization/types/WebSearchOptionsUserLocationApproximate.d.ts +15 -0
  134. package/dist/serialization/types/WebSearchOptionsUserLocationApproximate.js +46 -0
  135. package/dist/serialization/types/index.d.ts +6 -0
  136. package/dist/serialization/types/index.js +6 -0
  137. package/dist/version.d.ts +1 -1
  138. package/dist/version.js +1 -1
  139. package/package.json +1 -1
  140. package/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +1 -0
  141. package/serialization/resources/identities/client/requests/IdentityUpdate.js +1 -0
  142. package/serialization/types/ChatCompletionUserMessageParamContentItem.d.ts +2 -1
  143. package/serialization/types/ChatCompletionUserMessageParamContentItem.js +2 -0
  144. package/serialization/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
  145. package/serialization/types/CompletionCreateParamsNonStreaming.js +2 -0
  146. package/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  147. package/serialization/types/CompletionCreateParamsNonStreamingModel.js +3 -0
  148. package/serialization/types/CompletionCreateParamsNonStreamingResponseFormat.d.ts +2 -2
  149. package/serialization/types/CompletionCreateParamsNonStreamingResponseFormat.js +2 -2
  150. package/serialization/types/CompletionCreateParamsStreaming.d.ts +2 -0
  151. package/serialization/types/CompletionCreateParamsStreaming.js +2 -0
  152. package/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  153. package/serialization/types/CompletionCreateParamsStreamingModel.js +3 -0
  154. package/serialization/types/CompletionCreateParamsStreamingResponseFormat.d.ts +2 -2
  155. package/serialization/types/CompletionCreateParamsStreamingResponseFormat.js +2 -2
  156. package/serialization/types/FileFile.d.ts +14 -0
  157. package/serialization/types/FileFile.js +45 -0
  158. package/serialization/types/File_.d.ts +14 -0
  159. package/serialization/types/File_.js +45 -0
  160. package/serialization/types/Identity.d.ts +1 -0
  161. package/serialization/types/Identity.js +1 -0
  162. package/serialization/types/IdentityCreate.d.ts +1 -0
  163. package/serialization/types/IdentityCreate.js +1 -0
  164. package/serialization/types/WebSearchOptions.d.ts +15 -0
  165. package/serialization/types/WebSearchOptions.js +46 -0
  166. package/serialization/types/WebSearchOptionsSearchContextSize.d.ts +10 -0
  167. package/serialization/types/WebSearchOptionsSearchContextSize.js +41 -0
  168. package/serialization/types/WebSearchOptionsUserLocation.d.ts +14 -0
  169. package/serialization/types/WebSearchOptionsUserLocation.js +45 -0
  170. package/serialization/types/WebSearchOptionsUserLocationApproximate.d.ts +15 -0
  171. package/serialization/types/WebSearchOptionsUserLocationApproximate.js +46 -0
  172. package/serialization/types/index.d.ts +6 -0
  173. package/serialization/types/index.js +6 -0
  174. package/version.d.ts +1 -1
  175. package/version.js +1 -1
@@ -48,6 +48,9 @@ exports.CompletionCreateParamsStreamingModel = core.serialization.undiscriminate
48
48
  core.serialization.stringLiteral("o1-preview-2024-09-12"),
49
49
  core.serialization.stringLiteral("o1-mini"),
50
50
  core.serialization.stringLiteral("o1-mini-2024-09-12"),
51
+ core.serialization.stringLiteral("computer-use-preview"),
52
+ core.serialization.stringLiteral("computer-use-preview-2025-02-04"),
53
+ core.serialization.stringLiteral("computer-use-preview-2025-03-11"),
51
54
  core.serialization.stringLiteral("gpt-4.5-preview"),
52
55
  core.serialization.stringLiteral("gpt-4.5-preview-2025-02-27"),
53
56
  core.serialization.stringLiteral("gpt-4o"),
@@ -5,9 +5,9 @@ import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { ResponseFormatText } from "./ResponseFormatText";
8
- import { ResponseFormatJsonObject } from "./ResponseFormatJsonObject";
9
8
  import { ResponseFormatJsonSchema } from "./ResponseFormatJsonSchema";
9
+ import { ResponseFormatJsonObject } from "./ResponseFormatJsonObject";
10
10
  export declare const CompletionCreateParamsStreamingResponseFormat: core.serialization.Schema<serializers.CompletionCreateParamsStreamingResponseFormat.Raw, Letta.CompletionCreateParamsStreamingResponseFormat>;
11
11
  export declare namespace CompletionCreateParamsStreamingResponseFormat {
12
- type Raw = ResponseFormatText.Raw | ResponseFormatJsonObject.Raw | ResponseFormatJsonSchema.Raw;
12
+ type Raw = ResponseFormatText.Raw | ResponseFormatJsonSchema.Raw | ResponseFormatJsonObject.Raw;
13
13
  }
@@ -39,6 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CompletionCreateParamsStreamingResponseFormat = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const ResponseFormatText_1 = require("./ResponseFormatText");
42
- const ResponseFormatJsonObject_1 = require("./ResponseFormatJsonObject");
43
42
  const ResponseFormatJsonSchema_1 = require("./ResponseFormatJsonSchema");
44
- exports.CompletionCreateParamsStreamingResponseFormat = core.serialization.undiscriminatedUnion([ResponseFormatText_1.ResponseFormatText, ResponseFormatJsonObject_1.ResponseFormatJsonObject, ResponseFormatJsonSchema_1.ResponseFormatJsonSchema]);
43
+ const ResponseFormatJsonObject_1 = require("./ResponseFormatJsonObject");
44
+ exports.CompletionCreateParamsStreamingResponseFormat = core.serialization.undiscriminatedUnion([ResponseFormatText_1.ResponseFormatText, ResponseFormatJsonSchema_1.ResponseFormatJsonSchema, ResponseFormatJsonObject_1.ResponseFormatJsonObject]);
@@ -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 FileFile: core.serialization.ObjectSchema<serializers.FileFile.Raw, Letta.FileFile>;
8
+ export declare namespace FileFile {
9
+ interface Raw {
10
+ file_data?: string | null;
11
+ file_id?: string | null;
12
+ file_name?: string | null;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.FileFile = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.FileFile = core.serialization.object({
42
+ fileData: core.serialization.property("file_data", core.serialization.string().optional()),
43
+ fileId: core.serialization.property("file_id", core.serialization.string().optional()),
44
+ fileName: core.serialization.property("file_name", core.serialization.string().optional()),
45
+ });
@@ -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
+ import { FileFile } from "./FileFile";
8
+ export declare const File_: core.serialization.ObjectSchema<serializers.File_.Raw, Letta.File_>;
9
+ export declare namespace File_ {
10
+ interface Raw {
11
+ file: FileFile.Raw;
12
+ type: "file";
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.File_ = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const FileFile_1 = require("./FileFile");
42
+ exports.File_ = core.serialization.object({
43
+ file: FileFile_1.FileFile,
44
+ type: core.serialization.stringLiteral("file"),
45
+ });
@@ -15,6 +15,7 @@ export declare namespace Identity {
15
15
  identity_type: IdentityType.Raw;
16
16
  project_id?: string | null;
17
17
  agent_ids: string[];
18
+ block_ids: string[];
18
19
  properties?: IdentityProperty.Raw[] | null;
19
20
  }
20
21
  }
@@ -47,5 +47,6 @@ exports.Identity = core.serialization.object({
47
47
  identityType: core.serialization.property("identity_type", IdentityType_1.IdentityType),
48
48
  projectId: core.serialization.property("project_id", core.serialization.string().optional()),
49
49
  agentIds: core.serialization.property("agent_ids", core.serialization.list(core.serialization.string())),
50
+ blockIds: core.serialization.property("block_ids", core.serialization.list(core.serialization.string())),
50
51
  properties: core.serialization.list(IdentityProperty_1.IdentityProperty).optional(),
51
52
  });
@@ -14,6 +14,7 @@ export declare namespace IdentityCreate {
14
14
  identity_type: IdentityType.Raw;
15
15
  project_id?: string | null;
16
16
  agent_ids?: string[] | null;
17
+ block_ids?: string[] | null;
17
18
  properties?: IdentityProperty.Raw[] | null;
18
19
  }
19
20
  }
@@ -46,5 +46,6 @@ exports.IdentityCreate = core.serialization.object({
46
46
  identityType: core.serialization.property("identity_type", IdentityType_1.IdentityType),
47
47
  projectId: core.serialization.property("project_id", core.serialization.string().optional()),
48
48
  agentIds: core.serialization.property("agent_ids", core.serialization.list(core.serialization.string()).optional()),
49
+ blockIds: core.serialization.property("block_ids", core.serialization.list(core.serialization.string()).optional()),
49
50
  properties: core.serialization.list(IdentityProperty_1.IdentityProperty).optional(),
50
51
  });
@@ -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 { WebSearchOptionsSearchContextSize } from "./WebSearchOptionsSearchContextSize";
8
+ import { WebSearchOptionsUserLocation } from "./WebSearchOptionsUserLocation";
9
+ export declare const WebSearchOptions: core.serialization.ObjectSchema<serializers.WebSearchOptions.Raw, Letta.WebSearchOptions>;
10
+ export declare namespace WebSearchOptions {
11
+ interface Raw {
12
+ search_context_size?: WebSearchOptionsSearchContextSize.Raw | null;
13
+ user_location?: WebSearchOptionsUserLocation.Raw | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.WebSearchOptions = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const WebSearchOptionsSearchContextSize_1 = require("./WebSearchOptionsSearchContextSize");
42
+ const WebSearchOptionsUserLocation_1 = require("./WebSearchOptionsUserLocation");
43
+ exports.WebSearchOptions = core.serialization.object({
44
+ searchContextSize: core.serialization.property("search_context_size", WebSearchOptionsSearchContextSize_1.WebSearchOptionsSearchContextSize.optional()),
45
+ userLocation: core.serialization.property("user_location", WebSearchOptionsUserLocation_1.WebSearchOptionsUserLocation.optional()),
46
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const WebSearchOptionsSearchContextSize: core.serialization.Schema<serializers.WebSearchOptionsSearchContextSize.Raw, Letta.WebSearchOptionsSearchContextSize>;
8
+ export declare namespace WebSearchOptionsSearchContextSize {
9
+ type Raw = "low" | "medium" | "high";
10
+ }
@@ -0,0 +1,41 @@
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.WebSearchOptionsSearchContextSize = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.WebSearchOptionsSearchContextSize = core.serialization.enum_(["low", "medium", "high"]);
@@ -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
+ import { WebSearchOptionsUserLocationApproximate } from "./WebSearchOptionsUserLocationApproximate";
8
+ export declare const WebSearchOptionsUserLocation: core.serialization.ObjectSchema<serializers.WebSearchOptionsUserLocation.Raw, Letta.WebSearchOptionsUserLocation>;
9
+ export declare namespace WebSearchOptionsUserLocation {
10
+ interface Raw {
11
+ approximate: WebSearchOptionsUserLocationApproximate.Raw;
12
+ type: "approximate";
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.WebSearchOptionsUserLocation = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const WebSearchOptionsUserLocationApproximate_1 = require("./WebSearchOptionsUserLocationApproximate");
42
+ exports.WebSearchOptionsUserLocation = core.serialization.object({
43
+ approximate: WebSearchOptionsUserLocationApproximate_1.WebSearchOptionsUserLocationApproximate,
44
+ type: core.serialization.stringLiteral("approximate"),
45
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const WebSearchOptionsUserLocationApproximate: core.serialization.ObjectSchema<serializers.WebSearchOptionsUserLocationApproximate.Raw, Letta.WebSearchOptionsUserLocationApproximate>;
8
+ export declare namespace WebSearchOptionsUserLocationApproximate {
9
+ interface Raw {
10
+ city?: string | null;
11
+ country?: string | null;
12
+ region?: string | null;
13
+ timezone?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.WebSearchOptionsUserLocationApproximate = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.WebSearchOptionsUserLocationApproximate = core.serialization.object({
42
+ city: core.serialization.string().optional(),
43
+ country: core.serialization.string().optional(),
44
+ region: core.serialization.string().optional(),
45
+ timezone: core.serialization.string().optional(),
46
+ });
@@ -76,6 +76,8 @@ export * from "./CreateBlock";
76
76
  export * from "./E2BSandboxConfig";
77
77
  export * from "./EmbeddingConfigEmbeddingEndpointType";
78
78
  export * from "./EmbeddingConfig";
79
+ export * from "./File_";
80
+ export * from "./FileFile";
79
81
  export * from "./FileMetadata";
80
82
  export * from "./FunctionOutput";
81
83
  export * from "./FunctionCall";
@@ -164,6 +166,10 @@ export * from "./UserMessage";
164
166
  export * from "./UserUpdate";
165
167
  export * from "./ValidationErrorLocItem";
166
168
  export * from "./ValidationError";
169
+ export * from "./WebSearchOptionsSearchContextSize";
170
+ export * from "./WebSearchOptions";
171
+ export * from "./WebSearchOptionsUserLocation";
172
+ export * from "./WebSearchOptionsUserLocationApproximate";
167
173
  export * from "./OpenaiTypesChatChatCompletionMessageToolCallParamFunction";
168
174
  export * from "./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction";
169
175
  export * from "./OpenaiTypesChatCompletionCreateParamsFunction";
@@ -92,6 +92,8 @@ __exportStar(require("./CreateBlock"), exports);
92
92
  __exportStar(require("./E2BSandboxConfig"), exports);
93
93
  __exportStar(require("./EmbeddingConfigEmbeddingEndpointType"), exports);
94
94
  __exportStar(require("./EmbeddingConfig"), exports);
95
+ __exportStar(require("./File_"), exports);
96
+ __exportStar(require("./FileFile"), exports);
95
97
  __exportStar(require("./FileMetadata"), exports);
96
98
  __exportStar(require("./FunctionOutput"), exports);
97
99
  __exportStar(require("./FunctionCall"), exports);
@@ -180,6 +182,10 @@ __exportStar(require("./UserMessage"), exports);
180
182
  __exportStar(require("./UserUpdate"), exports);
181
183
  __exportStar(require("./ValidationErrorLocItem"), exports);
182
184
  __exportStar(require("./ValidationError"), exports);
185
+ __exportStar(require("./WebSearchOptionsSearchContextSize"), exports);
186
+ __exportStar(require("./WebSearchOptions"), exports);
187
+ __exportStar(require("./WebSearchOptionsUserLocation"), exports);
188
+ __exportStar(require("./WebSearchOptionsUserLocationApproximate"), exports);
183
189
  __exportStar(require("./OpenaiTypesChatChatCompletionMessageToolCallParamFunction"), exports);
184
190
  __exportStar(require("./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction"), exports);
185
191
  __exportStar(require("./OpenaiTypesChatCompletionCreateParamsFunction"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.56";
1
+ export declare const SDK_VERSION = "0.1.58";
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.56";
4
+ exports.SDK_VERSION = "0.1.58";