@letta-ai/letta-client 0.1.121 → 0.1.123
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/Client.d.ts +3 -0
- package/Client.js +17 -12
- package/api/resources/agents/client/Client.js +9 -9
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +6 -6
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/api/resources/embeddingModels/client/Client.d.ts +2 -0
- package/api/resources/embeddingModels/client/Client.js +3 -1
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.d.ts +2 -0
- package/api/resources/models/client/Client.js +3 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +5 -5
- package/api/resources/runs/client/Client.js +4 -4
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +7 -7
- 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/steps/client/Client.js +2 -2
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.d.ts +42 -0
- package/api/resources/telemetry/client/Client.js +132 -0
- package/api/resources/telemetry/client/index.d.ts +1 -0
- package/api/resources/telemetry/client/index.js +2 -0
- package/api/resources/telemetry/index.d.ts +1 -0
- package/api/resources/telemetry/index.js +17 -0
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +17 -17
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/ProviderTrace.d.ts +32 -0
- package/api/types/ProviderTrace.js +5 -0
- package/api/types/Step.d.ts +2 -0
- package/api/types/ToolType.d.ts +2 -1
- package/api/types/ToolType.js +1 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +17 -12
- package/dist/api/resources/agents/client/Client.js +9 -9
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/dist/api/resources/embeddingModels/client/Client.d.ts +2 -0
- package/dist/api/resources/embeddingModels/client/Client.js +3 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.d.ts +2 -0
- package/dist/api/resources/models/client/Client.js +3 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +5 -5
- package/dist/api/resources/runs/client/Client.js +4 -4
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +7 -7
- 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/steps/client/Client.js +2 -2
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.d.ts +42 -0
- package/dist/api/resources/telemetry/client/Client.js +132 -0
- package/dist/api/resources/telemetry/client/index.d.ts +1 -0
- package/dist/api/resources/telemetry/client/index.js +2 -0
- package/dist/api/resources/telemetry/index.d.ts +1 -0
- package/dist/api/resources/telemetry/index.js +17 -0
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +17 -17
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/ProviderTrace.d.ts +32 -0
- package/dist/api/types/ProviderTrace.js +5 -0
- package/dist/api/types/Step.d.ts +2 -0
- package/dist/api/types/ToolType.d.ts +2 -1
- package/dist/api/types/ToolType.js +1 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/types/ProviderTrace.d.ts +19 -0
- package/dist/serialization/types/ProviderTrace.js +50 -0
- package/dist/serialization/types/Step.d.ts +1 -0
- package/dist/serialization/types/Step.js +1 -0
- package/dist/serialization/types/ToolType.d.ts +1 -1
- package/dist/serialization/types/ToolType.js +1 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +80 -0
- package/serialization/types/ProviderTrace.d.ts +19 -0
- package/serialization/types/ProviderTrace.js +50 -0
- package/serialization/types/Step.d.ts +1 -0
- package/serialization/types/Step.js +1 -0
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +1 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2893,6 +2893,21 @@ await client.identities.modify("identity_id");
|
|
|
2893
2893
|
<dl>
|
|
2894
2894
|
<dd>
|
|
2895
2895
|
|
|
2896
|
+
#### 📝 Description
|
|
2897
|
+
|
|
2898
|
+
<dl>
|
|
2899
|
+
<dd>
|
|
2900
|
+
|
|
2901
|
+
<dl>
|
|
2902
|
+
<dd>
|
|
2903
|
+
|
|
2904
|
+
List available LLM models using the asynchronous implementation for improved performance
|
|
2905
|
+
|
|
2906
|
+
</dd>
|
|
2907
|
+
</dl>
|
|
2908
|
+
</dd>
|
|
2909
|
+
</dl>
|
|
2910
|
+
|
|
2896
2911
|
#### 🔌 Usage
|
|
2897
2912
|
|
|
2898
2913
|
<dl>
|
|
@@ -2943,6 +2958,21 @@ await client.models.list();
|
|
|
2943
2958
|
<dl>
|
|
2944
2959
|
<dd>
|
|
2945
2960
|
|
|
2961
|
+
#### 📝 Description
|
|
2962
|
+
|
|
2963
|
+
<dl>
|
|
2964
|
+
<dd>
|
|
2965
|
+
|
|
2966
|
+
<dl>
|
|
2967
|
+
<dd>
|
|
2968
|
+
|
|
2969
|
+
List available embedding models using the asynchronous implementation for improved performance
|
|
2970
|
+
|
|
2971
|
+
</dd>
|
|
2972
|
+
</dl>
|
|
2973
|
+
</dd>
|
|
2974
|
+
</dl>
|
|
2975
|
+
|
|
2946
2976
|
#### 🔌 Usage
|
|
2947
2977
|
|
|
2948
2978
|
<dl>
|
|
@@ -4342,6 +4372,56 @@ await client.tags.list();
|
|
|
4342
4372
|
</dl>
|
|
4343
4373
|
</details>
|
|
4344
4374
|
|
|
4375
|
+
## Telemetry
|
|
4376
|
+
|
|
4377
|
+
<details><summary><code>client.telemetry.<a href="/src/api/resources/telemetry/client/Client.ts">retrieveProviderTrace</a>(stepId) -> Letta.ProviderTrace</code></summary>
|
|
4378
|
+
<dl>
|
|
4379
|
+
<dd>
|
|
4380
|
+
|
|
4381
|
+
#### 🔌 Usage
|
|
4382
|
+
|
|
4383
|
+
<dl>
|
|
4384
|
+
<dd>
|
|
4385
|
+
|
|
4386
|
+
<dl>
|
|
4387
|
+
<dd>
|
|
4388
|
+
|
|
4389
|
+
```typescript
|
|
4390
|
+
await client.telemetry.retrieveProviderTrace("step_id");
|
|
4391
|
+
```
|
|
4392
|
+
|
|
4393
|
+
</dd>
|
|
4394
|
+
</dl>
|
|
4395
|
+
</dd>
|
|
4396
|
+
</dl>
|
|
4397
|
+
|
|
4398
|
+
#### ⚙️ Parameters
|
|
4399
|
+
|
|
4400
|
+
<dl>
|
|
4401
|
+
<dd>
|
|
4402
|
+
|
|
4403
|
+
<dl>
|
|
4404
|
+
<dd>
|
|
4405
|
+
|
|
4406
|
+
**stepId:** `string`
|
|
4407
|
+
|
|
4408
|
+
</dd>
|
|
4409
|
+
</dl>
|
|
4410
|
+
|
|
4411
|
+
<dl>
|
|
4412
|
+
<dd>
|
|
4413
|
+
|
|
4414
|
+
**requestOptions:** `Telemetry.RequestOptions`
|
|
4415
|
+
|
|
4416
|
+
</dd>
|
|
4417
|
+
</dl>
|
|
4418
|
+
</dd>
|
|
4419
|
+
</dl>
|
|
4420
|
+
|
|
4421
|
+
</dd>
|
|
4422
|
+
</dl>
|
|
4423
|
+
</details>
|
|
4424
|
+
|
|
4345
4425
|
## Batches
|
|
4346
4426
|
|
|
4347
4427
|
<details><summary><code>client.batches.<a href="/src/api/resources/batches/client/Client.ts">list</a>() -> Letta.BatchJob[]</code></summary>
|
|
@@ -0,0 +1,19 @@
|
|
|
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 ProviderTrace: core.serialization.ObjectSchema<serializers.ProviderTrace.Raw, Letta.ProviderTrace>;
|
|
8
|
+
export declare namespace ProviderTrace {
|
|
9
|
+
interface Raw {
|
|
10
|
+
created_by_id?: string | null;
|
|
11
|
+
last_updated_by_id?: string | null;
|
|
12
|
+
created_at?: string | null;
|
|
13
|
+
updated_at?: string | null;
|
|
14
|
+
id?: string | null;
|
|
15
|
+
request_json: Record<string, unknown>;
|
|
16
|
+
response_json: Record<string, unknown>;
|
|
17
|
+
step_id?: string | null;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.ProviderTrace = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ProviderTrace = core.serialization.object({
|
|
42
|
+
createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
|
|
43
|
+
lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
|
|
44
|
+
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
|
45
|
+
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
|
46
|
+
id: core.serialization.string().optional(),
|
|
47
|
+
requestJson: core.serialization.property("request_json", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
|
|
48
|
+
responseJson: core.serialization.property("response_json", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
|
|
49
|
+
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
50
|
+
});
|
|
@@ -46,6 +46,7 @@ exports.Step = core.serialization.object({
|
|
|
46
46
|
jobId: core.serialization.property("job_id", core.serialization.string().optional()),
|
|
47
47
|
agentId: core.serialization.property("agent_id", core.serialization.string().optional()),
|
|
48
48
|
providerName: core.serialization.property("provider_name", core.serialization.string().optional()),
|
|
49
|
+
providerCategory: core.serialization.property("provider_category", core.serialization.string().optional()),
|
|
49
50
|
model: core.serialization.string().optional(),
|
|
50
51
|
modelEndpoint: core.serialization.property("model_endpoint", core.serialization.string().optional()),
|
|
51
52
|
contextWindowLimit: core.serialization.property("context_window_limit", core.serialization.number().optional()),
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ToolType: core.serialization.Schema<serializers.ToolType.Raw, Letta.ToolType>;
|
|
8
8
|
export declare namespace ToolType {
|
|
9
|
-
type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "letta_sleeptime_core" | "letta_voice_sleeptime_core" | "external_composio" | "external_langchain" | "external_mcp";
|
|
9
|
+
type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "letta_sleeptime_core" | "letta_voice_sleeptime_core" | "letta_builtin" | "external_composio" | "external_langchain" | "external_mcp";
|
|
10
10
|
}
|
|
@@ -152,6 +152,7 @@ export * from "./Passage";
|
|
|
152
152
|
export * from "./PipRequirement";
|
|
153
153
|
export * from "./Provider";
|
|
154
154
|
export * from "./ProviderCategory";
|
|
155
|
+
export * from "./ProviderTrace";
|
|
155
156
|
export * from "./ProviderType";
|
|
156
157
|
export * from "./ReasoningContent";
|
|
157
158
|
export * from "./ReasoningMessageSource";
|
|
@@ -168,6 +168,7 @@ __exportStar(require("./Passage"), exports);
|
|
|
168
168
|
__exportStar(require("./PipRequirement"), exports);
|
|
169
169
|
__exportStar(require("./Provider"), exports);
|
|
170
170
|
__exportStar(require("./ProviderCategory"), exports);
|
|
171
|
+
__exportStar(require("./ProviderTrace"), exports);
|
|
171
172
|
__exportStar(require("./ProviderType"), exports);
|
|
172
173
|
__exportStar(require("./ReasoningContent"), exports);
|
|
173
174
|
__exportStar(require("./ReasoningMessageSource"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.123";
|
package/version.js
CHANGED