@letta-ai/letta-client 0.1.22 → 0.1.24

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 (127) hide show
  1. package/api/resources/agents/client/Client.js +7 -7
  2. package/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
  5. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  6. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  7. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  8. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  9. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  10. package/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfig.d.ts +1 -0
  11. package/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.d.ts +5 -0
  12. package/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.js +5 -0
  13. package/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.d.ts +4 -0
  14. package/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.js +5 -0
  15. package/api/resources/agents/types/index.d.ts +2 -0
  16. package/api/resources/agents/types/index.js +2 -0
  17. package/api/resources/blocks/client/Client.js +6 -6
  18. package/api/resources/health/client/Client.js +1 -1
  19. package/api/resources/jobs/client/Client.js +4 -4
  20. package/api/resources/models/client/Client.js +2 -2
  21. package/api/resources/providers/client/Client.js +4 -4
  22. package/api/resources/runs/client/Client.js +6 -6
  23. package/api/resources/sources/client/Client.js +6 -6
  24. package/api/resources/sources/resources/files/client/Client.js +3 -3
  25. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  26. package/api/resources/steps/client/Client.js +2 -2
  27. package/api/resources/tag/client/Client.js +1 -1
  28. package/api/resources/templates/client/Client.js +1 -1
  29. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +1 -0
  30. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.d.ts +5 -0
  31. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.js +5 -0
  32. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.d.ts +4 -0
  33. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.js +5 -0
  34. package/api/resources/templates/types/index.d.ts +2 -0
  35. package/api/resources/templates/types/index.js +2 -0
  36. package/api/resources/tools/client/Client.js +11 -11
  37. package/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  38. package/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  39. package/api/types/LlmConfig.d.ts +3 -0
  40. package/dist/api/resources/agents/client/Client.js +7 -7
  41. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
  42. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  43. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
  44. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  45. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  46. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  47. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  48. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  49. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfig.d.ts +1 -0
  50. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.d.ts +5 -0
  51. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.js +5 -0
  52. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.d.ts +4 -0
  53. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.js +5 -0
  54. package/dist/api/resources/agents/types/index.d.ts +2 -0
  55. package/dist/api/resources/agents/types/index.js +2 -0
  56. package/dist/api/resources/blocks/client/Client.js +6 -6
  57. package/dist/api/resources/health/client/Client.js +1 -1
  58. package/dist/api/resources/jobs/client/Client.js +4 -4
  59. package/dist/api/resources/models/client/Client.js +2 -2
  60. package/dist/api/resources/providers/client/Client.js +4 -4
  61. package/dist/api/resources/runs/client/Client.js +6 -6
  62. package/dist/api/resources/sources/client/Client.js +6 -6
  63. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  64. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  65. package/dist/api/resources/steps/client/Client.js +2 -2
  66. package/dist/api/resources/tag/client/Client.js +1 -1
  67. package/dist/api/resources/templates/client/Client.js +1 -1
  68. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +1 -0
  69. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.d.ts +5 -0
  70. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.js +5 -0
  71. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.d.ts +4 -0
  72. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.js +5 -0
  73. package/dist/api/resources/templates/types/index.d.ts +2 -0
  74. package/dist/api/resources/templates/types/index.js +2 -0
  75. package/dist/api/resources/tools/client/Client.js +11 -11
  76. package/dist/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  77. package/dist/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  78. package/dist/api/types/LlmConfig.d.ts +3 -0
  79. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfig.d.ts +2 -0
  80. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfig.js +2 -0
  81. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.d.ts +11 -0
  82. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.js +47 -0
  83. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.d.ts +10 -0
  84. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.js +41 -0
  85. package/dist/serialization/resources/agents/types/index.d.ts +2 -0
  86. package/dist/serialization/resources/agents/types/index.js +2 -0
  87. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +2 -0
  88. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +2 -0
  89. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.d.ts +11 -0
  90. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.js +47 -0
  91. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.d.ts +10 -0
  92. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.js +41 -0
  93. package/dist/serialization/resources/templates/types/index.d.ts +2 -0
  94. package/dist/serialization/resources/templates/types/index.js +2 -0
  95. package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  96. package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.js +2 -0
  97. package/dist/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  98. package/dist/serialization/types/CompletionCreateParamsStreamingModel.js +2 -0
  99. package/dist/serialization/types/LlmConfig.d.ts +1 -0
  100. package/dist/serialization/types/LlmConfig.js +1 -0
  101. package/dist/version.d.ts +1 -1
  102. package/dist/version.js +1 -1
  103. package/package.json +1 -1
  104. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfig.d.ts +2 -0
  105. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfig.js +2 -0
  106. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.d.ts +11 -0
  107. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.js +47 -0
  108. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.d.ts +10 -0
  109. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.js +41 -0
  110. package/serialization/resources/agents/types/index.d.ts +2 -0
  111. package/serialization/resources/agents/types/index.js +2 -0
  112. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +2 -0
  113. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +2 -0
  114. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.d.ts +11 -0
  115. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.js +47 -0
  116. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.d.ts +10 -0
  117. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.js +41 -0
  118. package/serialization/resources/templates/types/index.d.ts +2 -0
  119. package/serialization/resources/templates/types/index.js +2 -0
  120. package/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  121. package/serialization/types/CompletionCreateParamsNonStreamingModel.js +2 -0
  122. package/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  123. package/serialization/types/CompletionCreateParamsStreamingModel.js +2 -0
  124. package/serialization/types/LlmConfig.d.ts +1 -0
  125. package/serialization/types/LlmConfig.js +1 -0
  126. package/version.d.ts +1 -1
  127. package/version.js +1 -1
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CompletionCreateParamsNonStreamingModel: core.serialization.Schema<serializers.CompletionCreateParamsNonStreamingModel.Raw, Letta.CompletionCreateParamsNonStreamingModel>;
8
8
  export declare namespace CompletionCreateParamsNonStreamingModel {
9
- type Raw = string | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
9
+ type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
10
10
  }
