@letta-ai/letta-client 0.1.0-alpha2 → 0.1.1

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 (106) hide show
  1. package/api/resources/agents/client/Client.d.ts +25 -1
  2. package/api/resources/agents/client/Client.js +120 -15
  3. package/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +10 -0
  4. package/api/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +1 -1
  5. package/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +15 -0
  6. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  7. package/api/resources/agents/client/requests/index.d.ts +2 -0
  8. package/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
  9. package/api/resources/agents/resources/context/client/Client.js +1 -1
  10. package/api/resources/agents/resources/memory/client/Client.js +1 -1
  11. package/api/resources/agents/resources/memory/resources/messages/client/Client.js +1 -1
  12. package/api/resources/agents/resources/memoryBlocks/client/Client.js +2 -2
  13. package/api/resources/agents/resources/messages/client/Client.js +4 -4
  14. package/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +0 -3
  15. package/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
  16. package/api/resources/agents/resources/sources/client/Client.js +1 -1
  17. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  18. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +8 -0
  19. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js +10 -0
  20. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +5 -0
  21. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +5 -0
  22. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.d.ts +9 -0
  23. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.js +5 -0
  24. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.d.ts +8 -0
  25. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.js +10 -0
  26. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.d.ts +8 -0
  27. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.js +10 -0
  28. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.d.ts +9 -0
  29. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.js +5 -0
  30. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.d.ts +9 -0
  31. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.js +11 -0
  32. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.d.ts +7 -0
  33. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.js +5 -0
  34. package/api/resources/agents/types/index.d.ts +8 -1
  35. package/api/resources/agents/types/index.js +8 -1
  36. package/api/resources/blocks/client/Client.js +7 -7
  37. package/api/resources/health/client/Client.js +1 -1
  38. package/api/resources/jobs/client/Client.js +4 -4
  39. package/api/resources/models/client/Client.js +2 -2
  40. package/api/resources/sources/client/Client.js +8 -8
  41. package/api/resources/sources/resources/files/client/Client.js +3 -3
  42. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  43. package/api/resources/tools/client/Client.js +12 -12
  44. package/api/types/InternalServerErrorBody.d.ts +1 -1
  45. package/api/types/LettaResponseLettaUsageStatistics.d.ts +1 -0
  46. package/api/types/LettaUsageStatistics.d.ts +1 -0
  47. package/api/types/NotFoundErrorBody.d.ts +1 -2
  48. package/dist/api/resources/agents/client/Client.d.ts +25 -1
  49. package/dist/api/resources/agents/client/Client.js +120 -15
  50. package/dist/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +10 -0
  51. package/dist/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js +5 -0
  52. package/dist/api/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +1 -1
  53. package/dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +15 -0
  54. package/dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js +5 -0
  55. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  56. package/dist/api/resources/agents/client/requests/index.d.ts +2 -0
  57. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
  58. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  59. package/dist/api/resources/agents/resources/memory/client/Client.js +1 -1
  60. package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.js +1 -1
  61. package/dist/api/resources/agents/resources/memoryBlocks/client/Client.js +2 -2
  62. package/dist/api/resources/agents/resources/messages/client/Client.js +4 -4
  63. package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +0 -3
  64. package/dist/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
  65. package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
  66. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  67. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +8 -0
  68. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js +10 -0
  69. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +5 -0
  70. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +5 -0
  71. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.d.ts +9 -0
  72. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.js +5 -0
  73. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.d.ts +8 -0
  74. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.js +10 -0
  75. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.d.ts +8 -0
  76. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.js +10 -0
  77. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.d.ts +9 -0
  78. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.js +5 -0
  79. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.d.ts +9 -0
  80. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.js +11 -0
  81. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.d.ts +7 -0
  82. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.js +5 -0
  83. package/dist/api/resources/agents/types/index.d.ts +8 -1
  84. package/dist/api/resources/agents/types/index.js +8 -1
  85. package/dist/api/resources/blocks/client/Client.js +7 -7
  86. package/dist/api/resources/health/client/Client.js +1 -1
  87. package/dist/api/resources/jobs/client/Client.js +4 -4
  88. package/dist/api/resources/models/client/Client.js +2 -2
  89. package/dist/api/resources/sources/client/Client.js +8 -8
  90. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  91. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  92. package/dist/api/resources/tools/client/Client.js +12 -12
  93. package/dist/api/types/InternalServerErrorBody.d.ts +1 -1
  94. package/dist/api/types/LettaResponseLettaUsageStatistics.d.ts +1 -0
  95. package/dist/api/types/LettaUsageStatistics.d.ts +1 -0
  96. package/dist/api/types/NotFoundErrorBody.d.ts +1 -2
  97. package/dist/version.d.ts +1 -1
  98. package/dist/version.js +1 -1
  99. package/package.json +1 -1
  100. package/reference.md +135 -1
  101. package/version.d.ts +1 -1
  102. package/version.js +1 -1
  103. package/api/resources/agents/types/AgentsCreateVersionResponse.d.ts +0 -7
  104. package/dist/api/resources/agents/types/AgentsCreateVersionResponse.d.ts +0 -7
  105. /package/api/resources/agents/{types/AgentsCreateVersionResponse.js → client/requests/AgentsCreateTemplateFromAgentRequest.js} +0 -0
  106. /package/{dist/api/resources/agents/types/AgentsCreateVersionResponse.js → api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js} +0 -0
@@ -2,5 +2,5 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface InternalServerErrorBody {
5
- message: "Migration failed";
5
+ message: "Failed to create agent template";
6
6
  }
@@ -11,6 +11,7 @@
11
11
  * step_count (int): The number of steps taken by the agent.
