@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.
- package/api/resources/agents/client/Client.d.ts +25 -1
- package/api/resources/agents/client/Client.js +120 -15
- package/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +10 -0
- package/api/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +1 -1
- package/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +15 -0
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/api/resources/agents/client/requests/index.d.ts +2 -0
- package/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/memory/client/Client.js +1 -1
- package/api/resources/agents/resources/memory/resources/messages/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryBlocks/client/Client.js +2 -2
- package/api/resources/agents/resources/messages/client/Client.js +4 -4
- package/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +0 -3
- package/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/sources/client/Client.js +1 -1
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +8 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js +10 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +5 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +5 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.d.ts +9 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.js +5 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.d.ts +8 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.js +10 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.d.ts +8 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.js +10 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.d.ts +9 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.js +5 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.d.ts +9 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.js +11 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.d.ts +7 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.js +5 -0
- package/api/resources/agents/types/index.d.ts +8 -1
- package/api/resources/agents/types/index.js +8 -1
- package/api/resources/blocks/client/Client.js +7 -7
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/sources/client/Client.js +8 -8
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +12 -12
- package/api/types/InternalServerErrorBody.d.ts +1 -1
- package/api/types/LettaResponseLettaUsageStatistics.d.ts +1 -0
- package/api/types/LettaUsageStatistics.d.ts +1 -0
- package/api/types/NotFoundErrorBody.d.ts +1 -2
- package/dist/api/resources/agents/client/Client.d.ts +25 -1
- package/dist/api/resources/agents/client/Client.js +120 -15
- package/dist/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +10 -0
- package/dist/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js +5 -0
- package/dist/api/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +1 -1
- package/dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +15 -0
- package/dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js +5 -0
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/dist/api/resources/agents/client/requests/index.d.ts +2 -0
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryBlocks/client/Client.js +2 -2
- package/dist/api/resources/agents/resources/messages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +0 -3
- package/dist/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +8 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js +10 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +5 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +5 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.d.ts +9 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.js +5 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.d.ts +8 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.js +10 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.d.ts +8 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.js +10 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.d.ts +9 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.js +5 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.d.ts +9 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.js +11 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.d.ts +7 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.js +5 -0
- package/dist/api/resources/agents/types/index.d.ts +8 -1
- package/dist/api/resources/agents/types/index.js +8 -1
- package/dist/api/resources/blocks/client/Client.js +7 -7
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/sources/client/Client.js +8 -8
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +12 -12
- package/dist/api/types/InternalServerErrorBody.d.ts +1 -1
- package/dist/api/types/LettaResponseLettaUsageStatistics.d.ts +1 -0
- package/dist/api/types/LettaUsageStatistics.d.ts +1 -0
- package/dist/api/types/NotFoundErrorBody.d.ts +1 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +135 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/types/AgentsCreateVersionResponse.d.ts +0 -7
- package/dist/api/resources/agents/types/AgentsCreateVersionResponse.d.ts +0 -7
- /package/api/resources/agents/{types/AgentsCreateVersionResponse.js → client/requests/AgentsCreateTemplateFromAgentRequest.js} +0 -0
- /package/{dist/api/resources/agents/types/AgentsCreateVersionResponse.js → api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js} +0 -0
|
@@ -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. */
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.1";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
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">
|
|
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.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.1";
|
package/version.js
CHANGED
|
File without changes
|