@letta-ai/letta-client 0.1.121 → 0.1.123

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 (138) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +17 -12
  3. package/api/resources/agents/client/Client.js +9 -9
  4. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  5. package/api/resources/agents/resources/context/client/Client.js +1 -1
  6. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  7. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +6 -6
  10. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  11. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  12. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  13. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  14. package/api/resources/batches/client/Client.js +4 -4
  15. package/api/resources/blocks/client/Client.js +6 -6
  16. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  17. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  18. package/api/resources/embeddingModels/client/Client.d.ts +2 -0
  19. package/api/resources/embeddingModels/client/Client.js +3 -1
  20. package/api/resources/groups/client/Client.js +6 -6
  21. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  22. package/api/resources/health/client/Client.js +1 -1
  23. package/api/resources/identities/client/Client.js +7 -7
  24. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  25. package/api/resources/index.d.ts +1 -0
  26. package/api/resources/index.js +2 -1
  27. package/api/resources/jobs/client/Client.js +4 -4
  28. package/api/resources/messages/client/Client.js +1 -1
  29. package/api/resources/models/client/Client.d.ts +2 -0
  30. package/api/resources/models/client/Client.js +3 -1
  31. package/api/resources/projects/client/Client.js +1 -1
  32. package/api/resources/providers/client/Client.js +5 -5
  33. package/api/resources/runs/client/Client.js +4 -4
  34. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  35. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  36. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  37. package/api/resources/sources/client/Client.js +7 -7
  38. package/api/resources/sources/resources/files/client/Client.js +3 -3
  39. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  40. package/api/resources/steps/client/Client.js +2 -2
  41. package/api/resources/tags/client/Client.js +1 -1
  42. package/api/resources/telemetry/client/Client.d.ts +42 -0
  43. package/api/resources/telemetry/client/Client.js +132 -0
  44. package/api/resources/telemetry/client/index.d.ts +1 -0
  45. package/api/resources/telemetry/client/index.js +2 -0
  46. package/api/resources/telemetry/index.d.ts +1 -0
  47. package/api/resources/telemetry/index.js +17 -0
  48. package/api/resources/templates/client/Client.js +1 -1
  49. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  50. package/api/resources/tools/client/Client.js +17 -17
  51. package/api/resources/voice/client/Client.js +1 -1
  52. package/api/types/ProviderTrace.d.ts +32 -0
  53. package/api/types/ProviderTrace.js +5 -0
  54. package/api/types/Step.d.ts +2 -0
  55. package/api/types/ToolType.d.ts +2 -1
  56. package/api/types/ToolType.js +1 -0
  57. package/api/types/index.d.ts +1 -0
  58. package/api/types/index.js +1 -0
  59. package/dist/Client.d.ts +3 -0
  60. package/dist/Client.js +17 -12
  61. package/dist/api/resources/agents/client/Client.js +9 -9
  62. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  63. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  64. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  65. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  66. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  67. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  68. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  69. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  70. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  71. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  72. package/dist/api/resources/batches/client/Client.js +4 -4
  73. package/dist/api/resources/blocks/client/Client.js +6 -6
  74. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  75. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  76. package/dist/api/resources/embeddingModels/client/Client.d.ts +2 -0
  77. package/dist/api/resources/embeddingModels/client/Client.js +3 -1
  78. package/dist/api/resources/groups/client/Client.js +6 -6
  79. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  80. package/dist/api/resources/health/client/Client.js +1 -1
  81. package/dist/api/resources/identities/client/Client.js +7 -7
  82. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  83. package/dist/api/resources/index.d.ts +1 -0
  84. package/dist/api/resources/index.js +2 -1
  85. package/dist/api/resources/jobs/client/Client.js +4 -4
  86. package/dist/api/resources/messages/client/Client.js +1 -1
  87. package/dist/api/resources/models/client/Client.d.ts +2 -0
  88. package/dist/api/resources/models/client/Client.js +3 -1
  89. package/dist/api/resources/projects/client/Client.js +1 -1
  90. package/dist/api/resources/providers/client/Client.js +5 -5
  91. package/dist/api/resources/runs/client/Client.js +4 -4
  92. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  93. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  94. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  95. package/dist/api/resources/sources/client/Client.js +7 -7
  96. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  97. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  98. package/dist/api/resources/steps/client/Client.js +2 -2
  99. package/dist/api/resources/tags/client/Client.js +1 -1
  100. package/dist/api/resources/telemetry/client/Client.d.ts +42 -0
  101. package/dist/api/resources/telemetry/client/Client.js +132 -0
  102. package/dist/api/resources/telemetry/client/index.d.ts +1 -0
  103. package/dist/api/resources/telemetry/client/index.js +2 -0
  104. package/dist/api/resources/telemetry/index.d.ts +1 -0
  105. package/dist/api/resources/telemetry/index.js +17 -0
  106. package/dist/api/resources/templates/client/Client.js +1 -1
  107. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  108. package/dist/api/resources/tools/client/Client.js +17 -17
  109. package/dist/api/resources/voice/client/Client.js +1 -1
  110. package/dist/api/types/ProviderTrace.d.ts +32 -0
  111. package/dist/api/types/ProviderTrace.js +5 -0
  112. package/dist/api/types/Step.d.ts +2 -0
  113. package/dist/api/types/ToolType.d.ts +2 -1
  114. package/dist/api/types/ToolType.js +1 -0
  115. package/dist/api/types/index.d.ts +1 -0
  116. package/dist/api/types/index.js +1 -0
  117. package/dist/serialization/types/ProviderTrace.d.ts +19 -0
  118. package/dist/serialization/types/ProviderTrace.js +50 -0
  119. package/dist/serialization/types/Step.d.ts +1 -0
  120. package/dist/serialization/types/Step.js +1 -0
  121. package/dist/serialization/types/ToolType.d.ts +1 -1
  122. package/dist/serialization/types/ToolType.js +1 -0
  123. package/dist/serialization/types/index.d.ts +1 -0
  124. package/dist/serialization/types/index.js +1 -0
  125. package/dist/version.d.ts +1 -1
  126. package/dist/version.js +1 -1
  127. package/package.json +1 -1
  128. package/reference.md +80 -0
  129. package/serialization/types/ProviderTrace.d.ts +19 -0
  130. package/serialization/types/ProviderTrace.js +50 -0
  131. package/serialization/types/Step.d.ts +1 -0
  132. package/serialization/types/Step.js +1 -0
  133. package/serialization/types/ToolType.d.ts +1 -1
  134. package/serialization/types/ToolType.js +1 -0
  135. package/serialization/types/index.d.ts +1 -0
  136. package/serialization/types/index.js +1 -0
  137. package/version.d.ts +1 -1
  138. package/version.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.121",