12
12
  */
13
13
  export interface LettaResponseLettaUsageStatistics {
14
+ message_type?: "usage_statistics";
14
15
  /** The number of tokens generated by the agent. */
15
16
  completion_tokens?: number;
16
17
  /** The number of tokens in the prompt. */
@@ -11,6 +11,7 @@
11
11
  * step_count (int): The number of steps taken by the agent.
12
12
  */
13
13
  export interface LettaUsageStatistics {
14
+ message_type?: "usage_statistics";
14
15
  /** The number of tokens generated by the agent. */
15
16
  completion_tokens?: number;
16
17
  /** The number of tokens in the prompt. */
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Letta from "../index";
5
4
  export interface NotFoundErrorBody {
6
- message: Letta.NotFoundErrorBodyMessage;
5
+ message: "Agent not found";
7
6
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.0-alpha2";
1
+ export declare const SDK_VERSION = "0.1.1";
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.0-alpha2";
4
+ exports.SDK_VERSION = "0.1.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.0-alpha2",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -1910,7 +1910,70 @@ await client.agents.createAgentMessageAsync("agent_id", {
1910
1910
  </dl>
1911
1911
  </details>
1912
1912
 
1913
- <details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">createVersion</a>(agentId, { ...params }) -> Letta.AgentsCreateVersionResponse</code></summary>
1913
+ <details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">searchdeployedagents</a>({ ...params }) -> void</code></summary>
1914
+ <dl>
1915
+ <dd>
1916
+
1917
+ #### 📝 Description
1918
+
1919
+ <dl>
1920
+ <dd>
1921
+
1922
+ <dl>
1923
+ <dd>
1924
+
1925
+ Search deployed agents
1926
+
1927
+ </dd>
1928
+ </dl>
1929
+ </dd>
1930
+ </dl>
1931
+
1932
+ #### 🔌 Usage
1933
+
1934
+ <dl>
1935
+ <dd>
1936
+
1937
+ <dl>
1938
+ <dd>
1939
+
1940
+ ```typescript
1941
+ await client.agents.searchdeployedagents();
1942
+ ```
1943
+
1944
+ </dd>
1945
+ </dl>
1946
+ </dd>
1947
+ </dl>
1948
+
1949
+ #### ⚙️ Parameters
1950
+
1951
+ <dl>
1952
+ <dd>
1953
+
1954
+ <dl>
1955
+ <dd>
1956
+
1957
+ **request:** `Letta.AgentsSearchDeployedAgentsRequest`
1958
+
1959
+ </dd>
1960
+ </dl>
1961
+
1962
+ <dl>
1963
+ <dd>
1964
+
1965
+ **requestOptions:** `Agents.RequestOptions`
1966
+
1967
+ </dd>
1968
+ </dl>
1969
+ </dd>
1970
+ </dl>
1971
+
1972
+ </dd>
1973
+ </dl>
1974
+ </details>
1975
+
1976
+ <details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">createVersion</a>(agentId, { ...params }) -> void</code></summary>
1914
1977
  <dl>
1915
1978
  <dd>
1916
1979
 
@@ -2055,6 +2118,77 @@ await client.agents.migrate("agent_id", {
2055
2118
  </dl>
2056
2119
  </details>
2057
2120
 
2121
+ <details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">createtemplatefromagent</a>(agentId, { ...params }) -> void</code></summary>
2122
+ <dl>
2123
+ <dd>
2124
+
2125
+ #### 📝 Description
2126
+
2127
+ <dl>
2128
+ <dd>
2129
+
2130
+ <dl>
2131
+ <dd>
2132
+
2133
+ Create a template from an agent
2134
+
2135
+ </dd>
2136
+ </dl>
2137
+ </dd>
2138
+ </dl>
2139
+
2140
+ #### 🔌 Usage
2141
+
2142
+ <dl>
2143
+ <dd>
2144
+
2145
+ <dl>
2146
+ <dd>
2147
+
2148
+ ```typescript
2149
+ await client.agents.createtemplatefromagent("agent_id");
2150
+ ```
2151
+
2152
+ </dd>
2153
+ </dl>
2154
+ </dd>
2155
+ </dl>
2156
+
2157
+ #### ⚙️ Parameters
2158
+
2159
+ <dl>
2160
+ <dd>
2161
+
2162
+ <dl>
2163
+ <dd>
2164
+
2165
+ **agentId:** `string`
2166
+
2167
+ </dd>
2168
+ </dl>
2169
+
2170
+ <dl>
2171
+ <dd>
2172
+
2173
+ **request:** `Letta.AgentsCreateTemplateFromAgentRequest`
2174
+
2175
+ </dd>
2176
+ </dl>
2177
+
2178
+ <dl>
2179
+ <dd>
2180
+
2181
+ **requestOptions:** `Agents.RequestOptions`
2182
+
2183
+ </dd>
2184
+ </dl>
2185
+ </dd>
2186
+ </dl>
2187
+
2188
+ </dd>
2189
+ </dl>
2190
+ </details>
2191
+
2058
2192
  ## Models
2059
2193
 
2060
2194
  <details><summary><code>client.models.<a href="/src/api/resources/models/client/Client.ts">listLlms</a>() -> Letta.LlmConfig[]</code></summary>
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.0-alpha2";
1
+ export declare const SDK_VERSION = "0.1.1";
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.0-alpha2";
4
+ exports.SDK_VERSION = "0.1.1";
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface AgentsCreateVersionResponse {
5
- version: string;
6
- agentId?: string;
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface AgentsCreateVersionResponse {
5
- version: string;
6
- agentId?: string;
7
- }