@letta-ai/letta-client 0.1.88 → 0.1.90

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 (102) hide show
  1. package/api/resources/agents/client/Client.d.ts +22 -0
  2. package/api/resources/agents/client/Client.js +89 -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/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 +6 -6
  13. package/api/resources/groups/client/Client.js +6 -6
  14. package/api/resources/groups/resources/messages/client/Client.js +4 -4
  15. package/api/resources/health/client/Client.js +1 -1
  16. package/api/resources/identities/client/Client.js +7 -7
  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 +16 -16
  28. package/api/resources/voice/client/Client.js +1 -1
  29. package/api/types/JobStatus.d.ts +2 -1
  30. package/api/types/JobStatus.js +1 -0
  31. package/api/types/LettaBatchRequest.d.ts +16 -0
  32. package/api/types/LettaBatchRequest.js +5 -0
  33. package/api/types/LettaBatchResponse.d.ts +16 -0
  34. package/api/types/LettaBatchResponse.js +5 -0
  35. package/api/types/index.d.ts +2 -0
  36. package/api/types/index.js +2 -0
  37. package/dist/api/resources/agents/client/Client.d.ts +22 -0
  38. package/dist/api/resources/agents/client/Client.js +89 -11
  39. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  40. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  41. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  42. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  43. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  44. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  45. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  46. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  47. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  48. package/dist/api/resources/blocks/client/Client.js +6 -6
  49. package/dist/api/resources/groups/client/Client.js +6 -6
  50. package/dist/api/resources/groups/resources/messages/client/Client.js +4 -4
  51. package/dist/api/resources/health/client/Client.js +1 -1
  52. package/dist/api/resources/identities/client/Client.js +7 -7
  53. package/dist/api/resources/jobs/client/Client.js +4 -4
  54. package/dist/api/resources/models/client/Client.js +2 -2
  55. package/dist/api/resources/providers/client/Client.js +4 -4
  56. package/dist/api/resources/runs/client/Client.js +7 -7
  57. package/dist/api/resources/sources/client/Client.js +6 -6
  58. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  59. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  60. package/dist/api/resources/steps/client/Client.js +2 -2
  61. package/dist/api/resources/tag/client/Client.js +1 -1
  62. package/dist/api/resources/templates/client/Client.js +1 -1
  63. package/dist/api/resources/tools/client/Client.js +16 -16
  64. package/dist/api/resources/voice/client/Client.js +1 -1
  65. package/dist/api/types/JobStatus.d.ts +2 -1
  66. package/dist/api/types/JobStatus.js +1 -0
  67. package/dist/api/types/LettaBatchRequest.d.ts +16 -0
  68. package/dist/api/types/LettaBatchRequest.js +5 -0
  69. package/dist/api/types/LettaBatchResponse.d.ts +16 -0
  70. package/dist/api/types/LettaBatchResponse.js +5 -0
  71. package/dist/api/types/index.d.ts +2 -0
  72. package/dist/api/types/index.js +2 -0
  73. package/dist/serialization/resources/agents/client/createBatchMessageRequest.d.ts +11 -0
  74. package/dist/serialization/resources/agents/client/createBatchMessageRequest.js +42 -0
  75. package/dist/serialization/resources/agents/client/index.d.ts +1 -0
  76. package/dist/serialization/resources/agents/client/index.js +2 -1
  77. package/dist/serialization/types/JobStatus.d.ts +1 -1
  78. package/dist/serialization/types/JobStatus.js +10 -1
  79. package/dist/serialization/types/LettaBatchRequest.d.ts +17 -0
  80. package/dist/serialization/types/LettaBatchRequest.js +48 -0
  81. package/dist/serialization/types/LettaBatchResponse.d.ts +17 -0
  82. package/dist/serialization/types/LettaBatchResponse.js +48 -0
  83. package/dist/serialization/types/index.d.ts +2 -0
  84. package/dist/serialization/types/index.js +2 -0
  85. package/dist/version.d.ts +1 -1
  86. package/dist/version.js +1 -1
  87. package/package.json +1 -1
  88. package/reference.md +79 -0
  89. package/serialization/resources/agents/client/createBatchMessageRequest.d.ts +11 -0
  90. package/serialization/resources/agents/client/createBatchMessageRequest.js +42 -0
  91. package/serialization/resources/agents/client/index.d.ts +1 -0
  92. package/serialization/resources/agents/client/index.js +2 -1
  93. package/serialization/types/JobStatus.d.ts +1 -1
  94. package/serialization/types/JobStatus.js +10 -1
  95. package/serialization/types/LettaBatchRequest.d.ts +17 -0
  96. package/serialization/types/LettaBatchRequest.js +48 -0
  97. package/serialization/types/LettaBatchResponse.d.ts +17 -0
  98. package/serialization/types/LettaBatchResponse.js +48 -0
  99. package/serialization/types/index.d.ts +2 -0
  100. package/serialization/types/index.js +2 -0
  101. package/version.d.ts +1 -1
  102. package/version.js +1 -1
