@letta-ai/letta-client 0.1.158 → 0.1.160

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 (152) hide show
  1. package/api/resources/agents/client/Client.d.ts +33 -0
  2. package/api/resources/agents/client/Client.js +148 -11
  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/groups/client/Client.js +1 -1
  7. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  8. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  9. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  10. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  11. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  12. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  13. package/api/resources/batches/client/Client.js +4 -4
  14. package/api/resources/blocks/client/Client.js +6 -6
  15. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  16. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  17. package/api/resources/embeddingModels/client/Client.js +1 -1
  18. package/api/resources/groups/client/Client.js +6 -6
  19. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  20. package/api/resources/health/client/Client.js +1 -1
  21. package/api/resources/identities/client/Client.js +7 -7
  22. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  23. package/api/resources/jobs/client/Client.js +5 -5
  24. package/api/resources/messages/client/Client.js +1 -1
  25. package/api/resources/models/client/Client.js +1 -1
  26. package/api/resources/projects/client/Client.js +1 -1
  27. package/api/resources/providers/client/Client.js +5 -5
  28. package/api/resources/runs/client/Client.js +4 -4
  29. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  30. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  31. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  32. package/api/resources/sources/client/Client.js +10 -10
  33. package/api/resources/sources/resources/files/client/Client.js +3 -3
  34. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  35. package/api/resources/steps/client/Client.js +2 -2
  36. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  37. package/api/resources/tags/client/Client.js +1 -1
  38. package/api/resources/telemetry/client/Client.js +1 -1
  39. package/api/resources/templates/client/Client.js +1 -1
  40. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  41. package/api/resources/tools/client/Client.js +19 -19
  42. package/api/resources/voice/client/Client.js +1 -1
  43. package/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
  44. package/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  45. package/api/types/FileBlock.d.ts +37 -0
  46. package/api/types/FileBlock.js +5 -0
  47. package/api/types/GenerateToolInput.d.ts +15 -0
  48. package/api/types/GenerateToolInput.js +5 -0
  49. package/api/types/GenerateToolOutput.d.ts +12 -0
  50. package/api/types/GenerateToolOutput.js +5 -0
  51. package/api/types/Memory.d.ts +2 -2
  52. package/api/types/ProviderType.d.ts +3 -1
  53. package/api/types/ProviderType.js +2 -0
  54. package/api/types/index.d.ts +3 -0
  55. package/api/types/index.js +3 -0
  56. package/dist/api/resources/agents/client/Client.d.ts +33 -0
  57. package/dist/api/resources/agents/client/Client.js +148 -11
  58. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  59. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  60. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  61. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  62. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  63. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  64. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  65. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  66. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  67. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  68. package/dist/api/resources/batches/client/Client.js +4 -4
  69. package/dist/api/resources/blocks/client/Client.js +6 -6
  70. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  71. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  72. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  73. package/dist/api/resources/groups/client/Client.js +6 -6
  74. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  75. package/dist/api/resources/health/client/Client.js +1 -1
  76. package/dist/api/resources/identities/client/Client.js +7 -7
  77. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  78. package/dist/api/resources/jobs/client/Client.js +5 -5
  79. package/dist/api/resources/messages/client/Client.js +1 -1
  80. package/dist/api/resources/models/client/Client.js +1 -1
  81. package/dist/api/resources/projects/client/Client.js +1 -1
  82. package/dist/api/resources/providers/client/Client.js +5 -5
  83. package/dist/api/resources/runs/client/Client.js +4 -4
  84. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  85. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  86. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  87. package/dist/api/resources/sources/client/Client.js +10 -10
  88. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  89. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  90. package/dist/api/resources/steps/client/Client.js +2 -2
  91. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  92. package/dist/api/resources/tags/client/Client.js +1 -1
  93. package/dist/api/resources/telemetry/client/Client.js +1 -1
  94. package/dist/api/resources/templates/client/Client.js +1 -1
  95. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  96. package/dist/api/resources/tools/client/Client.js +19 -19
  97. package/dist/api/resources/voice/client/Client.js +1 -1
  98. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
  99. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  100. package/dist/api/types/FileBlock.d.ts +37 -0
  101. package/dist/api/types/FileBlock.js +5 -0
  102. package/dist/api/types/GenerateToolInput.d.ts +15 -0
  103. package/dist/api/types/GenerateToolInput.js +5 -0
  104. package/dist/api/types/GenerateToolOutput.d.ts +12 -0
  105. package/dist/api/types/GenerateToolOutput.js +5 -0
  106. package/dist/api/types/Memory.d.ts +2 -2
  107. package/dist/api/types/ProviderType.d.ts +3 -1
  108. package/dist/api/types/ProviderType.js +2 -0
  109. package/dist/api/types/index.d.ts +3 -0
  110. package/dist/api/types/index.js +3 -0
  111. package/dist/serialization/resources/agents/client/index.d.ts +1 -0
  112. package/dist/serialization/resources/agents/client/index.js +2 -1
  113. package/dist/serialization/resources/agents/client/openFile.d.ts +9 -0
  114. package/dist/serialization/resources/agents/client/openFile.js +41 -0
  115. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  116. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  117. package/dist/serialization/types/FileBlock.d.ts +27 -0
  118. package/dist/serialization/types/FileBlock.js +58 -0
  119. package/dist/serialization/types/GenerateToolInput.d.ts +16 -0
  120. package/dist/serialization/types/GenerateToolInput.js +47 -0
  121. package/dist/serialization/types/GenerateToolOutput.d.ts +15 -0
  122. package/dist/serialization/types/GenerateToolOutput.js +46 -0
  123. package/dist/serialization/types/Memory.d.ts +2 -1
  124. package/dist/serialization/types/Memory.js +2 -1
  125. package/dist/serialization/types/ProviderType.d.ts +1 -1
  126. package/dist/serialization/types/ProviderType.js +2 -0
  127. package/dist/serialization/types/index.d.ts +3 -0
  128. package/dist/serialization/types/index.js +3 -0
  129. package/dist/version.d.ts +1 -1
  130. package/dist/version.js +1 -1
  131. package/package.json +1 -1
  132. package/reference.md +149 -0
  133. package/serialization/resources/agents/client/index.d.ts +1 -0
  134. package/serialization/resources/agents/client/index.js +2 -1
  135. package/serialization/resources/agents/client/openFile.d.ts +9 -0
  136. package/serialization/resources/agents/client/openFile.js +41 -0
  137. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  138. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  139. package/serialization/types/FileBlock.d.ts +27 -0
  140. package/serialization/types/FileBlock.js +58 -0
  141. package/serialization/types/GenerateToolInput.d.ts +16 -0
  142. package/serialization/types/GenerateToolInput.js +47 -0
  143. package/serialization/types/GenerateToolOutput.d.ts +15 -0
  144. package/serialization/types/GenerateToolOutput.js +46 -0
  145. package/serialization/types/Memory.d.ts +2 -1
  146. package/serialization/types/Memory.js +2 -1
  147. package/serialization/types/ProviderType.d.ts +1 -1
  148. package/serialization/types/ProviderType.js +2 -0
  149. package/serialization/types/index.d.ts +3 -0
  150. package/serialization/types/index.js +3 -0
  151. package/version.d.ts +1 -1
  152. package/version.js +1 -1