@@ -40,6 +40,8 @@ exports.CompletionCreateParamsNonStreamingModel = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.CompletionCreateParamsNonStreamingModel = core.serialization.undiscriminatedUnion([
42
42
  core.serialization.string(),
43
+ core.serialization.stringLiteral("o3-mini"),
44
+ core.serialization.stringLiteral("o3-mini-2025-01-31"),
43
45
  core.serialization.stringLiteral("o1"),
44
46
  core.serialization.stringLiteral("o1-2024-12-17"),
45
47
  core.serialization.stringLiteral("o1-preview"),
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CompletionCreateParamsStreamingModel: core.serialization.Schema<serializers.CompletionCreateParamsStreamingModel.Raw, Letta.CompletionCreateParamsStreamingModel>;
8
8
  export declare namespace CompletionCreateParamsStreamingModel {
9
- type Raw = string | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
9
+ type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
10
10
  }
@@ -40,6 +40,8 @@ exports.CompletionCreateParamsStreamingModel = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.CompletionCreateParamsStreamingModel = core.serialization.undiscriminatedUnion([
42
42
  core.serialization.string(),
43
+ core.serialization.stringLiteral("o3-mini"),
44
+ core.serialization.stringLiteral("o3-mini-2025-01-31"),
43
45
  core.serialization.stringLiteral("o1"),
44
46
  core.serialization.stringLiteral("o1-2024-12-17"),
45
47
  core.serialization.stringLiteral("o1-preview"),
@@ -16,5 +16,6 @@ export declare namespace LlmConfig {
16
16
  put_inner_thoughts_in_kwargs?: boolean | null;
17
17
  handle?: string | null;
18
18
  temperature?: number | null;
19
+ max_tokens?: number | null;
19
20
  }
20
21
  }
@@ -48,4 +48,5 @@ exports.LlmConfig = core.serialization.object({
48
48
  putInnerThoughtsInKwargs: core.serialization.property("put_inner_thoughts_in_kwargs", core.serialization.boolean().optional()),
49
49
  handle: core.serialization.string().optional(),
50
50
  temperature: core.serialization.number().optional(),
51
+ maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()),
51
52
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.22";
1
+ export declare const SDK_VERSION = "0.1.24";
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.22";
4
+ exports.SDK_VERSION = "0.1.24";