@letta-ai/letta-client 0.1.85 → 0.1.87

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 (98) hide show
  1. package/api/resources/agents/client/Client.d.ts +13 -0
  2. package/api/resources/agents/client/Client.js +82 -10
  3. package/api/resources/agents/client/requests/ListAgentGroupsRequest.d.ts +13 -0
  4. package/api/resources/agents/client/requests/ListAgentGroupsRequest.js +5 -0
  5. package/api/resources/agents/client/requests/index.d.ts +1 -0
  6. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  7. package/api/resources/agents/resources/context/client/Client.js +1 -1
  8. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  9. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  10. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  11. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  12. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  13. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  14. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  15. package/api/resources/blocks/client/Client.js +6 -6
  16. package/api/resources/groups/client/Client.js +6 -6
  17. package/api/resources/groups/resources/messages/client/Client.js +4 -4
  18. package/api/resources/health/client/Client.js +1 -1
  19. package/api/resources/identities/client/Client.js +7 -7
  20. package/api/resources/jobs/client/Client.js +4 -4
  21. package/api/resources/models/client/Client.js +2 -2
  22. package/api/resources/providers/client/Client.js +4 -4
  23. package/api/resources/runs/client/Client.js +7 -7
  24. package/api/resources/sources/client/Client.js +6 -6
  25. package/api/resources/sources/resources/files/client/Client.js +3 -3
  26. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  27. package/api/resources/steps/client/Client.js +2 -2
  28. package/api/resources/tag/client/Client.js +1 -1
  29. package/api/resources/templates/client/Client.js +1 -1
  30. package/api/resources/tools/client/Client.js +16 -16
  31. package/api/resources/voice/client/Client.js +1 -1
  32. package/api/types/LlmConfig.d.ts +2 -0
  33. package/api/types/LlmConfigReasoningEffort.d.ts +9 -0
  34. package/api/types/LlmConfigReasoningEffort.js +11 -0
  35. package/api/types/index.d.ts +1 -0
  36. package/api/types/index.js +1 -0
  37. package/dist/api/resources/agents/client/Client.d.ts +13 -0
  38. package/dist/api/resources/agents/client/Client.js +82 -10
  39. package/dist/api/resources/agents/client/requests/ListAgentGroupsRequest.d.ts +13 -0
  40. package/dist/api/resources/agents/client/requests/ListAgentGroupsRequest.js +5 -0
  41. package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
  42. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  43. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  44. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  45. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  46. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  47. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  48. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  49. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  50. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  51. package/dist/api/resources/blocks/client/Client.js +6 -6
  52. package/dist/api/resources/groups/client/Client.js +6 -6
  53. package/dist/api/resources/groups/resources/messages/client/Client.js +4 -4
  54. package/dist/api/resources/health/client/Client.js +1 -1
  55. package/dist/api/resources/identities/client/Client.js +7 -7
  56. package/dist/api/resources/jobs/client/Client.js +4 -4
  57. package/dist/api/resources/models/client/Client.js +2 -2
  58. package/dist/api/resources/providers/client/Client.js +4 -4
  59. package/dist/api/resources/runs/client/Client.js +7 -7
  60. package/dist/api/resources/sources/client/Client.js +6 -6
  61. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  62. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  63. package/dist/api/resources/steps/client/Client.js +2 -2
  64. package/dist/api/resources/tag/client/Client.js +1 -1
  65. package/dist/api/resources/templates/client/Client.js +1 -1
  66. package/dist/api/resources/tools/client/Client.js +16 -16
  67. package/dist/api/resources/voice/client/Client.js +1 -1
  68. package/dist/api/types/LlmConfig.d.ts +2 -0
  69. package/dist/api/types/LlmConfigReasoningEffort.d.ts +9 -0
  70. package/dist/api/types/LlmConfigReasoningEffort.js +11 -0
  71. package/dist/api/types/index.d.ts +1 -0
  72. package/dist/api/types/index.js +1 -0
  73. package/dist/serialization/resources/agents/client/index.d.ts +1 -0
  74. package/dist/serialization/resources/agents/client/index.js +2 -1
  75. package/dist/serialization/resources/agents/client/listAgentGroups.d.ts +11 -0
  76. package/dist/serialization/resources/agents/client/listAgentGroups.js +42 -0
  77. package/dist/serialization/types/LlmConfig.d.ts +2 -0
  78. package/dist/serialization/types/LlmConfig.js +2 -0
  79. package/dist/serialization/types/LlmConfigReasoningEffort.d.ts +10 -0
  80. package/dist/serialization/types/LlmConfigReasoningEffort.js +41 -0
  81. package/dist/serialization/types/index.d.ts +1 -0
  82. package/dist/serialization/types/index.js +1 -0
  83. package/dist/version.d.ts +1 -1
  84. package/dist/version.js +1 -1
  85. package/package.json +1 -1
  86. package/reference.md +71 -0
  87. package/serialization/resources/agents/client/index.d.ts +1 -0
  88. package/serialization/resources/agents/client/index.js +2 -1
  89. package/serialization/resources/agents/client/listAgentGroups.d.ts +11 -0
  90. package/serialization/resources/agents/client/listAgentGroups.js +42 -0
  91. package/serialization/types/LlmConfig.d.ts +2 -0
  92. package/serialization/types/LlmConfig.js +2 -0
  93. package/serialization/types/LlmConfigReasoningEffort.d.ts +10 -0
  94. package/serialization/types/LlmConfigReasoningEffort.js +41 -0
  95. package/serialization/types/index.d.ts +1 -0
  96. package/serialization/types/index.js +1 -0
  97. package/version.d.ts +1 -1
  98. package/version.js +1 -1