@@ -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.Request = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const LettaBatchRequest_1 = require("../../../types/LettaBatchRequest");
42
+ exports.Request = core.serialization.list(LettaBatchRequest_1.LettaBatchRequest);
@@ -2,4 +2,5 @@ export * as list from "./list";
2
2
  export * as exportAgentSerialized from "./exportAgentSerialized";
3
3
  export * as modifyPassage from "./modifyPassage";
4
4
  export * as listAgentGroups from "./listAgentGroups";
5
+ export * as createBatchMessageRequest from "./createBatchMessageRequest";
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.listAgentGroups = exports.modifyPassage = exports.exportAgentSerialized = exports.list = void 0;
39
+ exports.createBatchMessageRequest = 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
43
  exports.listAgentGroups = __importStar(require("./listAgentGroups"));
44
+ exports.createBatchMessageRequest = __importStar(require("./createBatchMessageRequest"));
44
45
  __exportStar(require("./requests"), exports);
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const JobStatus: core.serialization.Schema<serializers.JobStatus.Raw, Letta.JobStatus>;
8
8
  export declare namespace JobStatus {
9
- type Raw = "not_started" | "created" | "running" | "completed" | "failed" | "pending" | "cancelled";
9
+ type Raw = "not_started" | "created" | "running" | "completed" | "failed" | "pending" | "cancelled" | "expired";
10
10
  }
