@letta-ai/letta-client 0.1.116 → 0.1.118
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/errors/PaymentRequiredError.d.ts +8 -0
- package/api/errors/PaymentRequiredError.js +51 -0
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.js +1 -0
- 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.js +4 -4
- 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.d.ts +2 -0
- package/api/resources/templates/resources/agents/client/Client.js +19 -5
- 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/PaymentRequiredErrorBody.d.ts +7 -0
- package/api/types/PaymentRequiredErrorBody.js +5 -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/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/errors/PaymentRequiredError.d.ts +8 -0
- package/dist/api/errors/PaymentRequiredError.js +51 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/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.js +4 -4
- 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.d.ts +2 -0
- package/dist/api/resources/templates/resources/agents/client/Client.js +19 -5
- 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/PaymentRequiredErrorBody.d.ts +7 -0
- package/dist/api/types/PaymentRequiredErrorBody.js +5 -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/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/types/LlmConfig.d.ts +2 -0
- package/dist/serialization/types/LlmConfig.js +2 -0
- package/dist/serialization/types/PaymentRequiredErrorBody.d.ts +13 -0
- package/dist/serialization/types/PaymentRequiredErrorBody.js +44 -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/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/LlmConfig.d.ts +2 -0
- package/serialization/types/LlmConfig.js +2 -0
- package/serialization/types/PaymentRequiredErrorBody.d.ts +13 -0
- package/serialization/types/PaymentRequiredErrorBody.js +44 -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/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/dist/api/types/index.js
CHANGED
|
@@ -18,6 +18,7 @@ __exportStar(require("./NotFoundErrorBody"), exports);
|
|
|
18
18
|
__exportStar(require("./InternalServerErrorBody"), exports);
|
|
19
19
|
__exportStar(require("./NotFoundErrorBodyMessage"), exports);
|
|
20
20
|
__exportStar(require("./ConflictErrorBody"), exports);
|
|
21
|
+
__exportStar(require("./PaymentRequiredErrorBody"), exports);
|
|
21
22
|
__exportStar(require("./BadRequestErrorBody"), exports);
|
|
22
23
|
__exportStar(require("./ActionModel"), exports);
|
|
23
24
|
__exportStar(require("./ActionParametersModel"), exports);
|
|
@@ -166,6 +167,7 @@ __exportStar(require("./ParentToolRule"), exports);
|
|
|
166
167
|
__exportStar(require("./Passage"), exports);
|
|
167
168
|
__exportStar(require("./PipRequirement"), exports);
|
|
168
169
|
__exportStar(require("./Provider"), exports);
|
|
170
|
+
__exportStar(require("./ProviderCategory"), exports);
|
|
169
171
|
__exportStar(require("./ProviderType"), exports);
|
|
170
172
|
__exportStar(require("./ReasoningContent"), exports);
|
|
171
173
|
__exportStar(require("./ReasoningMessageSource"), exports);
|
|
@@ -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()),
|
|
@@ -0,0 +1,13 @@
|
|
|
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 PaymentRequiredErrorBody: core.serialization.ObjectSchema<serializers.PaymentRequiredErrorBody.Raw, Letta.PaymentRequiredErrorBody>;
|
|
8
|
+
export declare namespace PaymentRequiredErrorBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
message: string;
|
|
11
|
+
limit: number;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.PaymentRequiredErrorBody = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.PaymentRequiredErrorBody = core.serialization.object({
|
|
42
|
+
message: core.serialization.string(),
|
|
43
|
+
limit: core.serialization.number(),
|
|
44
|
+
});
|
|
@@ -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"]);
|
|
@@ -2,6 +2,7 @@ export * from "./NotFoundErrorBody";
|
|
|
2
2
|
export * from "./InternalServerErrorBody";
|
|
3
3
|
export * from "./NotFoundErrorBodyMessage";
|
|
4
4
|
export * from "./ConflictErrorBody";
|
|
5
|
+
export * from "./PaymentRequiredErrorBody";
|
|
5
6
|
export * from "./BadRequestErrorBody";
|
|
6
7
|
export * from "./ActionModel";
|
|
7
8
|
export * from "./ActionParametersModel";
|
|
@@ -150,6 +151,7 @@ export * from "./ParentToolRule";
|
|
|
150
151
|
export * from "./Passage";
|
|
151
152
|
export * from "./PipRequirement";
|
|
152
153
|
export * from "./Provider";
|
|
154
|
+
export * from "./ProviderCategory";
|
|
153
155
|
export * from "./ProviderType";
|
|
154
156
|
export * from "./ReasoningContent";
|
|
155
157
|
export * from "./ReasoningMessageSource";
|
|
@@ -18,6 +18,7 @@ __exportStar(require("./NotFoundErrorBody"), exports);
|
|
|
18
18
|
__exportStar(require("./InternalServerErrorBody"), exports);
|
|
19
19
|
__exportStar(require("./NotFoundErrorBodyMessage"), exports);
|
|
20
20
|
__exportStar(require("./ConflictErrorBody"), exports);
|
|
21
|
+
__exportStar(require("./PaymentRequiredErrorBody"), exports);
|
|
21
22
|
__exportStar(require("./BadRequestErrorBody"), exports);
|
|
22
23
|
__exportStar(require("./ActionModel"), exports);
|
|
23
24
|
__exportStar(require("./ActionParametersModel"), exports);
|
|
@@ -166,6 +167,7 @@ __exportStar(require("./ParentToolRule"), exports);
|
|
|
166
167
|
__exportStar(require("./Passage"), exports);
|
|
167
168
|
__exportStar(require("./PipRequirement"), exports);
|
|
168
169
|
__exportStar(require("./Provider"), exports);
|
|
170
|
+
__exportStar(require("./ProviderCategory"), exports);
|
|
169
171
|
__exportStar(require("./ProviderType"), exports);
|
|
170
172
|
__exportStar(require("./ReasoningContent"), exports);
|
|
171
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.118";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -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()),
|
|
@@ -0,0 +1,13 @@
|
|
|
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 PaymentRequiredErrorBody: core.serialization.ObjectSchema<serializers.PaymentRequiredErrorBody.Raw, Letta.PaymentRequiredErrorBody>;
|
|
8
|
+
export declare namespace PaymentRequiredErrorBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
message: string;
|
|
11
|
+
limit: number;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.PaymentRequiredErrorBody = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.PaymentRequiredErrorBody = core.serialization.object({
|
|
42
|
+
message: core.serialization.string(),
|
|
43
|
+
limit: core.serialization.number(),
|
|
44
|
+
});
|
|
@@ -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"]);
|
|
@@ -2,6 +2,7 @@ export * from "./NotFoundErrorBody";
|
|
|
2
2
|
export * from "./InternalServerErrorBody";
|
|
3
3
|
export * from "./NotFoundErrorBodyMessage";
|
|
4
4
|
export * from "./ConflictErrorBody";
|
|
5
|
+
export * from "./PaymentRequiredErrorBody";
|
|
5
6
|
export * from "./BadRequestErrorBody";
|
|
6
7
|
export * from "./ActionModel";
|
|
7
8
|
export * from "./ActionParametersModel";
|
|
@@ -150,6 +151,7 @@ export * from "./ParentToolRule";
|
|
|
150
151
|
export * from "./Passage";
|
|
151
152
|
export * from "./PipRequirement";
|
|
152
153
|
export * from "./Provider";
|
|
154
|
+
export * from "./ProviderCategory";
|
|
153
155
|
export * from "./ProviderType";
|
|
154
156
|
export * from "./ReasoningContent";
|
|
155
157
|
export * from "./ReasoningMessageSource";
|
|
@@ -18,6 +18,7 @@ __exportStar(require("./NotFoundErrorBody"), exports);
|
|
|
18
18
|
__exportStar(require("./InternalServerErrorBody"), exports);
|
|
19
19
|
__exportStar(require("./NotFoundErrorBodyMessage"), exports);
|
|
20
20
|
__exportStar(require("./ConflictErrorBody"), exports);
|
|
21
|
+
__exportStar(require("./PaymentRequiredErrorBody"), exports);
|
|
21
22
|
__exportStar(require("./BadRequestErrorBody"), exports);
|
|
22
23
|
__exportStar(require("./ActionModel"), exports);
|
|
23
24
|
__exportStar(require("./ActionParametersModel"), exports);
|
|
@@ -166,6 +167,7 @@ __exportStar(require("./ParentToolRule"), exports);
|
|
|
166
167
|
__exportStar(require("./Passage"), exports);
|
|
167
168
|
__exportStar(require("./PipRequirement"), exports);
|
|
168
169
|
__exportStar(require("./Provider"), exports);
|
|
170
|
+
__exportStar(require("./ProviderCategory"), exports);
|
|
169
171
|
__exportStar(require("./ProviderType"), exports);
|
|
170
172
|
__exportStar(require("./ReasoningContent"), exports);
|
|
171
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.118";
|
package/version.js
CHANGED