3
+ "version": "0.1.123",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2893,6 +2893,21 @@ await client.identities.modify("identity_id");
2893
2893
  <dl>
2894
2894
  <dd>
2895
2895
 
2896
+ #### 📝 Description
2897
+
2898
+ <dl>
2899
+ <dd>
2900
+
2901
+ <dl>
2902
+ <dd>
2903
+
2904
+ List available LLM models using the asynchronous implementation for improved performance
2905
+
2906
+ </dd>
2907
+ </dl>
2908
+ </dd>
2909
+ </dl>
2910
+
2896
2911
  #### 🔌 Usage
2897
2912
 
2898
2913
  <dl>
@@ -2943,6 +2958,21 @@ await client.models.list();
2943
2958
  <dl>
2944
2959
  <dd>
2945
2960
 
2961
+ #### 📝 Description
2962
+
2963
+ <dl>
2964
+ <dd>
2965
+
2966
+ <dl>
2967
+ <dd>
2968
+
2969
+ List available embedding models using the asynchronous implementation for improved performance
2970
+
2971
+ </dd>
2972
+ </dl>
2973
+ </dd>
2974
+ </dl>
2975
+
2946
2976
  #### 🔌 Usage
2947
2977
 
2948
2978
  <dl>
@@ -4342,6 +4372,56 @@ await client.tags.list();
4342
4372
  </dl>
4343
4373
  </details>
4344
4374
 
4375
+ ## Telemetry
4376
+
4377
+ <details><summary><code>client.telemetry.<a href="/src/api/resources/telemetry/client/Client.ts">retrieveProviderTrace</a>(stepId) -> Letta.ProviderTrace</code></summary>
4378
+ <dl>
4379
+ <dd>
4380
+
4381
+ #### 🔌 Usage
4382
+
4383
+ <dl>
4384
+ <dd>
4385
+
4386
+ <dl>
4387
+ <dd>
4388
+
4389
+ ```typescript
4390
+ await client.telemetry.retrieveProviderTrace("step_id");
4391
+ ```
4392
+
4393
+ </dd>
4394
+ </dl>
4395
+ </dd>
4396
+ </dl>
4397
+
4398
+ #### ⚙️ Parameters
4399
+
4400
+ <dl>
4401
+ <dd>
4402
+
4403
+ <dl>
4404
+ <dd>
4405
+
4406
+ **stepId:** `string`
4407
+
4408
+ </dd>
4409
+ </dl>
4410
+
4411
+ <dl>
4412
+ <dd>
4413
+
4414
+ **requestOptions:** `Telemetry.RequestOptions`
4415
+
4416
+ </dd>
4417
+ </dl>
4418
+ </dd>
4419
+ </dl>
4420
+
4421
+ </dd>
4422
+ </dl>
4423
+ </details>
4424
+
4345
4425
  ## Batches