@@ -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 LlmConfigReasoningEffort: core.serialization.Schema<serializers.LlmConfigReasoningEffort.Raw, Letta.LlmConfigReasoningEffort>;
8
+ export declare namespace LlmConfigReasoningEffort {
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.LlmConfigReasoningEffort = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.LlmConfigReasoningEffort = core.serialization.enum_(["low", "medium", "high"]);
@@ -112,6 +112,7 @@ export * from "./Job";
112
112
  export * from "./JobStatus";
113
113
  export * from "./JobType";
114
114
  export * from "./LlmConfigModelEndpointType";
115
+ export * from "./LlmConfigReasoningEffort";
115
116
  export * from "./LlmConfig";
116
117
  export * from "./LettaRequest";
117
118
  export * from "./LettaRequestConfig";
@@ -128,6 +128,7 @@ __exportStar(require("./Job"), exports);
128
128
  __exportStar(require("./JobStatus"), exports);
129
129
  __exportStar(require("./JobType"), exports);
130
130
  __exportStar(require("./LlmConfigModelEndpointType"), exports);
131
+ __exportStar(require("./LlmConfigReasoningEffort"), exports);
131
132
  __exportStar(require("./LlmConfig"), exports);
132
133
  __exportStar(require("./LettaRequest"), exports);
133
134
  __exportStar(require("./LettaRequestConfig"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.85";
1
+ export declare const SDK_VERSION = "0.1.87";
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.85";
4
+ exports.SDK_VERSION = "0.1.87";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.85",
3
+ "version": "0.1.87",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2027,6 +2027,77 @@ await client.agents.resetMessages("agent_id");
2027
2027
  </dl>
2028
2028
  </details>
2029
2029
 
2030
+ <details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">listAgentGroups</a>(agentId, { ...params }) -> Letta.Group[]</code></summary>
2031
+ <dl>
2032
+ <dd>
2033
+
2034
+ #### 📝 Description
2035
+
2036
+ <dl>
2037
+ <dd>
2038
+
2039
+ <dl>
2040
+ <dd>
2041
+
2042
+ Lists the groups for an agent
2043
+
2044
+ </dd>
2045
+ </dl>
2046
+ </dd>
2047
+ </dl>
2048
+
2049
+ #### 🔌 Usage
2050
+
2051
+ <dl>
2052
+ <dd>
2053
+
2054
+ <dl>
2055
+ <dd>
2056
+
2057
+ ```typescript
2058
+ await client.agents.listAgentGroups("agent_id");
2059
+ ```
2060
+
2061
+ </dd>
2062
+ </dl>
2063
+ </dd>
2064
+ </dl>
2065
+
2066
+ #### ⚙️ Parameters
2067
+
2068
+ <dl>
2069
+ <dd>
2070
+
2071
+ <dl>
2072
+ <dd>
2073
+
2074
+ **agentId:** `string`
2075
+
2076
+ </dd>
2077
+ </dl>
2078
+
2079
+ <dl>
2080
+ <dd>
2081
+
2082
+ **request:** `Letta.ListAgentGroupsRequest`
2083
+
2084
+ </dd>
2085
+ </dl>
2086
+
2087
+ <dl>
2088
+ <dd>
2089
+
2090
+ **requestOptions:** `Agents.RequestOptions`
2091
+
2092
+ </dd>
2093
+ </dl>
2094
+ </dd>
2095
+ </dl>
2096
+
2097
+ </dd>
2098
+ </dl>
2099
+ </details>
2100
+
2030
2101
  <details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">search</a>({ ...params }) -> Letta.AgentsSearchResponse</code></summary>
2031
2102
  <dl>
2032
2103
  <dd>
@@ -1,4 +1,5 @@
1
1
  export * as list from "./list";
2
2
  export * as exportAgentSerialized from "./exportAgentSerialized";
3
3
  export * as modifyPassage from "./modifyPassage";
4
+ export * as listAgentGroups from "./listAgentGroups";
4
5
  export * from "./requests";
@@ -36,8 +36,9 @@ 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.modifyPassage = exports.exportAgentSerialized = exports.list = void 0;
39
+ exports.listAgentGroups = exports.modifyPassage = exports.exportAgentSerialized = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
41
  exports.exportAgentSerialized = __importStar(require("./exportAgentSerialized"));
42
42
  exports.modifyPassage = __importStar(require("./modifyPassage"));
43
+ exports.listAgentGroups = __importStar(require("./listAgentGroups"));
43
44
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,11 @@
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 { Group } from "../../../types/Group";
8
+ export declare const Response: core.serialization.Schema<serializers.agents.listAgentGroups.Response.Raw, Letta.Group[]>;
9
+ export declare namespace Response {
10
+ type Raw = Group.Raw[];
11
+ }
@@ -0,0 +1,42 @@
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
+ const Group_1 = require("../../../types/Group");
42
+ exports.Response = core.serialization.list(Group_1.Group);
@@ -5,6 +5,7 @@ import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { LlmConfigModelEndpointType } from "./LlmConfigModelEndpointType";
8
+ import { LlmConfigReasoningEffort } from "./LlmConfigReasoningEffort";
8
9
  export declare const LlmConfig: core.serialization.ObjectSchema<serializers.LlmConfig.Raw, Letta.LlmConfig>;
9
10
  export declare namespace LlmConfig {
10
11
  interface Raw {
@@ -18,6 +19,7 @@ export declare namespace LlmConfig {
18
19
  temperature?: number | null;
19
20
  max_tokens?: number | null;
20
21
  enable_reasoner?: boolean | null;
22
+ reasoning_effort?: LlmConfigReasoningEffort.Raw | null;
21
23
  max_reasoning_tokens?: number | null;
22
24
  }
23
25
  }
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.LlmConfig = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const LlmConfigModelEndpointType_1 = require("./LlmConfigModelEndpointType");
42
+ const LlmConfigReasoningEffort_1 = require("./LlmConfigReasoningEffort");
42
43
  exports.LlmConfig = core.serialization.object({
43
44
  model: core.serialization.string(),
44
45
  modelEndpointType: core.serialization.property("model_endpoint_type", LlmConfigModelEndpointType_1.LlmConfigModelEndpointType),
@@ -50,5 +51,6 @@ exports.LlmConfig = core.serialization.object({
50
51
  temperature: core.serialization.number().optional(),
51
52
  maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()),
52
53
  enableReasoner: core.serialization.property("enable_reasoner", core.serialization.boolean().optional()),
54
+ reasoningEffort: core.serialization.property("reasoning_effort", LlmConfigReasoningEffort_1.LlmConfigReasoningEffort.optional()),
53
55
  maxReasoningTokens: core.serialization.property("max_reasoning_tokens", core.serialization.number().optional()),
54
56
  });
@@ -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 LlmConfigReasoningEffort: core.serialization.Schema<serializers.LlmConfigReasoningEffort.Raw, Letta.LlmConfigReasoningEffort>;
8
+ export declare namespace LlmConfigReasoningEffort {
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.LlmConfigReasoningEffort = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.LlmConfigReasoningEffort = core.serialization.enum_(["low", "medium", "high"]);
@@ -112,6 +112,7 @@ export * from "./Job";
112
112
  export * from "./JobStatus";
113
113
  export * from "./JobType";
114
114
  export * from "./LlmConfigModelEndpointType";
115
+ export * from "./LlmConfigReasoningEffort";
115
116
  export * from "./LlmConfig";
116
117
  export * from "./LettaRequest";
117
118
  export * from "./LettaRequestConfig";
@@ -128,6 +128,7 @@ __exportStar(require("./Job"), exports);
128
128
  __exportStar(require("./JobStatus"), exports);
129
129
  __exportStar(require("./JobType"), exports);
130
130
  __exportStar(require("./LlmConfigModelEndpointType"), exports);
131
+ __exportStar(require("./LlmConfigReasoningEffort"), exports);
131
132
  __exportStar(require("./LlmConfig"), exports);
132
133
  __exportStar(require("./LettaRequest"), exports);
133
134
  __exportStar(require("./LettaRequestConfig"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.85";
1
+ export declare const SDK_VERSION = "0.1.87";
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.85";
4
+ exports.SDK_VERSION = "0.1.87";