@letta-ai/letta-client 0.1.128 → 0.1.130

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 (149) hide show
  1. package/api/resources/agents/client/Client.js +10 -10
  2. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  5. package/api/resources/agents/resources/groups/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 +6 -6
  8. package/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -1
  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 +2 -2
  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 +4 -4
  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 +7 -7
  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/tags/client/Client.js +1 -1
  37. package/api/resources/telemetry/client/Client.js +1 -1
  38. package/api/resources/templates/client/Client.js +1 -1
  39. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  40. package/api/resources/tools/client/Client.js +17 -17
  41. package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -0
  42. package/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -0
  43. package/api/resources/voice/client/Client.js +1 -1
  44. package/api/types/ChildToolRule.d.ts +1 -1
  45. package/api/types/ConditionalToolRule.d.ts +1 -1
  46. package/api/types/ContinueToolRule.d.ts +1 -1
  47. package/api/types/LettaStopReason.d.ts +12 -0
  48. package/api/types/LettaStopReason.js +5 -0
  49. package/api/types/LettaStopReasonStopReason.d.ts +11 -0
  50. package/api/types/LettaStopReasonStopReason.js +13 -0
  51. package/api/types/ParentToolRule.d.ts +1 -1
  52. package/api/types/TerminalToolRule.d.ts +1 -1
  53. package/api/types/Tool.d.ts +2 -0
  54. package/api/types/ToolCreate.d.ts +3 -0
  55. package/api/types/index.d.ts +2 -0
  56. package/api/types/index.js +2 -0
  57. package/dist/api/resources/agents/client/Client.js +10 -10
  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 +6 -6
  64. package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -1
  65. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  66. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  67. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  68. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  69. package/dist/api/resources/batches/client/Client.js +4 -4
  70. package/dist/api/resources/blocks/client/Client.js +6 -6
  71. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  72. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  73. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  74. package/dist/api/resources/groups/client/Client.js +6 -6
  75. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  76. package/dist/api/resources/health/client/Client.js +1 -1
  77. package/dist/api/resources/identities/client/Client.js +7 -7
  78. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  79. package/dist/api/resources/jobs/client/Client.js +4 -4
  80. package/dist/api/resources/messages/client/Client.js +1 -1
  81. package/dist/api/resources/models/client/Client.js +1 -1
  82. package/dist/api/resources/projects/client/Client.js +1 -1
  83. package/dist/api/resources/providers/client/Client.js +5 -5
  84. package/dist/api/resources/runs/client/Client.js +4 -4
  85. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  86. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  87. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  88. package/dist/api/resources/sources/client/Client.js +7 -7
  89. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  90. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  91. package/dist/api/resources/steps/client/Client.js +2 -2
  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 +17 -17
  97. package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -0
  98. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -0
  99. package/dist/api/resources/voice/client/Client.js +1 -1
  100. package/dist/api/types/ChildToolRule.d.ts +1 -1
  101. package/dist/api/types/ConditionalToolRule.d.ts +1 -1
  102. package/dist/api/types/ContinueToolRule.d.ts +1 -1
  103. package/dist/api/types/LettaStopReason.d.ts +12 -0
  104. package/dist/api/types/LettaStopReason.js +5 -0
  105. package/dist/api/types/LettaStopReasonStopReason.d.ts +11 -0
  106. package/dist/api/types/LettaStopReasonStopReason.js +13 -0
  107. package/dist/api/types/ParentToolRule.d.ts +1 -1
  108. package/dist/api/types/TerminalToolRule.d.ts +1 -1
  109. package/dist/api/types/Tool.d.ts +2 -0
  110. package/dist/api/types/ToolCreate.d.ts +3 -0
  111. package/dist/api/types/index.d.ts +2 -0
  112. package/dist/api/types/index.js +2 -0
  113. package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +2 -1
  114. package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +2 -0
  115. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
  116. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -0
  117. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  118. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +2 -0
  119. package/dist/serialization/types/LettaStopReason.d.ts +14 -0
  120. package/dist/serialization/types/LettaStopReason.js +45 -0
  121. package/dist/serialization/types/LettaStopReasonStopReason.d.ts +10 -0
  122. package/dist/serialization/types/LettaStopReasonStopReason.js +41 -0
  123. package/dist/serialization/types/Tool.d.ts +2 -0
  124. package/dist/serialization/types/Tool.js +2 -0
  125. package/dist/serialization/types/ToolCreate.d.ts +2 -0
  126. package/dist/serialization/types/ToolCreate.js +2 -0
  127. package/dist/serialization/types/index.d.ts +2 -0
  128. package/dist/serialization/types/index.js +2 -0
  129. package/dist/version.d.ts +1 -1
  130. package/dist/version.js +1 -1
  131. package/package.json +1 -1
  132. package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +2 -1
  133. package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +2 -0
  134. package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
  135. package/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -0
  136. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  137. package/serialization/resources/tools/client/requests/ToolUpdate.js +2 -0
  138. package/serialization/types/LettaStopReason.d.ts +14 -0
  139. package/serialization/types/LettaStopReason.js +45 -0
  140. package/serialization/types/LettaStopReasonStopReason.d.ts +10 -0
  141. package/serialization/types/LettaStopReasonStopReason.js +41 -0
  142. package/serialization/types/Tool.d.ts +2 -0
  143. package/serialization/types/Tool.js +2 -0
  144. package/serialization/types/ToolCreate.d.ts +2 -0
  145. package/serialization/types/ToolCreate.js +2 -0
  146. package/serialization/types/index.d.ts +2 -0
  147. package/serialization/types/index.js +2 -0
  148. package/version.d.ts +1 -1
  149. package/version.js +1 -1
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.LettaStopReason = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const LettaStopReasonStopReason_1 = require("./LettaStopReasonStopReason");
42
+ exports.LettaStopReason = core.serialization.object({
43
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("stop_reason").optional()),
44
+ stopReason: core.serialization.property("stop_reason", LettaStopReasonStopReason_1.LettaStopReasonStopReason),
45
+ });
@@ -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 LettaStopReasonStopReason: core.serialization.Schema<serializers.LettaStopReasonStopReason.Raw, Letta.LettaStopReasonStopReason>;
8
+ export declare namespace LettaStopReasonStopReason {
9
+ type Raw = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call";
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.LettaStopReasonStopReason = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.LettaStopReasonStopReason = core.serialization.enum_(["end_turn", "error", "invalid_tool_call", "max_steps", "no_tool_call"]);
@@ -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 { ToolType } from "./ToolType";
8
+ import { PipRequirement } from "./PipRequirement";
8
9
  export declare const Tool: core.serialization.ObjectSchema<serializers.Tool.Raw, Letta.Tool>;
9
10
  export declare namespace Tool {
10
11
  interface Raw {
@@ -18,6 +19,7 @@ export declare namespace Tool {
18
19
  json_schema?: Record<string, unknown> | null;
19
20
  args_json_schema?: Record<string, unknown> | null;
20
21
  return_char_limit?: number | null;
22
+ pip_requirements?: PipRequirement.Raw[] | null;
21
23
  created_by_id?: string | null;
22
24
  last_updated_by_id?: string | null;
23
25
  metadata_?: Record<string, unknown> | null;
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Tool = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const ToolType_1 = require("./ToolType");
42
+ const PipRequirement_1 = require("./PipRequirement");
42
43
  exports.Tool = core.serialization.object({
43
44
  id: core.serialization.string().optional(),
44
45
  toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
@@ -50,6 +51,7 @@ exports.Tool = core.serialization.object({
50
51
  jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
51
52
  argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
52
53
  returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
54
+ pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
53
55
  createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
54
56
  lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
55
57
  metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { PipRequirement } from "./PipRequirement";
7
8
  export declare const ToolCreate: core.serialization.ObjectSchema<serializers.ToolCreate.Raw, Letta.ToolCreate>;
8
9
  export declare namespace ToolCreate {
9
10
  interface Raw {
@@ -14,5 +15,6 @@ export declare namespace ToolCreate {
14
15
  json_schema?: Record<string, unknown> | null;
15
16
  args_json_schema?: Record<string, unknown> | null;
16
17
  return_char_limit?: number | null;
18
+ pip_requirements?: PipRequirement.Raw[] | null;
17
19
  }
18
20
  }
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ToolCreate = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const PipRequirement_1 = require("./PipRequirement");
41
42
  exports.ToolCreate = core.serialization.object({
42
43
  description: core.serialization.string().optional(),
43
44
  tags: core.serialization.list(core.serialization.string()).optional(),
@@ -46,4 +47,5 @@ exports.ToolCreate = core.serialization.object({
46
47
  jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
47
48
  argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
48
49
  returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
50
+ pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
49
51
  });
@@ -238,3 +238,5 @@ export * from "./LettaMessageUnion";
238
238
  export * from "./LettaMessageContentUnion";
239
239
  export * from "./ComponentsSchemasTextContent";
240
240
  export * from "./LettaUserMessageContentUnion";
241
+ export * from "./LettaStopReasonStopReason";
242
+ export * from "./LettaStopReason";
@@ -254,3 +254,5 @@ __exportStar(require("./LettaMessageUnion"), exports);
254
254
  __exportStar(require("./LettaMessageContentUnion"), exports);
255
255
  __exportStar(require("./ComponentsSchemasTextContent"), exports);
256
256
  __exportStar(require("./LettaUserMessageContentUnion"), exports);
257
+ __exportStar(require("./LettaStopReasonStopReason"), exports);
258
+ __exportStar(require("./LettaStopReason"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.128";
1
+ export declare const SDK_VERSION = "0.1.130";
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.128";
4
+ exports.SDK_VERSION = "0.1.130";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.128",
3
+ "version": "0.1.130",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
@@ -10,8 +10,9 @@ import { ReasoningMessage } from "../../../../../types/ReasoningMessage";
10
10
  import { ToolCallMessage } from "../../../../../types/ToolCallMessage";
11
11
  import { ToolReturnMessage } from "../../../../../types/ToolReturnMessage";
12
12
  import { AssistantMessage } from "../../../../../types/AssistantMessage";
13
+ import { LettaStopReason } from "../../../../../types/LettaStopReason";
13
14
  import { LettaUsageStatistics } from "../../../../../types/LettaUsageStatistics";
14
15
  export declare const LettaStreamingResponse: core.serialization.Schema<serializers.agents.LettaStreamingResponse.Raw, Letta.agents.LettaStreamingResponse>;
15
16
  export declare namespace LettaStreamingResponse {
16
- type Raw = SystemMessage.Raw | UserMessage.Raw | ReasoningMessage.Raw | ToolCallMessage.Raw | ToolReturnMessage.Raw | AssistantMessage.Raw | LettaUsageStatistics.Raw;
17
+ type Raw = SystemMessage.Raw | UserMessage.Raw | ReasoningMessage.Raw | ToolCallMessage.Raw | ToolReturnMessage.Raw | AssistantMessage.Raw | LettaStopReason.Raw | LettaUsageStatistics.Raw;
17
18
  }
@@ -44,6 +44,7 @@ const ReasoningMessage_1 = require("../../../../../types/ReasoningMessage");
44
44
  const ToolCallMessage_1 = require("../../../../../types/ToolCallMessage");
45
45
  const ToolReturnMessage_1 = require("../../../../../types/ToolReturnMessage");
46
46
  const AssistantMessage_1 = require("../../../../../types/AssistantMessage");
47
+ const LettaStopReason_1 = require("../../../../../types/LettaStopReason");
47
48
  const LettaUsageStatistics_1 = require("../../../../../types/LettaUsageStatistics");
48
49
  exports.LettaStreamingResponse = core.serialization.undiscriminatedUnion([
49
50
  SystemMessage_1.SystemMessage,
@@ -52,5 +53,6 @@ exports.LettaStreamingResponse = core.serialization.undiscriminatedUnion([
52
53
  ToolCallMessage_1.ToolCallMessage,
53
54
  ToolReturnMessage_1.ToolReturnMessage,
54
55
  AssistantMessage_1.AssistantMessage,
56
+ LettaStopReason_1.LettaStopReason,
55
57
  LettaUsageStatistics_1.LettaUsageStatistics,
56
58
  ]);
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Letta from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
+ import { PipRequirement } from "../../../../types/PipRequirement";
7
8
  export declare const ToolRunFromSource: core.serialization.Schema<serializers.ToolRunFromSource.Raw, Letta.ToolRunFromSource>;
8
9
  export declare namespace ToolRunFromSource {
9
10
  interface Raw {
@@ -14,5 +15,6 @@ export declare namespace ToolRunFromSource {
14
15
  source_type?: string | null;
15
16
  args_json_schema?: Record<string, unknown> | null;
16
17
  json_schema?: Record<string, unknown> | null;
18
+ pip_requirements?: PipRequirement.Raw[] | null;
17
19
  }
18
20
  }
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ToolRunFromSource = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
+ const PipRequirement_1 = require("../../../../types/PipRequirement");
41
42
  exports.ToolRunFromSource = core.serialization.object({
42
43
  sourceCode: core.serialization.property("source_code", core.serialization.string()),
43
44
  args: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
@@ -46,4 +47,5 @@ exports.ToolRunFromSource = core.serialization.object({
46
47
  sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
47
48
  argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
48
49
  jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
50
+ pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
49
51
  });
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Letta from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
+ import { PipRequirement } from "../../../../types/PipRequirement";
7
8
  export declare const ToolUpdate: core.serialization.Schema<serializers.ToolUpdate.Raw, Letta.ToolUpdate>;
8
9
  export declare namespace ToolUpdate {
9
10
  interface Raw {
@@ -14,5 +15,6 @@ export declare namespace ToolUpdate {
14
15
  json_schema?: Record<string, unknown> | null;
15
16
  args_json_schema?: Record<string, unknown> | null;
16
17
  return_char_limit?: number | null;
18
+ pip_requirements?: PipRequirement.Raw[] | null;
17
19
  }
18
20
  }
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ToolUpdate = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
+ const PipRequirement_1 = require("../../../../types/PipRequirement");
41
42
  exports.ToolUpdate = core.serialization.object({
42
43
  description: core.serialization.string().optional(),
43
44
  tags: core.serialization.list(core.serialization.string()).optional(),
@@ -46,4 +47,5 @@ exports.ToolUpdate = core.serialization.object({
46
47
  jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
47
48
  argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
48
49
  returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
50
+ pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
49
51
  });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { LettaStopReasonStopReason } from "./LettaStopReasonStopReason";
8
+ export declare const LettaStopReason: core.serialization.ObjectSchema<serializers.LettaStopReason.Raw, Letta.LettaStopReason>;
9
+ export declare namespace LettaStopReason {
10
+ interface Raw {
11
+ message_type?: "stop_reason" | null;
12
+ stop_reason: LettaStopReasonStopReason.Raw;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.LettaStopReason = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const LettaStopReasonStopReason_1 = require("./LettaStopReasonStopReason");
42
+ exports.LettaStopReason = core.serialization.object({
43
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("stop_reason").optional()),
44
+ stopReason: core.serialization.property("stop_reason", LettaStopReasonStopReason_1.LettaStopReasonStopReason),
45
+ });
@@ -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 LettaStopReasonStopReason: core.serialization.Schema<serializers.LettaStopReasonStopReason.Raw, Letta.LettaStopReasonStopReason>;
8
+ export declare namespace LettaStopReasonStopReason {
9
+ type Raw = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call";
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.LettaStopReasonStopReason = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.LettaStopReasonStopReason = core.serialization.enum_(["end_turn", "error", "invalid_tool_call", "max_steps", "no_tool_call"]);
@@ -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 { ToolType } from "./ToolType";
8
+ import { PipRequirement } from "./PipRequirement";
8
9
  export declare const Tool: core.serialization.ObjectSchema<serializers.Tool.Raw, Letta.Tool>;
9
10
  export declare namespace Tool {
10
11
  interface Raw {
@@ -18,6 +19,7 @@ export declare namespace Tool {
18
19
  json_schema?: Record<string, unknown> | null;
19
20
  args_json_schema?: Record<string, unknown> | null;
20
21
  return_char_limit?: number | null;
22
+ pip_requirements?: PipRequirement.Raw[] | null;
21
23
  created_by_id?: string | null;
22
24
  last_updated_by_id?: string | null;
23
25
  metadata_?: Record<string, unknown> | null;
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Tool = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const ToolType_1 = require("./ToolType");
42
+ const PipRequirement_1 = require("./PipRequirement");
42
43
  exports.Tool = core.serialization.object({
43
44
  id: core.serialization.string().optional(),
44
45
  toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
@@ -50,6 +51,7 @@ exports.Tool = core.serialization.object({
50
51
  jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
51
52
  argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
52
53
  returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
54
+ pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
53
55
  createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
54
56
  lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
55
57
  metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { PipRequirement } from "./PipRequirement";
7
8
  export declare const ToolCreate: core.serialization.ObjectSchema<serializers.ToolCreate.Raw, Letta.ToolCreate>;
8
9
  export declare namespace ToolCreate {
9
10
  interface Raw {
@@ -14,5 +15,6 @@ export declare namespace ToolCreate {
14
15
  json_schema?: Record<string, unknown> | null;
15
16
  args_json_schema?: Record<string, unknown> | null;
16
17
  return_char_limit?: number | null;
18
+ pip_requirements?: PipRequirement.Raw[] | null;
17
19
  }
18
20
  }
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ToolCreate = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const PipRequirement_1 = require("./PipRequirement");
41
42
  exports.ToolCreate = core.serialization.object({
42
43
  description: core.serialization.string().optional(),
43
44
  tags: core.serialization.list(core.serialization.string()).optional(),
@@ -46,4 +47,5 @@ exports.ToolCreate = core.serialization.object({
46
47
  jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
47
48
  argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
48
49
  returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
50
+ pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
49
51
  });
@@ -238,3 +238,5 @@ export * from "./LettaMessageUnion";
238
238
  export * from "./LettaMessageContentUnion";
239
239
  export * from "./ComponentsSchemasTextContent";
240
240
  export * from "./LettaUserMessageContentUnion";
241
+ export * from "./LettaStopReasonStopReason";
242
+ export * from "./LettaStopReason";
@@ -254,3 +254,5 @@ __exportStar(require("./LettaMessageUnion"), exports);
254
254
  __exportStar(require("./LettaMessageContentUnion"), exports);
255
255
  __exportStar(require("./ComponentsSchemasTextContent"), exports);
256
256
  __exportStar(require("./LettaUserMessageContentUnion"), exports);
257
+ __exportStar(require("./LettaStopReasonStopReason"), exports);
258
+ __exportStar(require("./LettaStopReason"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.128";
1
+ export declare const SDK_VERSION = "0.1.130";
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.128";
4
+ exports.SDK_VERSION = "0.1.130";