4346
4426
 
4347
4427
  <details><summary><code>client.batches.<a href="/src/api/resources/batches/client/Client.ts">list</a>() -> Letta.BatchJob[]</code></summary>
@@ -0,0 +1,19 @@
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 ProviderTrace: core.serialization.ObjectSchema<serializers.ProviderTrace.Raw, Letta.ProviderTrace>;
8
+ export declare namespace ProviderTrace {
9
+ interface Raw {
10
+ created_by_id?: string | null;
11
+ last_updated_by_id?: string | null;
12
+ created_at?: string | null;
13
+ updated_at?: string | null;
14
+ id?: string | null;
15
+ request_json: Record<string, unknown>;
16
+ response_json: Record<string, unknown>;
17
+ step_id?: string | null;
18
+ }
19
+ }
@@ -0,0 +1,50 @@
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.ProviderTrace = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ProviderTrace = core.serialization.object({
42
+ createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
43
+ lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
44
+ createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
45
+ updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
46
+ id: core.serialization.string().optional(),
47
+ requestJson: core.serialization.property("request_json", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
48
+ responseJson: core.serialization.property("response_json", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
50
+ });
@@ -14,6 +14,7 @@ export declare namespace Step {
14
14
  job_id?: string | null;
15
15
  agent_id?: string | null;
16
16
  provider_name?: string | null;
17
+ provider_category?: string | null;
17
18
  model?: string | null;
18
19
  model_endpoint?: string | null;
19
20
  context_window_limit?: number | null;
@@ -46,6 +46,7 @@ exports.Step = core.serialization.object({
46
46
  jobId: core.serialization.property("job_id", core.serialization.string().optional()),
47
47
  agentId: core.serialization.property("agent_id", core.serialization.string().optional()),
48
48
  providerName: core.serialization.property("provider_name", core.serialization.string().optional()),
49
+ providerCategory: core.serialization.property("provider_category", core.serialization.string().optional()),
49
50
  model: core.serialization.string().optional(),
50
51
  modelEndpoint: core.serialization.property("model_endpoint", core.serialization.string().optional()),
51
52
  contextWindowLimit: core.serialization.property("context_window_limit", core.serialization.number().optional()),
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ToolType: core.serialization.Schema<serializers.ToolType.Raw, Letta.ToolType>;
8
8
  export declare namespace ToolType {
9
- type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "letta_sleeptime_core" | "letta_voice_sleeptime_core" | "external_composio" | "external_langchain" | "external_mcp";
9
+ type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "letta_sleeptime_core" | "letta_voice_sleeptime_core" | "letta_builtin" | "external_composio" | "external_langchain" | "external_mcp";
10
10
  }
@@ -45,6 +45,7 @@ exports.ToolType = core.serialization.enum_([
45
45
  "letta_multi_agent_core",
46
46
  "letta_sleeptime_core",
47
47
  "letta_voice_sleeptime_core",
48
+ "letta_builtin",
48
49
  "external_composio",
49
50
  "external_langchain",
50
51
  "external_mcp",
@@ -152,6 +152,7 @@ export * from "./Passage";
152
152
  export * from "./PipRequirement";
153
153
  export * from "./Provider";
154
154
  export * from "./ProviderCategory";
155
+ export * from "./ProviderTrace";
155
156
  export * from "./ProviderType";
156
157
  export * from "./ReasoningContent";
157
158
  export * from "./ReasoningMessageSource";
@@ -168,6 +168,7 @@ __exportStar(require("./Passage"), exports);
168
168
  __exportStar(require("./PipRequirement"), exports);
169
169
  __exportStar(require("./Provider"), exports);
170
170
  __exportStar(require("./ProviderCategory"), exports);
171
+ __exportStar(require("./ProviderTrace"), exports);
171
172
  __exportStar(require("./ProviderType"), exports);
172
173
  __exportStar(require("./ReasoningContent"), exports);
173
174
  __exportStar(require("./ReasoningMessageSource"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.121";
1
+ export declare const SDK_VERSION = "0.1.123";
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.121";
4
+ exports.SDK_VERSION = "0.1.123";