@letta-ai/letta-client 0.1.117 → 0.1.119
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.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 +19 -5
- 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/jobs/client/Client.js +4 -4
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +14 -6
- package/api/resources/models/client/requests/ModelsListRequest.d.ts +4 -2
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.d.ts +13 -0
- package/api/resources/providers/client/Client.js +68 -4
- package/api/resources/providers/client/requests/ProvidersCheckRequest.d.ts +15 -0
- package/api/resources/providers/client/requests/ProvidersCheckRequest.js +5 -0
- package/api/resources/providers/client/requests/index.d.ts +1 -0
- 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/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/LlmConfig.d.ts +2 -0
- package/api/types/Provider.d.ts +2 -0
- package/api/types/ProviderCategory.d.ts +8 -0
- package/api/types/ProviderCategory.js +10 -0
- package/api/types/ProviderType.d.ts +2 -2
- package/api/types/ProviderType.js +1 -1
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- 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 +19 -5
- 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/jobs/client/Client.js +4 -4
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +14 -6
- package/dist/api/resources/models/client/requests/ModelsListRequest.d.ts +4 -2
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.d.ts +13 -0
- package/dist/api/resources/providers/client/Client.js +68 -4
- package/dist/api/resources/providers/client/requests/ProvidersCheckRequest.d.ts +15 -0
- package/dist/api/resources/providers/client/requests/ProvidersCheckRequest.js +5 -0
- package/dist/api/resources/providers/client/requests/index.d.ts +1 -0
- 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/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/LlmConfig.d.ts +2 -0
- package/dist/api/types/Provider.d.ts +2 -0
- package/dist/api/types/ProviderCategory.d.ts +8 -0
- package/dist/api/types/ProviderCategory.js +10 -0
- package/dist/api/types/ProviderType.d.ts +2 -2
- package/dist/api/types/ProviderType.js +1 -1
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/types/LlmConfig.d.ts +2 -0
- package/dist/serialization/types/LlmConfig.js +2 -0
- package/dist/serialization/types/Provider.d.ts +2 -0
- package/dist/serialization/types/Provider.js +2 -0
- package/dist/serialization/types/ProviderCategory.d.ts +10 -0
- package/dist/serialization/types/ProviderCategory.js +41 -0
- package/dist/serialization/types/ProviderType.d.ts +1 -1
- package/dist/serialization/types/ProviderType.js +1 -1
- 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 +51 -0
- package/serialization/types/LlmConfig.d.ts +2 -0
- package/serialization/types/LlmConfig.js +2 -0
- package/serialization/types/Provider.d.ts +2 -0
- package/serialization/types/Provider.js +2 -0
- package/serialization/types/ProviderCategory.d.ts +10 -0
- package/serialization/types/ProviderCategory.js +41 -0
- package/serialization/types/ProviderType.d.ts +1 -1
- package/serialization/types/ProviderType.js +1 -1
- 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
|
@@ -39,12 +39,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.LlmConfig = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const LlmConfigModelEndpointType_1 = require("./LlmConfigModelEndpointType");
|
|
42
|
+
const ProviderCategory_1 = require("./ProviderCategory");
|
|
42
43
|
const LlmConfigReasoningEffort_1 = require("./LlmConfigReasoningEffort");
|
|
43
44
|
exports.LlmConfig = core.serialization.object({
|
|
44
45
|
model: core.serialization.string(),
|
|
45
46
|
modelEndpointType: core.serialization.property("model_endpoint_type", LlmConfigModelEndpointType_1.LlmConfigModelEndpointType),
|
|
46
47
|
modelEndpoint: core.serialization.property("model_endpoint", core.serialization.string().optional()),
|
|
47
48
|
providerName: core.serialization.property("provider_name", core.serialization.string().optional()),
|
|
49
|
+
providerCategory: core.serialization.property("provider_category", ProviderCategory_1.ProviderCategory.optional()),
|
|
48
50
|
modelWrapper: core.serialization.property("model_wrapper", core.serialization.string().optional()),
|
|
49
51
|
contextWindow: core.serialization.property("context_window", core.serialization.number()),
|
|
50
52
|
putInnerThoughtsInKwargs: core.serialization.property("put_inner_thoughts_in_kwargs", core.serialization.boolean().optional()),
|
|
@@ -5,12 +5,14 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { ProviderType } from "./ProviderType";
|
|
8
|
+
import { ProviderCategory } from "./ProviderCategory";
|
|
8
9
|
export declare const Provider: core.serialization.ObjectSchema<serializers.Provider.Raw, Letta.Provider>;
|
|
9
10
|
export declare namespace Provider {
|
|
10
11
|
interface Raw {
|
|
11
12
|
id?: string | null;
|
|
12
13
|
name: string;
|
|
13
14
|
provider_type: ProviderType.Raw;
|
|
15
|
+
provider_category: ProviderCategory.Raw;
|
|
14
16
|
api_key?: string | null;
|
|
15
17
|
base_url?: string | null;
|
|
16
18
|
updated_at?: string | null;
|
|
@@ -39,10 +39,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.Provider = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const ProviderType_1 = require("./ProviderType");
|
|
42
|
+
const ProviderCategory_1 = require("./ProviderCategory");
|
|
42
43
|
exports.Provider = core.serialization.object({
|
|
43
44
|
id: core.serialization.string().optional(),
|
|
44
45
|
name: core.serialization.string(),
|
|
45
46
|
providerType: core.serialization.property("provider_type", ProviderType_1.ProviderType),
|
|
47
|
+
providerCategory: core.serialization.property("provider_category", ProviderCategory_1.ProviderCategory),
|
|
46
48
|
apiKey: core.serialization.property("api_key", core.serialization.string().optional()),
|
|
47
49
|
baseUrl: core.serialization.property("base_url", core.serialization.string().optional()),
|
|
48
50
|
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
|
@@ -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 ProviderCategory: core.serialization.Schema<serializers.ProviderCategory.Raw, Letta.ProviderCategory>;
|
|
8
|
+
export declare namespace ProviderCategory {
|
|
9
|
+
type Raw = "base" | "byok";
|
|
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.ProviderCategory = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ProviderCategory = core.serialization.enum_(["base", "byok"]);
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ProviderType: core.serialization.Schema<serializers.ProviderType.Raw, Letta.ProviderType>;
|
|
8
8
|
export declare namespace ProviderType {
|
|
9
|
-
type Raw = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm"
|
|
9
|
+
type Raw = "anthropic" | "bedrock" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm";
|
|
10
10
|
}
|
|
@@ -40,6 +40,7 @@ exports.ProviderType = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
exports.ProviderType = core.serialization.enum_([
|
|
42
42
|
"anthropic",
|
|
43
|
+
"bedrock",
|
|
43
44
|
"google_ai",
|
|
44
45
|
"google_vertex",
|
|
45
46
|
"openai",
|
|
@@ -53,5 +54,4 @@ exports.ProviderType = core.serialization.enum_([
|
|
|
53
54
|
"together",
|
|
54
55
|
"azure",
|
|
55
56
|
"vllm",
|
|
56
|
-
"bedrock",
|
|
57
57
|
]);
|
|
@@ -151,6 +151,7 @@ export * from "./ParentToolRule";
|
|
|
151
151
|
export * from "./Passage";
|
|
152
152
|
export * from "./PipRequirement";
|
|
153
153
|
export * from "./Provider";
|
|
154
|
+
export * from "./ProviderCategory";
|
|
154
155
|
export * from "./ProviderType";
|
|
155
156
|
export * from "./ReasoningContent";
|
|
156
157
|
export * from "./ReasoningMessageSource";
|
|
@@ -167,6 +167,7 @@ __exportStar(require("./ParentToolRule"), exports);
|
|
|
167
167
|
__exportStar(require("./Passage"), exports);
|
|
168
168
|
__exportStar(require("./PipRequirement"), exports);
|
|
169
169
|
__exportStar(require("./Provider"), exports);
|
|
170
|
+
__exportStar(require("./ProviderCategory"), exports);
|
|
170
171
|
__exportStar(require("./ProviderType"), exports);
|
|
171
172
|
__exportStar(require("./ReasoningContent"), exports);
|
|
172
173
|
__exportStar(require("./ReasoningMessageSource"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.119";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -3843,6 +3843,57 @@ await client.providers.modify("provider_id", {
|
|
|
3843
3843
|
</dl>
|
|
3844
3844
|
</details>
|
|
3845
3845
|
|
|
3846
|
+
<details><summary><code>client.providers.<a href="/src/api/resources/providers/client/Client.ts">check</a>({ ...params }) -> unknown</code></summary>
|
|
3847
|
+
<dl>
|
|
3848
|
+
<dd>
|
|
3849
|
+
|
|
3850
|
+
#### 🔌 Usage
|
|
3851
|
+
|
|
3852
|
+
<dl>
|
|
3853
|
+
<dd>
|
|
3854
|
+
|
|
3855
|
+
<dl>
|
|
3856
|
+
<dd>
|
|
3857
|
+
|
|
3858
|
+
```typescript
|
|
3859
|
+
await client.providers.check({
|
|
3860
|
+
apiKey: "x-api-key",
|
|
3861
|
+
providerType: "anthropic",
|
|
3862
|
+
});
|
|
3863
|
+
```
|
|
3864
|
+
|
|
3865
|
+
</dd>
|
|
3866
|
+
</dl>
|
|
3867
|
+
</dd>
|
|
3868
|
+
</dl>
|
|
3869
|
+
|
|
3870
|
+
#### ⚙️ Parameters
|
|
3871
|
+
|
|
3872
|
+
<dl>
|
|
3873
|
+
<dd>
|
|
3874
|
+
|
|
3875
|
+
<dl>
|
|
3876
|
+
<dd>
|
|
3877
|
+
|
|
3878
|
+
**request:** `Letta.ProvidersCheckRequest`
|
|
3879
|
+
|
|
3880
|
+
</dd>
|
|
3881
|
+
</dl>
|
|
3882
|
+
|
|
3883
|
+
<dl>
|
|
3884
|
+
<dd>
|
|
3885
|
+
|
|
3886
|
+
**requestOptions:** `Providers.RequestOptions`
|
|
3887
|
+
|
|
3888
|
+
</dd>
|
|
3889
|
+
</dl>
|
|
3890
|
+
</dd>
|
|
3891
|
+
</dl>
|
|
3892
|
+
|
|
3893
|
+
</dd>
|
|
3894
|
+
</dl>
|
|
3895
|
+
</details>
|
|
3896
|
+
|
|
3846
3897
|
## Runs
|
|
3847
3898
|
|
|
3848
3899
|
<details><summary><code>client.runs.<a href="/src/api/resources/runs/client/Client.ts">list</a>({ ...params }) -> Letta.Run[]</code></summary>
|
|
@@ -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 { LlmConfigModelEndpointType } from "./LlmConfigModelEndpointType";
|
|
8
|
+
import { ProviderCategory } from "./ProviderCategory";
|
|
8
9
|
import { LlmConfigReasoningEffort } from "./LlmConfigReasoningEffort";
|
|
9
10
|
export declare const LlmConfig: core.serialization.ObjectSchema<serializers.LlmConfig.Raw, Letta.LlmConfig>;
|
|
10
11
|
export declare namespace LlmConfig {
|
|
@@ -13,6 +14,7 @@ export declare namespace LlmConfig {
|
|
|
13
14
|
model_endpoint_type: LlmConfigModelEndpointType.Raw;
|
|
14
15
|
model_endpoint?: string | null;
|
|
15
16
|
provider_name?: string | null;
|
|
17
|
+
provider_category?: ProviderCategory.Raw | null;
|
|
16
18
|
model_wrapper?: string | null;
|
|
17
19
|
context_window: number;
|
|
18
20
|
put_inner_thoughts_in_kwargs?: boolean | null;
|
|
@@ -39,12 +39,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.LlmConfig = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const LlmConfigModelEndpointType_1 = require("./LlmConfigModelEndpointType");
|
|
42
|
+
const ProviderCategory_1 = require("./ProviderCategory");
|
|
42
43
|
const LlmConfigReasoningEffort_1 = require("./LlmConfigReasoningEffort");
|
|
43
44
|
exports.LlmConfig = core.serialization.object({
|
|
44
45
|
model: core.serialization.string(),
|
|
45
46
|
modelEndpointType: core.serialization.property("model_endpoint_type", LlmConfigModelEndpointType_1.LlmConfigModelEndpointType),
|
|
46
47
|
modelEndpoint: core.serialization.property("model_endpoint", core.serialization.string().optional()),
|
|
47
48
|
providerName: core.serialization.property("provider_name", core.serialization.string().optional()),
|
|
49
|
+
providerCategory: core.serialization.property("provider_category", ProviderCategory_1.ProviderCategory.optional()),
|
|
48
50
|
modelWrapper: core.serialization.property("model_wrapper", core.serialization.string().optional()),
|
|
49
51
|
contextWindow: core.serialization.property("context_window", core.serialization.number()),
|
|
50
52
|
putInnerThoughtsInKwargs: core.serialization.property("put_inner_thoughts_in_kwargs", core.serialization.boolean().optional()),
|
|
@@ -5,12 +5,14 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { ProviderType } from "./ProviderType";
|
|
8
|
+
import { ProviderCategory } from "./ProviderCategory";
|
|
8
9
|
export declare const Provider: core.serialization.ObjectSchema<serializers.Provider.Raw, Letta.Provider>;
|
|
9
10
|
export declare namespace Provider {
|
|
10
11
|
interface Raw {
|
|
11
12
|
id?: string | null;
|
|
12
13
|
name: string;
|
|
13
14
|
provider_type: ProviderType.Raw;
|
|
15
|
+
provider_category: ProviderCategory.Raw;
|
|
14
16
|
api_key?: string | null;
|
|
15
17
|
base_url?: string | null;
|
|
16
18
|
updated_at?: string | null;
|
|
@@ -39,10 +39,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.Provider = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const ProviderType_1 = require("./ProviderType");
|
|
42
|
+
const ProviderCategory_1 = require("./ProviderCategory");
|
|
42
43
|
exports.Provider = core.serialization.object({
|
|
43
44
|
id: core.serialization.string().optional(),
|
|
44
45
|
name: core.serialization.string(),
|
|
45
46
|
providerType: core.serialization.property("provider_type", ProviderType_1.ProviderType),
|
|
47
|
+
providerCategory: core.serialization.property("provider_category", ProviderCategory_1.ProviderCategory),
|
|
46
48
|
apiKey: core.serialization.property("api_key", core.serialization.string().optional()),
|
|
47
49
|
baseUrl: core.serialization.property("base_url", core.serialization.string().optional()),
|
|
48
50
|
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
|
@@ -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 ProviderCategory: core.serialization.Schema<serializers.ProviderCategory.Raw, Letta.ProviderCategory>;
|
|
8
|
+
export declare namespace ProviderCategory {
|
|
9
|
+
type Raw = "base" | "byok";
|
|
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.ProviderCategory = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ProviderCategory = core.serialization.enum_(["base", "byok"]);
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ProviderType: core.serialization.Schema<serializers.ProviderType.Raw, Letta.ProviderType>;
|
|
8
8
|
export declare namespace ProviderType {
|
|
9
|
-
type Raw = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm"
|
|
9
|
+
type Raw = "anthropic" | "bedrock" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm";
|
|
10
10
|
}
|
|
@@ -40,6 +40,7 @@ exports.ProviderType = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
exports.ProviderType = core.serialization.enum_([
|
|
42
42
|
"anthropic",
|
|
43
|
+
"bedrock",
|
|
43
44
|
"google_ai",
|
|
44
45
|
"google_vertex",
|
|
45
46
|
"openai",
|
|
@@ -53,5 +54,4 @@ exports.ProviderType = core.serialization.enum_([
|
|
|
53
54
|
"together",
|
|
54
55
|
"azure",
|
|
55
56
|
"vllm",
|
|
56
|
-
"bedrock",
|
|
57
57
|
]);
|
|
@@ -151,6 +151,7 @@ export * from "./ParentToolRule";
|
|
|
151
151
|
export * from "./Passage";
|
|
152
152
|
export * from "./PipRequirement";
|
|
153
153
|
export * from "./Provider";
|
|
154
|
+
export * from "./ProviderCategory";
|
|
154
155
|
export * from "./ProviderType";
|
|
155
156
|
export * from "./ReasoningContent";
|
|
156
157
|
export * from "./ReasoningMessageSource";
|
|
@@ -167,6 +167,7 @@ __exportStar(require("./ParentToolRule"), exports);
|
|
|
167
167
|
__exportStar(require("./Passage"), exports);
|
|
168
168
|
__exportStar(require("./PipRequirement"), exports);
|
|
169
169
|
__exportStar(require("./Provider"), exports);
|
|
170
|
+
__exportStar(require("./ProviderCategory"), exports);
|
|
170
171
|
__exportStar(require("./ProviderType"), exports);
|
|
171
172
|
__exportStar(require("./ReasoningContent"), exports);
|
|
172
173
|
__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.119";
|
package/version.js
CHANGED