@@ -38,4 +38,13 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.JobStatus = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.JobStatus = core.serialization.enum_(["not_started", "created", "running", "completed", "failed", "pending", "cancelled"]);
41
+ exports.JobStatus = core.serialization.enum_([
42
+ "not_started",
43
+ "created",
44
+ "running",
45
+ "completed",
46
+ "failed",
47
+ "pending",
48
+ "cancelled",
49
+ "expired",
50
+ ]);
@@ -0,0 +1,17 @@
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 { MessageCreate } from "./MessageCreate";
8
+ export declare const LettaBatchRequest: core.serialization.ObjectSchema<serializers.LettaBatchRequest.Raw, Letta.LettaBatchRequest>;
9
+ export declare namespace LettaBatchRequest {
10
+ interface Raw {
11
+ messages: MessageCreate.Raw[];
12
+ use_assistant_message?: boolean | null;
13
+ assistant_message_tool_name?: string | null;
14
+ assistant_message_tool_kwarg?: string | null;
15
+ agent_id: string;
16
+ }
17
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.LettaBatchRequest = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const MessageCreate_1 = require("./MessageCreate");
42
+ exports.LettaBatchRequest = core.serialization.object({
43
+ messages: core.serialization.list(MessageCreate_1.MessageCreate),
44
+ useAssistantMessage: core.serialization.property("use_assistant_message", core.serialization.boolean().optional()),
45
+ assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
46
+ assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
47
+ agentId: core.serialization.property("agent_id", core.serialization.string()),
48
+ });
@@ -0,0 +1,17 @@
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 { JobStatus } from "./JobStatus";
8
+ export declare const LettaBatchResponse: core.serialization.ObjectSchema<serializers.LettaBatchResponse.Raw, Letta.LettaBatchResponse>;
9
+ export declare namespace LettaBatchResponse {
10
+ interface Raw {
11
+ batch_id: string;
12
+ status: JobStatus.Raw;
13
+ agent_count: number;
14
+ last_polled_at: string;
15
+ created_at: string;
16
+ }
17
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.LettaBatchResponse = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const JobStatus_1 = require("./JobStatus");
42
+ exports.LettaBatchResponse = core.serialization.object({
43
+ batchId: core.serialization.property("batch_id", core.serialization.string()),
44
+ status: JobStatus_1.JobStatus,
45
+ agentCount: core.serialization.property("agent_count", core.serialization.number()),
46
+ lastPolledAt: core.serialization.property("last_polled_at", core.serialization.date()),
47
+ createdAt: core.serialization.property("created_at", core.serialization.date()),
48
+ });
@@ -114,6 +114,8 @@ export * from "./JobType";
114
114
  export * from "./LlmConfigModelEndpointType";
115
115
  export * from "./LlmConfigReasoningEffort";
116
116
  export * from "./LlmConfig";
117
+ export * from "./LettaBatchRequest";
118
+ export * from "./LettaBatchResponse";
117
119
  export * from "./LettaRequest";
118
120
  export * from "./LettaRequestConfig";
119
121
  export * from "./LettaResponse";
@@ -130,6 +130,8 @@ __exportStar(require("./JobType"), exports);
130
130
  __exportStar(require("./LlmConfigModelEndpointType"), exports);
131
131
  __exportStar(require("./LlmConfigReasoningEffort"), exports);
132
132
  __exportStar(require("./LlmConfig"), exports);
133
+ __exportStar(require("./LettaBatchRequest"), exports);
134
+ __exportStar(require("./LettaBatchResponse"), exports);
133
135
  __exportStar(require("./LettaRequest"), exports);
134
136
  __exportStar(require("./LettaRequestConfig"), exports);
135
137
  __exportStar(require("./LettaResponse"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.88";
1
+ export declare const SDK_VERSION = "0.1.90";
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.88";
4
+ exports.SDK_VERSION = "0.1.90";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.88",
3
+ "version": "0.1.90",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2098,6 +2098,85 @@ await client.agents.listAgentGroups("agent_id");
2098
2098
  </dl>
2099
2099
  </details>
2100
2100
 
2101
+ <details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">createBatchMessageRequest</a>({ ...params }) -> Letta.LettaBatchResponse</code></summary>
2102
+ <dl>
2103
+ <dd>
2104
+
2105
+ #### 📝 Description
2106
+
2107
+ <dl>
2108
+ <dd>
2109
+
2110
+ <dl>
2111
+ <dd>
2112
+
2113
+ Submit a batch of agent messages for asynchronous processing.
2114
+ Creates a job that will fan out messages to all listed agents and process them in parallel.
2115
+
2116
+ </dd>
2117
+ </dl>
2118
+ </dd>
2119
+ </dl>
2120
+
2121
+ #### 🔌 Usage
2122
+
2123
+ <dl>
2124
+ <dd>
2125
+
2126
+ <dl>
2127
+ <dd>
2128
+
2129
+ ```typescript
2130
+ await client.agents.createBatchMessageRequest([
2131
+ {
2132
+ messages: [
2133
+ {
2134
+ role: "user",
2135
+ content: [
2136
+ {
2137
+ type: "text",
2138
+ text: "text",
2139
+ },
2140
+ ],
2141
+ },
2142
+ ],
2143
+ agentId: "agent_id",
2144
+ },
2145
+ ]);
2146
+ ```
2147
+
2148
+ </dd>
2149
+ </dl>
2150
+ </dd>
2151
+ </dl>
2152
+
2153
+ #### ⚙️ Parameters
2154
+
2155
+ <dl>
2156
+ <dd>
2157
+
2158
+ <dl>
2159
+ <dd>
2160
+
2161
+ **request:** `Letta.LettaBatchRequest[]`
2162
+
2163
+ </dd>
2164
+ </dl>
2165
+
2166
+ <dl>
2167
+ <dd>
2168
+
2169
+ **requestOptions:** `Agents.RequestOptions`
2170
+
2171
+ </dd>
2172
+ </dl>
2173
+ </dd>
2174
+ </dl>
2175
+
2176
+ </dd>
2177
+ </dl>
2178
+ </details>
2179
+
2101
2180
  <details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">search</a>({ ...params }) -> Letta.AgentsSearchResponse</code></summary>
2102
2181
  <dl>
2103
2182
  <dd>
@@ -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 { LettaBatchRequest } from "../../../types/LettaBatchRequest";
8
+ export declare const Request: core.serialization.Schema<serializers.agents.createBatchMessageRequest.Request.Raw, Letta.LettaBatchRequest[]>;
9
+ export declare namespace Request {
10
+ type Raw = LettaBatchRequest.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.Request = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const LettaBatchRequest_1 = require("../../../types/LettaBatchRequest");
42
+ exports.Request = core.serialization.list(LettaBatchRequest_1.LettaBatchRequest);
@@ -2,4 +2,5 @@ export * as list from "./list";
2
2
  export * as exportAgentSerialized from "./exportAgentSerialized";
3
3
  export * as modifyPassage from "./modifyPassage";
4
4
  export * as listAgentGroups from "./listAgentGroups";
5
+ export * as createBatchMessageRequest from "./createBatchMessageRequest";
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.listAgentGroups = exports.modifyPassage = exports.exportAgentSerialized = exports.list = void 0;
39
+ exports.createBatchMessageRequest = 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
43
  exports.listAgentGroups = __importStar(require("./listAgentGroups"));
44
+ exports.createBatchMessageRequest = __importStar(require("./createBatchMessageRequest"));
44
45
  __exportStar(require("./requests"), exports);
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const JobStatus: core.serialization.Schema<serializers.JobStatus.Raw, Letta.JobStatus>;
8
8
  export declare namespace JobStatus {
9
- type Raw = "not_started" | "created" | "running" | "completed" | "failed" | "pending" | "cancelled";
9
+ type Raw = "not_started" | "created" | "running" | "completed" | "failed" | "pending" | "cancelled" | "expired";
10
10
  }
@@ -38,4 +38,13 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.JobStatus = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.JobStatus = core.serialization.enum_(["not_started", "created", "running", "completed", "failed", "pending", "cancelled"]);
41
+ exports.JobStatus = core.serialization.enum_([
42
+ "not_started",
43
+ "created",
44
+ "running",
45
+ "completed",
46
+ "failed",
47
+ "pending",
48
+ "cancelled",
49
+ "expired",
50
+ ]);
@@ -0,0 +1,17 @@
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 { MessageCreate } from "./MessageCreate";
8
+ export declare const LettaBatchRequest: core.serialization.ObjectSchema<serializers.LettaBatchRequest.Raw, Letta.LettaBatchRequest>;
9
+ export declare namespace LettaBatchRequest {
10
+ interface Raw {
11
+ messages: MessageCreate.Raw[];
12
+ use_assistant_message?: boolean | null;
13
+ assistant_message_tool_name?: string | null;
14
+ assistant_message_tool_kwarg?: string | null;
15
+ agent_id: string;
16
+ }
17
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.LettaBatchRequest = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const MessageCreate_1 = require("./MessageCreate");
42
+ exports.LettaBatchRequest = core.serialization.object({
43
+ messages: core.serialization.list(MessageCreate_1.MessageCreate),
44
+ useAssistantMessage: core.serialization.property("use_assistant_message", core.serialization.boolean().optional()),
45
+ assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
46
+ assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
47
+ agentId: core.serialization.property("agent_id", core.serialization.string()),
48
+ });
@@ -0,0 +1,17 @@
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 { JobStatus } from "./JobStatus";
8
+ export declare const LettaBatchResponse: core.serialization.ObjectSchema<serializers.LettaBatchResponse.Raw, Letta.LettaBatchResponse>;
9
+ export declare namespace LettaBatchResponse {
10
+ interface Raw {
11
+ batch_id: string;
12
+ status: JobStatus.Raw;
13
+ agent_count: number;
14
+ last_polled_at: string;
15
+ created_at: string;
16
+ }
17
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.LettaBatchResponse = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const JobStatus_1 = require("./JobStatus");
42
+ exports.LettaBatchResponse = core.serialization.object({
43
+ batchId: core.serialization.property("batch_id", core.serialization.string()),
44
+ status: JobStatus_1.JobStatus,
45
+ agentCount: core.serialization.property("agent_count", core.serialization.number()),
46
+ lastPolledAt: core.serialization.property("last_polled_at", core.serialization.date()),
47
+ createdAt: core.serialization.property("created_at", core.serialization.date()),
48
+ });
@@ -114,6 +114,8 @@ export * from "./JobType";
114
114
  export * from "./LlmConfigModelEndpointType";
115
115
  export * from "./LlmConfigReasoningEffort";
116
116
  export * from "./LlmConfig";
117
+ export * from "./LettaBatchRequest";
118
+ export * from "./LettaBatchResponse";
117
119
  export * from "./LettaRequest";
118
120
  export * from "./LettaRequestConfig";
119
121
  export * from "./LettaResponse";
@@ -130,6 +130,8 @@ __exportStar(require("./JobType"), exports);
130
130
  __exportStar(require("./LlmConfigModelEndpointType"), exports);
131
131
  __exportStar(require("./LlmConfigReasoningEffort"), exports);
132
132
  __exportStar(require("./LlmConfig"), exports);
133
+ __exportStar(require("./LettaBatchRequest"), exports);
134
+ __exportStar(require("./LettaBatchResponse"), exports);
133
135
  __exportStar(require("./LettaRequest"), exports);
134
136
  __exportStar(require("./LettaRequestConfig"), exports);
135
137
  __exportStar(require("./LettaResponse"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.88";
1
+ export declare const SDK_VERSION = "0.1.90";
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.88";
4
+ exports.SDK_VERSION = "0.1.90";