@letta-ai/letta-client 0.1.110 → 0.1.111
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 +5 -5
- 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.js +1 -1
- package/api/resources/embeddings/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +5 -5
- 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 +1 -0
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.d.ts +4 -1
- package/api/resources/models/client/Client.js +28 -7
- package/api/resources/models/client/index.d.ts +1 -1
- package/api/resources/models/client/index.js +15 -0
- package/api/resources/models/client/requests/ModelsListRequest.d.ts +10 -0
- package/api/resources/models/client/requests/index.d.ts +1 -0
- package/api/resources/models/client/requests/index.js +2 -0
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.d.ts +1 -0
- package/api/resources/providers/client/Client.js +12 -5
- package/api/resources/providers/client/requests/ProviderCreate.d.ts +4 -0
- package/api/resources/providers/client/requests/ProvidersListRequest.d.ts +3 -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.d.ts +3 -10
- package/api/resources/steps/client/Client.js +8 -51
- package/api/resources/steps/client/requests/{ListStepsRequest.d.ts → StepsListRequest.d.ts} +1 -1
- package/api/resources/steps/client/requests/index.d.ts +1 -1
- 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 +5 -0
- package/api/types/ProviderType.d.ts +21 -0
- package/api/types/ProviderType.js +23 -0
- 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 +5 -5
- 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.js +1 -1
- package/dist/api/resources/embeddings/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +5 -5
- 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 +1 -0
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.d.ts +4 -1
- package/dist/api/resources/models/client/Client.js +28 -7
- package/dist/api/resources/models/client/index.d.ts +1 -1
- package/dist/api/resources/models/client/index.js +15 -0
- package/dist/api/resources/models/client/requests/ModelsListRequest.d.ts +10 -0
- package/dist/api/resources/models/client/requests/ModelsListRequest.js +5 -0
- package/dist/api/resources/models/client/requests/index.d.ts +1 -0
- package/dist/api/resources/models/client/requests/index.js +2 -0
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.d.ts +1 -0
- package/dist/api/resources/providers/client/Client.js +12 -5
- package/dist/api/resources/providers/client/requests/ProviderCreate.d.ts +4 -0
- package/dist/api/resources/providers/client/requests/ProvidersListRequest.d.ts +3 -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.d.ts +3 -10
- package/dist/api/resources/steps/client/Client.js +8 -51
- package/dist/api/resources/steps/client/requests/{ListStepsRequest.d.ts → StepsListRequest.d.ts} +1 -1
- package/dist/api/resources/steps/client/requests/StepsListRequest.js +5 -0
- package/dist/api/resources/steps/client/requests/index.d.ts +1 -1
- 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 +5 -0
- package/dist/api/types/ProviderType.d.ts +21 -0
- package/dist/api/types/ProviderType.js +23 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
- package/dist/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
- package/dist/serialization/resources/steps/client/index.d.ts +1 -1
- package/dist/serialization/resources/steps/client/index.js +2 -2
- package/dist/serialization/resources/steps/client/{listSteps.d.ts → list.d.ts} +1 -1
- package/dist/serialization/types/LlmConfig.d.ts +1 -0
- package/dist/serialization/types/LlmConfig.js +1 -0
- package/dist/serialization/types/Provider.d.ts +3 -0
- package/dist/serialization/types/Provider.js +3 -0
- package/dist/serialization/types/ProviderType.d.ts +10 -0
- package/dist/serialization/types/ProviderType.js +57 -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 +13 -44
- package/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
- package/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
- package/serialization/resources/steps/client/index.d.ts +1 -1
- package/serialization/resources/steps/client/index.js +2 -2
- package/serialization/resources/steps/client/{listSteps.d.ts → list.d.ts} +1 -1
- package/serialization/types/LlmConfig.d.ts +1 -0
- package/serialization/types/LlmConfig.js +1 -0
- package/serialization/types/Provider.d.ts +3 -0
- package/serialization/types/Provider.js +3 -0
- package/serialization/types/ProviderType.d.ts +10 -0
- package/serialization/types/ProviderType.js +57 -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/api/resources/{steps/client/requests/ListStepsRequest.js → models/client/requests/ModelsListRequest.js} +0 -0
- /package/{dist/api/resources/steps/client/requests/ListStepsRequest.js → api/resources/steps/client/requests/StepsListRequest.js} +0 -0
- /package/dist/serialization/resources/steps/client/{listSteps.js → list.js} +0 -0
- /package/serialization/resources/steps/client/{listSteps.js → list.js} +0 -0
|
@@ -84,7 +84,7 @@ class Voice {
|
|
|
84
84
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
85
85
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
|
|
86
86
|
method: "POST",
|
|
87
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
87
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
requestType: "json",
|
|
90
90
|
body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
|
|
@@ -22,6 +22,8 @@ export interface LlmConfig {
|
|
|
22
22
|
modelEndpointType: Letta.LlmConfigModelEndpointType;
|
|
23
23
|
/** The endpoint for the model. */
|
|
24
24
|
modelEndpoint?: string;
|
|
25
|
+
/** The provider name for the model. */
|
|
26
|
+
providerName?: string;
|
|
25
27
|
/** The wrapper for the model. */
|
|
26
28
|
modelWrapper?: string;
|
|
27
29
|
/** The context window size for the model. */
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
4
5
|
export interface Provider {
|
|
5
6
|
/** The id of the provider, lazily created by the database manager. */
|
|
6
7
|
id?: string;
|
|
7
8
|
/** The name of the provider */
|
|
8
9
|
name: string;
|
|
10
|
+
/** The type of the provider */
|
|
11
|
+
providerType: Letta.ProviderType;
|
|
9
12
|
/** API key used for requests to the provider. */
|
|
10
13
|
apiKey?: string;
|
|
14
|
+
/** Base URL for the provider. */
|
|
15
|
+
baseUrl?: string;
|
|
11
16
|
/** The last update timestamp of the provider. */
|
|
12
17
|
updatedAt?: Date;
|
|
13
18
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type ProviderType = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock";
|
|
5
|
+
export declare const ProviderType: {
|
|
6
|
+
readonly Anthropic: "anthropic";
|
|
7
|
+
readonly GoogleAi: "google_ai";
|
|
8
|
+
readonly GoogleVertex: "google_vertex";
|
|
9
|
+
readonly Openai: "openai";
|
|
10
|
+
readonly Letta: "letta";
|
|
11
|
+
readonly Deepseek: "deepseek";
|
|
12
|
+
readonly LmstudioOpenai: "lmstudio_openai";
|
|
13
|
+
readonly Xai: "xai";
|
|
14
|
+
readonly Mistral: "mistral";
|
|
15
|
+
readonly Ollama: "ollama";
|
|
16
|
+
readonly Groq: "groq";
|
|
17
|
+
readonly Together: "together";
|
|
18
|
+
readonly Azure: "azure";
|
|
19
|
+
readonly Vllm: "vllm";
|
|
20
|
+
readonly Bedrock: "bedrock";
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ProviderType = void 0;
|
|
7
|
+
exports.ProviderType = {
|
|
8
|
+
Anthropic: "anthropic",
|
|
9
|
+
GoogleAi: "google_ai",
|
|
10
|
+
GoogleVertex: "google_vertex",
|
|
11
|
+
Openai: "openai",
|
|
12
|
+
Letta: "letta",
|
|
13
|
+
Deepseek: "deepseek",
|
|
14
|
+
LmstudioOpenai: "lmstudio_openai",
|
|
15
|
+
Xai: "xai",
|
|
16
|
+
Mistral: "mistral",
|
|
17
|
+
Ollama: "ollama",
|
|
18
|
+
Groq: "groq",
|
|
19
|
+
Together: "together",
|
|
20
|
+
Azure: "azure",
|
|
21
|
+
Vllm: "vllm",
|
|
22
|
+
Bedrock: "bedrock",
|
|
23
|
+
};
|
|
@@ -149,6 +149,7 @@ export * from "./ParentToolRule";
|
|
|
149
149
|
export * from "./Passage";
|
|
150
150
|
export * from "./PipRequirement";
|
|
151
151
|
export * from "./Provider";
|
|
152
|
+
export * from "./ProviderType";
|
|
152
153
|
export * from "./ReasoningContent";
|
|
153
154
|
export * from "./ReasoningMessageSource";
|
|
154
155
|
export * from "./ReasoningMessage";
|
package/dist/api/types/index.js
CHANGED
|
@@ -165,6 +165,7 @@ __exportStar(require("./ParentToolRule"), exports);
|
|
|
165
165
|
__exportStar(require("./Passage"), exports);
|
|
166
166
|
__exportStar(require("./PipRequirement"), exports);
|
|
167
167
|
__exportStar(require("./Provider"), exports);
|
|
168
|
+
__exportStar(require("./ProviderType"), exports);
|
|
168
169
|
__exportStar(require("./ReasoningContent"), exports);
|
|
169
170
|
__exportStar(require("./ReasoningMessageSource"), exports);
|
|
170
171
|
__exportStar(require("./ReasoningMessage"), exports);
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
import * as serializers from "../../../../index";
|
|
5
5
|
import * as Letta from "../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
|
+
import { ProviderType } from "../../../../types/ProviderType";
|
|
7
8
|
export declare const ProviderCreate: core.serialization.Schema<serializers.ProviderCreate.Raw, Letta.ProviderCreate>;
|
|
8
9
|
export declare namespace ProviderCreate {
|
|
9
10
|
interface Raw {
|
|
10
11
|
name: string;
|
|
12
|
+
provider_type: ProviderType.Raw;
|
|
11
13
|
api_key: string;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
@@ -38,7 +38,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ProviderCreate = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
const ProviderType_1 = require("../../../../types/ProviderType");
|
|
41
42
|
exports.ProviderCreate = core.serialization.object({
|
|
42
43
|
name: core.serialization.string(),
|
|
44
|
+
providerType: core.serialization.property("provider_type", ProviderType_1.ProviderType),
|
|
43
45
|
apiKey: core.serialization.property("api_key", core.serialization.string()),
|
|
44
46
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as list from "./list";
|
|
@@ -33,5 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
36
|
+
exports.list = void 0;
|
|
37
|
+
exports.list = __importStar(require("./list"));
|
|
@@ -5,7 +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 { Step } from "../../../types/Step";
|
|
8
|
-
export declare const Response: core.serialization.Schema<serializers.steps.
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.steps.list.Response.Raw, Letta.Step[]>;
|
|
9
9
|
export declare namespace Response {
|
|
10
10
|
type Raw = Step.Raw[];
|
|
11
11
|
}
|
|
@@ -12,6 +12,7 @@ export declare namespace LlmConfig {
|
|
|
12
12
|
model: string;
|
|
13
13
|
model_endpoint_type: LlmConfigModelEndpointType.Raw;
|
|
14
14
|
model_endpoint?: string | null;
|
|
15
|
+
provider_name?: string | null;
|
|
15
16
|
model_wrapper?: string | null;
|
|
16
17
|
context_window: number;
|
|
17
18
|
put_inner_thoughts_in_kwargs?: boolean | null;
|
|
@@ -44,6 +44,7 @@ exports.LlmConfig = core.serialization.object({
|
|
|
44
44
|
model: core.serialization.string(),
|
|
45
45
|
modelEndpointType: core.serialization.property("model_endpoint_type", LlmConfigModelEndpointType_1.LlmConfigModelEndpointType),
|
|
46
46
|
modelEndpoint: core.serialization.property("model_endpoint", core.serialization.string().optional()),
|
|
47
|
+
providerName: core.serialization.property("provider_name", core.serialization.string().optional()),
|
|
47
48
|
modelWrapper: core.serialization.property("model_wrapper", core.serialization.string().optional()),
|
|
48
49
|
contextWindow: core.serialization.property("context_window", core.serialization.number()),
|
|
49
50
|
putInnerThoughtsInKwargs: core.serialization.property("put_inner_thoughts_in_kwargs", core.serialization.boolean().optional()),
|
|
@@ -4,12 +4,15 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { ProviderType } from "./ProviderType";
|
|
7
8
|
export declare const Provider: core.serialization.ObjectSchema<serializers.Provider.Raw, Letta.Provider>;
|
|
8
9
|
export declare namespace Provider {
|
|
9
10
|
interface Raw {
|
|
10
11
|
id?: string | null;
|
|
11
12
|
name: string;
|
|
13
|
+
provider_type: ProviderType.Raw;
|
|
12
14
|
api_key?: string | null;
|
|
15
|
+
base_url?: string | null;
|
|
13
16
|
updated_at?: string | null;
|
|
14
17
|
}
|
|
15
18
|
}
|
|
@@ -38,9 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Provider = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
+
const ProviderType_1 = require("./ProviderType");
|
|
41
42
|
exports.Provider = core.serialization.object({
|
|
42
43
|
id: core.serialization.string().optional(),
|
|
43
44
|
name: core.serialization.string(),
|
|
45
|
+
providerType: core.serialization.property("provider_type", ProviderType_1.ProviderType),
|
|
44
46
|
apiKey: core.serialization.property("api_key", core.serialization.string().optional()),
|
|
47
|
+
baseUrl: core.serialization.property("base_url", core.serialization.string().optional()),
|
|
45
48
|
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
|
46
49
|
});
|
|
@@ -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 ProviderType: core.serialization.Schema<serializers.ProviderType.Raw, Letta.ProviderType>;
|
|
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" | "bedrock";
|
|
10
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.ProviderType = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ProviderType = core.serialization.enum_([
|
|
42
|
+
"anthropic",
|
|
43
|
+
"google_ai",
|
|
44
|
+
"google_vertex",
|
|
45
|
+
"openai",
|
|
46
|
+
"letta",
|
|
47
|
+
"deepseek",
|
|
48
|
+
"lmstudio_openai",
|
|
49
|
+
"xai",
|
|
50
|
+
"mistral",
|
|
51
|
+
"ollama",
|
|
52
|
+
"groq",
|
|
53
|
+
"together",
|
|
54
|
+
"azure",
|
|
55
|
+
"vllm",
|
|
56
|
+
"bedrock",
|
|
57
|
+
]);
|
|
@@ -149,6 +149,7 @@ export * from "./ParentToolRule";
|
|
|
149
149
|
export * from "./Passage";
|
|
150
150
|
export * from "./PipRequirement";
|
|
151
151
|
export * from "./Provider";
|
|
152
|
+
export * from "./ProviderType";
|
|
152
153
|
export * from "./ReasoningContent";
|
|
153
154
|
export * from "./ReasoningMessageSource";
|
|
154
155
|
export * from "./ReasoningMessage";
|
|
@@ -165,6 +165,7 @@ __exportStar(require("./ParentToolRule"), exports);
|
|
|
165
165
|
__exportStar(require("./Passage"), exports);
|
|
166
166
|
__exportStar(require("./PipRequirement"), exports);
|
|
167
167
|
__exportStar(require("./Provider"), exports);
|
|
168
|
+
__exportStar(require("./ProviderType"), exports);
|
|
168
169
|
__exportStar(require("./ReasoningContent"), exports);
|
|
169
170
|
__exportStar(require("./ReasoningMessageSource"), exports);
|
|
170
171
|
__exportStar(require("./ReasoningMessage"), 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.111";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2834,7 +2834,7 @@ await client.identities.modify("identity_id");
|
|
|
2834
2834
|
|
|
2835
2835
|
## Models
|
|
2836
2836
|
|
|
2837
|
-
<details><summary><code>client.models.<a href="/src/api/resources/models/client/Client.ts">list</a>() -> Letta.LlmConfig[]</code></summary>
|
|
2837
|
+
<details><summary><code>client.models.<a href="/src/api/resources/models/client/Client.ts">list</a>({ ...params }) -> Letta.LlmConfig[]</code></summary>
|
|
2838
2838
|
<dl>
|
|
2839
2839
|
<dd>
|
|
2840
2840
|
|
|
@@ -2863,6 +2863,14 @@ await client.models.list();
|
|
|
2863
2863
|
<dl>
|
|
2864
2864
|
<dd>
|
|
2865
2865
|
|
|
2866
|
+
**request:** `Letta.ModelsListRequest`
|
|
2867
|
+
|
|
2868
|
+
</dd>
|
|
2869
|
+
</dl>
|
|
2870
|
+
|
|
2871
|
+
<dl>
|
|
2872
|
+
<dd>
|
|
2873
|
+
|
|
2866
2874
|
**requestOptions:** `Models.RequestOptions`
|
|
2867
2875
|
|
|
2868
2876
|
</dd>
|
|
@@ -3552,6 +3560,7 @@ Create a new custom provider
|
|
|
3552
3560
|
```typescript
|
|
3553
3561
|
await client.providers.create({
|
|
3554
3562
|
name: "name",
|
|
3563
|
+
providerType: "anthropic",
|
|
3555
3564
|
apiKey: "api_key",
|
|
3556
3565
|
});
|
|
3557
3566
|
```
|
|
@@ -3980,7 +3989,7 @@ await client.runs.delete("run_id");
|
|
|
3980
3989
|
|
|
3981
3990
|
## Steps
|
|
3982
3991
|
|
|
3983
|
-
<details><summary><code>client.steps.<a href="/src/api/resources/steps/client/Client.ts">
|
|
3992
|
+
<details><summary><code>client.steps.<a href="/src/api/resources/steps/client/Client.ts">list</a>({ ...params }) -> Letta.Step[]</code></summary>
|
|
3984
3993
|
<dl>
|
|
3985
3994
|
<dd>
|
|
3986
3995
|
|
|
@@ -4009,7 +4018,7 @@ Dates should be provided in ISO 8601 format (e.g. 2025-01-29T15:01:19-08:00)
|
|
|
4009
4018
|
<dd>
|
|
4010
4019
|
|
|
4011
4020
|
```typescript
|
|
4012
|
-
await client.steps.
|
|
4021
|
+
await client.steps.list();
|
|
4013
4022
|
```
|
|
4014
4023
|
|
|
4015
4024
|
</dd>
|
|
@@ -4025,7 +4034,7 @@ await client.steps.listSteps();
|
|
|
4025
4034
|
<dl>
|
|
4026
4035
|
<dd>
|
|
4027
4036
|
|
|
4028
|
-
**request:** `Letta.
|
|
4037
|
+
**request:** `Letta.StepsListRequest`
|
|
4029
4038
|
|
|
4030
4039
|
</dd>
|
|
4031
4040
|
</dl>
|
|
@@ -4107,46 +4116,6 @@ await client.steps.retrieve("step_id");
|
|
|
4107
4116
|
</dl>
|
|
4108
4117
|
</details>
|
|
4109
4118
|
|
|
4110
|
-
<details><summary><code>client.steps.<a href="/src/api/resources/steps/client/Client.ts">list</a>() -> void</code></summary>
|
|
4111
|
-
<dl>
|
|
4112
|
-
<dd>
|
|
4113
|
-
|
|
4114
|
-
#### 🔌 Usage
|
|
4115
|
-
|
|
4116
|
-
<dl>
|
|
4117
|
-
<dd>
|
|
4118
|
-
|
|
4119
|
-
<dl>
|
|
4120
|
-
<dd>
|
|
4121
|
-
|
|
4122
|
-
```typescript
|
|
4123
|
-
await client.steps.list();
|
|
4124
|
-
```
|
|
4125
|
-
|
|
4126
|
-
</dd>
|
|
4127
|
-
</dl>
|
|
4128
|
-
</dd>
|
|
4129
|
-
</dl>
|
|
4130
|
-
|
|
4131
|
-
#### ⚙️ Parameters
|
|
4132
|
-
|
|
4133
|
-
<dl>
|
|
4134
|
-
<dd>
|
|
4135
|
-
|
|
4136
|
-
<dl>
|
|
4137
|
-
<dd>
|
|
4138
|
-
|
|
4139
|
-
**requestOptions:** `Steps.RequestOptions`
|
|
4140
|
-
|
|
4141
|
-
</dd>
|
|
4142
|
-
</dl>
|
|
4143
|
-
</dd>
|
|
4144
|
-
</dl>
|
|
4145
|
-
|
|
4146
|
-
</dd>
|
|
4147
|
-
</dl>
|
|
4148
|
-
</details>
|
|
4149
|
-
|
|
4150
4119
|
## Tags
|
|
4151
4120
|
|
|
4152
4121
|
<details><summary><code>client.tags.<a href="/src/api/resources/tags/client/Client.ts">list</a>({ ...params }) -> string[]</code></summary>
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
import * as serializers from "../../../../index";
|
|
5
5
|
import * as Letta from "../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
|
+
import { ProviderType } from "../../../../types/ProviderType";
|
|
7
8
|
export declare const ProviderCreate: core.serialization.Schema<serializers.ProviderCreate.Raw, Letta.ProviderCreate>;
|
|
8
9
|
export declare namespace ProviderCreate {
|
|
9
10
|
interface Raw {
|
|
10
11
|
name: string;
|
|
12
|
+
provider_type: ProviderType.Raw;
|
|
11
13
|
api_key: string;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
@@ -38,7 +38,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ProviderCreate = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
const ProviderType_1 = require("../../../../types/ProviderType");
|
|
41
42
|
exports.ProviderCreate = core.serialization.object({
|
|
42
43
|
name: core.serialization.string(),
|
|
44
|
+
providerType: core.serialization.property("provider_type", ProviderType_1.ProviderType),
|
|
43
45
|
apiKey: core.serialization.property("api_key", core.serialization.string()),
|
|
44
46
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as list from "./list";
|
|
@@ -33,5 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
36
|
+
exports.list = void 0;
|
|
37
|
+
exports.list = __importStar(require("./list"));
|
|
@@ -5,7 +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 { Step } from "../../../types/Step";
|
|
8
|
-
export declare const Response: core.serialization.Schema<serializers.steps.
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.steps.list.Response.Raw, Letta.Step[]>;
|
|
9
9
|
export declare namespace Response {
|
|
10
10
|
type Raw = Step.Raw[];
|
|
11
11
|
}
|
|
@@ -12,6 +12,7 @@ export declare namespace LlmConfig {
|
|
|
12
12
|
model: string;
|
|
13
13
|
model_endpoint_type: LlmConfigModelEndpointType.Raw;
|
|
14
14
|
model_endpoint?: string | null;
|
|
15
|
+
provider_name?: string | null;
|
|
15
16
|
model_wrapper?: string | null;
|
|
16
17
|
context_window: number;
|
|
17
18
|
put_inner_thoughts_in_kwargs?: boolean | null;
|
|
@@ -44,6 +44,7 @@ exports.LlmConfig = core.serialization.object({
|
|
|
44
44
|
model: core.serialization.string(),
|
|
45
45
|
modelEndpointType: core.serialization.property("model_endpoint_type", LlmConfigModelEndpointType_1.LlmConfigModelEndpointType),
|
|
46
46
|
modelEndpoint: core.serialization.property("model_endpoint", core.serialization.string().optional()),
|
|
47
|
+
providerName: core.serialization.property("provider_name", core.serialization.string().optional()),
|
|
47
48
|
modelWrapper: core.serialization.property("model_wrapper", core.serialization.string().optional()),
|
|
48
49
|
contextWindow: core.serialization.property("context_window", core.serialization.number()),
|
|
49
50
|
putInnerThoughtsInKwargs: core.serialization.property("put_inner_thoughts_in_kwargs", core.serialization.boolean().optional()),
|
|
@@ -4,12 +4,15 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { ProviderType } from "./ProviderType";
|
|
7
8
|
export declare const Provider: core.serialization.ObjectSchema<serializers.Provider.Raw, Letta.Provider>;
|
|
8
9
|
export declare namespace Provider {
|
|
9
10
|
interface Raw {
|
|
10
11
|
id?: string | null;
|
|
11
12
|
name: string;
|
|
13
|
+
provider_type: ProviderType.Raw;
|
|
12
14
|
api_key?: string | null;
|
|
15
|
+
base_url?: string | null;
|
|
13
16
|
updated_at?: string | null;
|
|
14
17
|
}
|
|
15
18
|
}
|
|
@@ -38,9 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Provider = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
+
const ProviderType_1 = require("./ProviderType");
|
|
41
42
|
exports.Provider = core.serialization.object({
|
|
42
43
|
id: core.serialization.string().optional(),
|
|
43
44
|
name: core.serialization.string(),
|
|
45
|
+
providerType: core.serialization.property("provider_type", ProviderType_1.ProviderType),
|
|
44
46
|
apiKey: core.serialization.property("api_key", core.serialization.string().optional()),
|
|
47
|
+
baseUrl: core.serialization.property("base_url", core.serialization.string().optional()),
|
|
45
48
|
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
|
46
49
|
});
|
|
@@ -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 ProviderType: core.serialization.Schema<serializers.ProviderType.Raw, Letta.ProviderType>;
|
|
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" | "bedrock";
|
|
10
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.ProviderType = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ProviderType = core.serialization.enum_([
|
|
42
|
+
"anthropic",
|
|
43
|
+
"google_ai",
|
|
44
|
+
"google_vertex",
|
|
45
|
+
"openai",
|
|
46
|
+
"letta",
|
|
47
|
+
"deepseek",
|
|
48
|
+
"lmstudio_openai",
|
|
49
|
+
"xai",
|
|
50
|
+
"mistral",
|
|
51
|
+
"ollama",
|
|
52
|
+
"groq",
|
|
53
|
+
"together",
|
|
54
|
+
"azure",
|
|
55
|
+
"vllm",
|
|
56
|
+
"bedrock",
|
|
57
|
+
]);
|
|
@@ -149,6 +149,7 @@ export * from "./ParentToolRule";
|
|
|
149
149
|
export * from "./Passage";
|
|
150
150
|
export * from "./PipRequirement";
|
|
151
151
|
export * from "./Provider";
|
|
152
|
+
export * from "./ProviderType";
|
|
152
153
|
export * from "./ReasoningContent";
|
|
153
154
|
export * from "./ReasoningMessageSource";
|
|
154
155
|
export * from "./ReasoningMessage";
|
|
@@ -165,6 +165,7 @@ __exportStar(require("./ParentToolRule"), exports);
|
|
|
165
165
|
__exportStar(require("./Passage"), exports);
|
|
166
166
|
__exportStar(require("./PipRequirement"), exports);
|
|
167
167
|
__exportStar(require("./Provider"), exports);
|
|
168
|
+
__exportStar(require("./ProviderType"), exports);
|
|
168
169
|
__exportStar(require("./ReasoningContent"), exports);
|
|
169
170
|
__exportStar(require("./ReasoningMessageSource"), exports);
|
|
170
171
|
__exportStar(require("./ReasoningMessage"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.111";
|
package/version.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|