@@ -82,7 +82,7 @@ class Voice {
82
82
  method: "POST",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.158", "User-Agent": "@letta-ai/letta-client/0.1.158", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * The endpoint type for the model.
6
6
  */
7
- export type EmbeddingConfigEmbeddingEndpointType = "openai" | "anthropic" | "bedrock" | "cohere" | "google_ai" | "google_vertex" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together";
7
+ export type EmbeddingConfigEmbeddingEndpointType = "openai" | "anthropic" | "bedrock" | "cohere" | "google_ai" | "google_vertex" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together" | "pinecone";
8
8
  export declare const EmbeddingConfigEmbeddingEndpointType: {
9
9
  readonly Openai: "openai";
10
10
  readonly Anthropic: "anthropic";
@@ -25,4 +25,5 @@ export declare const EmbeddingConfigEmbeddingEndpointType: {
25
25
  readonly HuggingFace: "hugging-face";
26
26
  readonly Mistral: "mistral";
27
27
  readonly Together: "together";
28
+ readonly Pinecone: "pinecone";
28
29
  };
@@ -24,4 +24,5 @@ exports.EmbeddingConfigEmbeddingEndpointType = {
24
24
  HuggingFace: "hugging-face",
25
25
  Mistral: "mistral",
26
26
  Together: "together",
27
+ Pinecone: "pinecone",
27
28
  };
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface FileBlock {
5
+ /** Value of the block. */
6
+ value: string;
7
+ /** Character limit of the block. */
8
+ limit?: number;
9
+ /** Name of the block if it is a template. */
10
+ name?: string;
11
+ /** Whether the block is a template (e.g. saved human/persona options). */
12
+ isTemplate?: boolean;
13
+ /** Preserve the block on template migration. */
14
+ preserveOnMigration?: boolean;
15
+ /** Label of the block (e.g. 'human', 'persona') in the context window. */
16
+ label?: string;
17
+ /** Whether the agent has read-only access to the block. */
18
+ readOnly?: boolean;
19
+ /** Description of the block. */
20
+ description?: string;
21
+ /** Metadata of the block. */
22
+ metadata?: Record<string, unknown>;
23
+ /** The human-friendly ID of the Block */
24
+ id?: string;
25
+ /** The id of the user that made this Block. */
26
+ createdById?: string;
27
+ /** The id of the user that last updated this Block. */
28
+ lastUpdatedById?: string;
29
+ /** Unique identifier of the file. */
30
+ fileId: string;
31
+ /** Unique identifier of the source. */
32
+ sourceId: string;
33
+ /** True if the agent currently has the file open. */
34
+ isOpen: boolean;
35
+ /** UTC timestamp of the agent’s most recent access to this file. Any operations from the open, close, or search tools will update this field. */
36
+ lastAccessedAt?: Date;
37
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface GenerateToolInput {
5
+ /** Name of the tool to generate code for */
6
+ toolName: string;
7
+ /** User prompt to generate code */
8
+ prompt: string;
9
+ /** Handle of the tool to generate code for */
10
+ handle?: string;
11
+ /** Python source code to parse for JSON schema */
12
+ starterCode?: string;
13
+ /** List of validation errors */
14
+ validationErrors: string[];
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface GenerateToolOutput {
6
+ /** Generated tool */
7
+ tool: Letta.Tool;
8
+ /** Sample arguments for the tool */
9
+ sampleArgs: Record<string, unknown>;
10
+ /** Response from the assistant */
11
+ response: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,8 +8,8 @@ import * as Letta from "../index";
8
8
  export interface Memory {
9
9
  /** Memory blocks contained in the agent's in-context memory */
10
10
  blocks: Letta.Block[];
11
- /** Blocks representing the agent's in-context memory of an attached file */
12
- fileBlocks?: Letta.Block[];
11
+ /** Special blocks representing the agent's in-context memory of an attached file */
12
+ fileBlocks?: Letta.FileBlock[];
13
13
  /** Jinja2 template for compiling memory blocks into a prompt string */
14
14
  promptTemplate?: string;
15
15
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ProviderType = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock";
4
+ export type ProviderType = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "cerebras" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock" | "cohere";
5
5
  export declare const ProviderType: {
6
6
  readonly Anthropic: "anthropic";
7
7
  readonly GoogleAi: "google_ai";
@@ -9,6 +9,7 @@ export declare const ProviderType: {
9
9
  readonly Openai: "openai";
10
10
  readonly Letta: "letta";
11
11
  readonly Deepseek: "deepseek";
12
+ readonly Cerebras: "cerebras";
12
13
  readonly LmstudioOpenai: "lmstudio_openai";
13
14
  readonly Xai: "xai";
14
15
  readonly Mistral: "mistral";
@@ -18,4 +19,5 @@ export declare const ProviderType: {
18
19
  readonly Azure: "azure";
19
20
  readonly Vllm: "vllm";
20
21
  readonly Bedrock: "bedrock";
22
+ readonly Cohere: "cohere";
21
23
  };
@@ -11,6 +11,7 @@ exports.ProviderType = {
11
11
  Openai: "openai",
12
12
  Letta: "letta",
13
13
  Deepseek: "deepseek",
14
+ Cerebras: "cerebras",
14
15
  LmstudioOpenai: "lmstudio_openai",
15
16
  Xai: "xai",
16
17
  Mistral: "mistral",
@@ -20,4 +21,5 @@ exports.ProviderType = {
20
21
  Azure: "azure",
21
22
  Vllm: "vllm",
22
23
  Bedrock: "bedrock",
24
+ Cohere: "cohere",
23
25
  };
@@ -93,6 +93,7 @@ export * from "./EmbeddingConfigEmbeddingEndpointType";
93
93
  export * from "./EmbeddingConfig";
94
94
  export * from "./FeedbackType";
95
95
  export * from "./File_";
96
+ export * from "./FileBlock";
96
97
  export * from "./FileFile";
97
98
  export * from "./FileMetadata";
98
99
  export * from "./FileProcessingStatus";
@@ -102,6 +103,8 @@ export * from "./FunctionCall";
102
103
  export * from "./FunctionDefinitionInput";
103
104
  export * from "./FunctionDefinitionOutput";
104
105
  export * from "./FunctionTool";
106
+ export * from "./GenerateToolInput";
107
+ export * from "./GenerateToolOutput";
105
108
  export * from "./Group";
106
109
  export * from "./HttpValidationError";
107
110
  export * from "./Health";
@@ -109,6 +109,7 @@ __exportStar(require("./EmbeddingConfigEmbeddingEndpointType"), exports);
109
109
  __exportStar(require("./EmbeddingConfig"), exports);
110
110
  __exportStar(require("./FeedbackType"), exports);
111
111
  __exportStar(require("./File_"), exports);
112
+ __exportStar(require("./FileBlock"), exports);
112
113
  __exportStar(require("./FileFile"), exports);
113
114
  __exportStar(require("./FileMetadata"), exports);
114
115
  __exportStar(require("./FileProcessingStatus"), exports);
@@ -118,6 +119,8 @@ __exportStar(require("./FunctionCall"), exports);
118
119
  __exportStar(require("./FunctionDefinitionInput"), exports);
119
120
  __exportStar(require("./FunctionDefinitionOutput"), exports);
120
121
  __exportStar(require("./FunctionTool"), exports);
122
+ __exportStar(require("./GenerateToolInput"), exports);
123
+ __exportStar(require("./GenerateToolOutput"), exports);
121
124
  __exportStar(require("./Group"), exports);
122
125
  __exportStar(require("./HttpValidationError"), exports);
123
126
  __exportStar(require("./Health"), exports);
@@ -2,4 +2,5 @@ export * as list from "./list";
2
2
  export * as count from "./count";
3
3
  export * as exportFile from "./exportFile";
4
4
  export * as closeAllOpenFiles from "./closeAllOpenFiles";
5
+ export * as openFile from "./openFile";
5
6
  export * from "./requests";
@@ -36,9 +36,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.closeAllOpenFiles = exports.exportFile = exports.count = exports.list = void 0;
39
+ exports.openFile = exports.closeAllOpenFiles = exports.exportFile = exports.count = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
41
  exports.count = __importStar(require("./count"));
42
42
  exports.exportFile = __importStar(require("./exportFile"));
43
43
  exports.closeAllOpenFiles = __importStar(require("./closeAllOpenFiles"));
44
+ exports.openFile = __importStar(require("./openFile"));
44
45
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as core from "../../../../core";
6
+ export declare const Response: core.serialization.Schema<serializers.agents.openFile.Response.Raw, string[]>;
7
+ export declare namespace Response {
8
+ type Raw = string[];
9
+ }
@@ -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.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.Response = core.serialization.list(core.serialization.string());
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const EmbeddingConfigEmbeddingEndpointType: core.serialization.Schema<serializers.EmbeddingConfigEmbeddingEndpointType.Raw, Letta.EmbeddingConfigEmbeddingEndpointType>;
8
8
  export declare namespace EmbeddingConfigEmbeddingEndpointType {
9
- type Raw = "openai" | "anthropic" | "bedrock" | "cohere" | "google_ai" | "google_vertex" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together";
9
+ type Raw = "openai" | "anthropic" | "bedrock" | "cohere" | "google_ai" | "google_vertex" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together" | "pinecone";
10
10
  }
@@ -58,4 +58,5 @@ exports.EmbeddingConfigEmbeddingEndpointType = core.serialization.enum_([
58
58
  "hugging-face",
59
59
  "mistral",
60
60
  "together",
61
+ "pinecone",
61
62
  ]);
@@ -0,0 +1,27 @@
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 FileBlock: core.serialization.ObjectSchema<serializers.FileBlock.Raw, Letta.FileBlock>;
8
+ export declare namespace FileBlock {
9
+ interface Raw {
10
+ value: string;
11
+ limit?: number | null;
12
+ name?: string | null;
13
+ is_template?: boolean | null;
14
+ preserve_on_migration?: boolean | null;
15
+ label?: string | null;
16
+ read_only?: boolean | null;
17
+ description?: string | null;
18
+ metadata?: Record<string, unknown> | null;
19
+ id?: string | null;
20
+ created_by_id?: string | null;
21
+ last_updated_by_id?: string | null;
22
+ file_id: string;
23
+ source_id: string;
24
+ is_open: boolean;
25
+ last_accessed_at?: string | null;
26
+ }
27
+ }
@@ -0,0 +1,58 @@
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.FileBlock = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.FileBlock = core.serialization.object({
42
+ value: core.serialization.string(),
43
+ limit: core.serialization.number().optional(),
44
+ name: core.serialization.string().optional(),
45
+ isTemplate: core.serialization.property("is_template", core.serialization.boolean().optional()),
46
+ preserveOnMigration: core.serialization.property("preserve_on_migration", core.serialization.boolean().optional()),
47
+ label: core.serialization.string().optional(),
48
+ readOnly: core.serialization.property("read_only", core.serialization.boolean().optional()),
49
+ description: core.serialization.string().optional(),
50
+ metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
51
+ id: core.serialization.string().optional(),
52
+ createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
53
+ lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
54
+ fileId: core.serialization.property("file_id", core.serialization.string()),
55
+ sourceId: core.serialization.property("source_id", core.serialization.string()),
56
+ isOpen: core.serialization.property("is_open", core.serialization.boolean()),
57
+ lastAccessedAt: core.serialization.property("last_accessed_at", core.serialization.date().optional()),
58
+ });
@@ -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
+ export declare const GenerateToolInput: core.serialization.ObjectSchema<serializers.GenerateToolInput.Raw, Letta.GenerateToolInput>;
8
+ export declare namespace GenerateToolInput {
9
+ interface Raw {
10
+ tool_name: string;
11
+ prompt: string;
12
+ handle?: string | null;
13
+ starter_code?: string | null;
14
+ validation_errors: string[];
15
+ }
16
+ }
@@ -0,0 +1,47 @@
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.GenerateToolInput = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.GenerateToolInput = core.serialization.object({
42
+ toolName: core.serialization.property("tool_name", core.serialization.string()),
43
+ prompt: core.serialization.string(),
44
+ handle: core.serialization.string().optional(),
45
+ starterCode: core.serialization.property("starter_code", core.serialization.string().optional()),
46
+ validationErrors: core.serialization.property("validation_errors", core.serialization.list(core.serialization.string())),
47
+ });
@@ -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 { Tool } from "./Tool";
8
+ export declare const GenerateToolOutput: core.serialization.ObjectSchema<serializers.GenerateToolOutput.Raw, Letta.GenerateToolOutput>;
9
+ export declare namespace GenerateToolOutput {
10
+ interface Raw {
11
+ tool: Tool.Raw;
12
+ sample_args: Record<string, unknown>;
13
+ response: string;
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.GenerateToolOutput = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const Tool_1 = require("./Tool");
42
+ exports.GenerateToolOutput = core.serialization.object({
43
+ tool: Tool_1.Tool,
44
+ sampleArgs: core.serialization.property("sample_args", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
45
+ response: core.serialization.string(),
46
+ });
@@ -5,11 +5,12 @@ import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { Block } from "./Block";
8
+ import { FileBlock } from "./FileBlock";
8
9
  export declare const Memory: core.serialization.ObjectSchema<serializers.Memory.Raw, Letta.Memory>;
9
10
  export declare namespace Memory {
10
11
  interface Raw {
11
12
  blocks: Block.Raw[];
12
- file_blocks?: Block.Raw[] | null;
13
+ file_blocks?: FileBlock.Raw[] | null;
13
14
  prompt_template?: string | null;
14
15
  }
15
16
  }
@@ -39,8 +39,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Memory = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const Block_1 = require("./Block");
42
+ const FileBlock_1 = require("./FileBlock");
42
43
  exports.Memory = core.serialization.object({
43
44
  blocks: core.serialization.list(Block_1.Block),
44
- fileBlocks: core.serialization.property("file_blocks", core.serialization.list(Block_1.Block).optional()),
45
+ fileBlocks: core.serialization.property("file_blocks", core.serialization.list(FileBlock_1.FileBlock).optional()),
45
46
  promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
46
47
  });
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ProviderType: core.serialization.Schema<serializers.ProviderType.Raw, Letta.ProviderType>;
8
8
  export declare namespace ProviderType {
9
- type Raw = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock";
9
+ type Raw = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "cerebras" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock" | "cohere";
10
10
  }
@@ -45,6 +45,7 @@ exports.ProviderType = core.serialization.enum_([
45
45
  "openai",
46
46
  "letta",
47
47
  "deepseek",
48
+ "cerebras",
48
49
  "lmstudio_openai",
49
50
  "xai",
50
51
  "mistral",
@@ -54,4 +55,5 @@ exports.ProviderType = core.serialization.enum_([
54
55
  "azure",
55
56
  "vllm",
56
57
  "bedrock",
58
+ "cohere",
57
59
  ]);
@@ -93,6 +93,7 @@ export * from "./EmbeddingConfigEmbeddingEndpointType";
93
93
  export * from "./EmbeddingConfig";
94
94
  export * from "./FeedbackType";
95
95
  export * from "./File_";
96
+ export * from "./FileBlock";
96
97
  export * from "./FileFile";
97
98
  export * from "./FileMetadata";
98
99
  export * from "./FileProcessingStatus";
@@ -102,6 +103,8 @@ export * from "./FunctionCall";
102
103
  export * from "./FunctionDefinitionInput";
103
104
  export * from "./FunctionDefinitionOutput";
104
105
  export * from "./FunctionTool";
106
+ export * from "./GenerateToolInput";
107
+ export * from "./GenerateToolOutput";
105
108
  export * from "./Group";
106
109
  export * from "./HttpValidationError";
107
110
  export * from "./Health";
@@ -109,6 +109,7 @@ __exportStar(require("./EmbeddingConfigEmbeddingEndpointType"), exports);
109
109
  __exportStar(require("./EmbeddingConfig"), exports);
110
110
  __exportStar(require("./FeedbackType"), exports);
111
111
  __exportStar(require("./File_"), exports);
112
+ __exportStar(require("./FileBlock"), exports);
112
113
  __exportStar(require("./FileFile"), exports);
113
114
  __exportStar(require("./FileMetadata"), exports);
114
115
  __exportStar(require("./FileProcessingStatus"), exports);
@@ -118,6 +119,8 @@ __exportStar(require("./FunctionCall"), exports);
118
119
  __exportStar(require("./FunctionDefinitionInput"), exports);
119
120
  __exportStar(require("./FunctionDefinitionOutput"), exports);
120
121
  __exportStar(require("./FunctionTool"), exports);
122
+ __exportStar(require("./GenerateToolInput"), exports);
123
+ __exportStar(require("./GenerateToolOutput"), exports);
121
124
  __exportStar(require("./Group"), exports);
122
125
  __exportStar(require("./HttpValidationError"), exports);
123
126
  __exportStar(require("./Health"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.158";
1
+ export declare const SDK_VERSION = "0.1.160";
package/dist/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.158";
4
+ exports.SDK_VERSION = "0.1.160";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.158",
3
+ "version": "0.1.160",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",