vellum-ai 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.js +1 -1
- package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +14 -1
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +11 -1
- package/api/types/BlockTypeEnum.d.ts +8 -1
- package/api/types/BlockTypeEnum.js +1 -0
- package/api/types/ChatMessageRole.d.ts +8 -1
- package/api/types/ChatMessageRole.js +1 -0
- package/api/types/ContentType.d.ts +12 -0
- package/api/types/ContentType.js +10 -0
- package/api/types/DeploymentRead.d.ts +20 -3
- package/api/types/DeploymentReadStatusEnum.d.ts +5 -0
- package/api/types/DocumentDocumentToDocumentIndex.d.ts +9 -1
- package/api/types/DocumentIndexRead.d.ts +14 -1
- package/api/types/DocumentIndexStatus.d.ts +4 -0
- package/api/types/EnrichedNormalizedCompletion.d.ts +8 -1
- package/api/types/EnvironmentEnum.d.ts +5 -0
- package/api/types/FinishReasonEnum.d.ts +5 -0
- package/api/types/GenerateOptionsRequest.d.ts +6 -1
- package/api/types/IndexingStateEnum.d.ts +7 -0
- package/api/types/LogprobsEnum.d.ts +4 -0
- package/api/types/ModelTypeEnum.d.ts +4 -0
- package/api/types/{ModelVersionExecConfigRead.d.ts → ModelVersionExecConfig.d.ts} +2 -2
- package/api/types/ModelVersionExecConfigParameters.d.ts +2 -2
- package/api/types/ModelVersionRead.d.ts +18 -3
- package/api/types/ModelVersionReadStatusEnum.d.ts +6 -0
- package/api/types/ProcessingStateEnum.d.ts +6 -0
- package/api/types/PromptTemplateBlockProperties.d.ts +5 -1
- package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +7 -1
- package/api/types/ProviderEnum.d.ts +11 -1
- package/api/types/ProviderEnum.js +1 -0
- package/api/types/ScenarioInput.d.ts +1 -1
- package/api/types/ScenarioInputRequest.d.ts +1 -1
- package/api/types/ScenarioInputTypeEnum.d.ts +12 -0
- package/{dist/api/types/TypeEnum.js → api/types/ScenarioInputTypeEnum.js} +2 -2
- package/api/types/SlimDocument.d.ts +18 -3
- package/api/types/index.d.ts +3 -2
- package/api/types/index.js +3 -2
- package/dist/Client.js +1 -1
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +14 -1
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +11 -1
- package/dist/api/types/BlockTypeEnum.d.ts +8 -1
- package/dist/api/types/BlockTypeEnum.js +1 -0
- package/dist/api/types/ChatMessageRole.d.ts +8 -1
- package/dist/api/types/ChatMessageRole.js +1 -0
- package/dist/api/types/ContentType.d.ts +12 -0
- package/dist/api/types/ContentType.js +10 -0
- package/dist/api/types/DeploymentRead.d.ts +20 -3
- package/dist/api/types/DeploymentReadStatusEnum.d.ts +5 -0
- package/dist/api/types/DocumentDocumentToDocumentIndex.d.ts +9 -1
- package/dist/api/types/DocumentIndexRead.d.ts +14 -1
- package/dist/api/types/DocumentIndexStatus.d.ts +4 -0
- package/dist/api/types/EnrichedNormalizedCompletion.d.ts +8 -1
- package/dist/api/types/EnvironmentEnum.d.ts +5 -0
- package/dist/api/types/FinishReasonEnum.d.ts +5 -0
- package/dist/api/types/GenerateOptionsRequest.d.ts +6 -1
- package/dist/api/types/IndexingStateEnum.d.ts +7 -0
- package/dist/api/types/LogprobsEnum.d.ts +4 -0
- package/dist/api/types/ModelTypeEnum.d.ts +4 -0
- package/dist/api/types/{ModelVersionExecConfigRead.d.ts → ModelVersionExecConfig.d.ts} +2 -2
- package/dist/api/types/ModelVersionExecConfigParameters.d.ts +2 -2
- package/dist/api/types/ModelVersionRead.d.ts +18 -3
- package/dist/api/types/ModelVersionReadStatusEnum.d.ts +6 -0
- package/dist/api/types/ProcessingStateEnum.d.ts +6 -0
- package/dist/api/types/PromptTemplateBlockProperties.d.ts +5 -1
- package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +7 -1
- package/dist/api/types/ProviderEnum.d.ts +11 -1
- package/dist/api/types/ProviderEnum.js +1 -0
- package/dist/api/types/ScenarioInput.d.ts +1 -1
- package/dist/api/types/ScenarioInputRequest.d.ts +1 -1
- package/dist/api/types/ScenarioInputTypeEnum.d.ts +12 -0
- package/{api/types/TypeEnum.js → dist/api/types/ScenarioInputTypeEnum.js} +2 -2
- package/dist/api/types/SlimDocument.d.ts +18 -3
- package/dist/api/types/index.d.ts +3 -2
- package/dist/api/types/index.js +3 -2
- package/dist/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +1 -0
- package/dist/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js +1 -0
- package/dist/serialization/types/BlockTypeEnum.d.ts +1 -1
- package/dist/serialization/types/BlockTypeEnum.js +1 -1
- package/dist/serialization/types/ChatMessageRole.d.ts +1 -1
- package/dist/serialization/types/ChatMessageRole.js +1 -1
- package/dist/serialization/types/ContentType.d.ts +10 -0
- package/dist/serialization/types/{TypeEnum.js → ContentType.js} +2 -5
- package/dist/serialization/types/DocumentIndexRead.d.ts +1 -0
- package/dist/serialization/types/DocumentIndexRead.js +1 -0
- package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -0
- package/dist/serialization/types/EnrichedNormalizedCompletion.js +1 -0
- package/{serialization/types/ModelVersionExecConfigRead.d.ts → dist/serialization/types/ModelVersionExecConfig.d.ts} +3 -3
- package/dist/serialization/types/{ModelVersionExecConfigRead.js → ModelVersionExecConfig.js} +3 -3
- package/dist/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
- package/dist/serialization/types/ModelVersionExecConfigParameters.js +2 -2
- package/dist/serialization/types/ModelVersionRead.d.ts +1 -1
- package/dist/serialization/types/ModelVersionRead.js +1 -1
- package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +5 -1
- package/dist/serialization/types/PromptTemplateBlockProperties.js +5 -1
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +5 -1
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +5 -1
- package/dist/serialization/types/ProviderEnum.d.ts +1 -1
- package/dist/serialization/types/ProviderEnum.js +1 -1
- package/dist/serialization/types/ScenarioInput.d.ts +1 -1
- package/dist/serialization/types/ScenarioInput.js +1 -1
- package/dist/serialization/types/ScenarioInputRequest.d.ts +1 -1
- package/dist/serialization/types/ScenarioInputRequest.js +1 -1
- package/dist/serialization/types/{TypeEnum.d.ts → ScenarioInputTypeEnum.d.ts} +2 -2
- package/dist/serialization/types/ScenarioInputTypeEnum.js +31 -0
- package/dist/serialization/types/index.d.ts +3 -2
- package/dist/serialization/types/index.js +3 -2
- package/package.json +1 -1
- package/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +1 -0
- package/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js +1 -0
- package/serialization/types/BlockTypeEnum.d.ts +1 -1
- package/serialization/types/BlockTypeEnum.js +1 -1
- package/serialization/types/ChatMessageRole.d.ts +1 -1
- package/serialization/types/ChatMessageRole.js +1 -1
- package/serialization/types/ContentType.d.ts +10 -0
- package/serialization/types/{TypeEnum.js → ContentType.js} +2 -5
- package/serialization/types/DocumentIndexRead.d.ts +1 -0
- package/serialization/types/DocumentIndexRead.js +1 -0
- package/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -0
- package/serialization/types/EnrichedNormalizedCompletion.js +1 -0
- package/{dist/serialization/types/ModelVersionExecConfigRead.d.ts → serialization/types/ModelVersionExecConfig.d.ts} +3 -3
- package/serialization/types/{ModelVersionExecConfigRead.js → ModelVersionExecConfig.js} +3 -3
- package/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
- package/serialization/types/ModelVersionExecConfigParameters.js +2 -2
- package/serialization/types/ModelVersionRead.d.ts +1 -1
- package/serialization/types/ModelVersionRead.js +1 -1
- package/serialization/types/PromptTemplateBlockProperties.d.ts +5 -1
- package/serialization/types/PromptTemplateBlockProperties.js +5 -1
- package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +5 -1
- package/serialization/types/PromptTemplateBlockPropertiesRequest.js +5 -1
- package/serialization/types/ProviderEnum.d.ts +1 -1
- package/serialization/types/ProviderEnum.js +1 -1
- package/serialization/types/ScenarioInput.d.ts +1 -1
- package/serialization/types/ScenarioInput.js +1 -1
- package/serialization/types/ScenarioInputRequest.d.ts +1 -1
- package/serialization/types/ScenarioInputRequest.js +1 -1
- package/serialization/types/{TypeEnum.d.ts → ScenarioInputTypeEnum.d.ts} +2 -2
- package/serialization/types/ScenarioInputTypeEnum.js +31 -0
- package/serialization/types/index.d.ts +3 -2
- package/serialization/types/index.js +3 -2
- package/api/types/TypeEnum.d.ts +0 -8
- package/dist/api/types/TypeEnum.d.ts +0 -8
- /package/api/types/{ModelVersionExecConfigRead.js → ModelVersionExecConfig.js} +0 -0
- /package/dist/api/types/{ModelVersionExecConfigRead.js → ModelVersionExecConfig.js} +0 -0
|
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ChatMessageRole: core.serialization.Schema<serializers.ChatMessageRole.Raw, Vellum.ChatMessageRole>;
|
|
8
8
|
export declare namespace ChatMessageRole {
|
|
9
|
-
type Raw = "SYSTEM" | "ASSISTANT" | "USER";
|
|
9
|
+
type Raw = "SYSTEM" | "ASSISTANT" | "USER" | "FUNCTION";
|
|
10
10
|
}
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ChatMessageRole = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.ChatMessageRole = core.serialization.enum_(["SYSTEM", "ASSISTANT", "USER"]);
|
|
31
|
+
exports.ChatMessageRole = core.serialization.enum_(["SYSTEM", "ASSISTANT", "USER", "FUNCTION"]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ContentType: core.serialization.Schema<serializers.ContentType.Raw, Vellum.ContentType>;
|
|
8
|
+
export declare namespace ContentType {
|
|
9
|
+
type Raw = "STRING" | "JSON";
|
|
10
|
+
}
|
|
@@ -26,9 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ContentType = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
32
|
-
"TEXT",
|
|
33
|
-
"CHAT_HISTORY",
|
|
34
|
-
]);
|
|
31
|
+
exports.ContentType = core.serialization.enum_(["STRING", "JSON"]);
|
|
@@ -34,5 +34,6 @@ exports.DocumentIndexRead = core.serialization.object({
|
|
|
34
34
|
label: core.serialization.string(),
|
|
35
35
|
name: core.serialization.string(),
|
|
36
36
|
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).DocumentIndexStatus).optional(),
|
|
37
|
+
environment: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).EnvironmentEnum).optional(),
|
|
37
38
|
indexingConfig: core.serialization.property("indexing_config", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
|
|
38
39
|
});
|
|
@@ -35,4 +35,5 @@ exports.EnrichedNormalizedCompletion = core.serialization.object({
|
|
|
35
35
|
finishReason: core.serialization.property("finish_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).FinishReasonEnum).optional()),
|
|
36
36
|
logprobs: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NormalizedLogProbs).optional(),
|
|
37
37
|
modelVersionId: core.serialization.property("model_version_id", core.serialization.string()),
|
|
38
|
+
type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ContentType).optional(),
|
|
38
39
|
});
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
import * as serializers from "..";
|
|
5
5
|
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const ModelVersionExecConfig: core.serialization.ObjectSchema<serializers.ModelVersionExecConfig.Raw, Vellum.ModelVersionExecConfig>;
|
|
8
|
+
export declare namespace ModelVersionExecConfig {
|
|
9
9
|
interface Raw {
|
|
10
10
|
parameters: serializers.ModelVersionExecConfigParameters.Raw;
|
|
11
11
|
input_variables: serializers.PromptTemplateInputVariable.Raw[];
|
|
12
12
|
prompt_template?: string | null;
|
|
13
13
|
prompt_block_data?: serializers.PromptTemplateBlockData.Raw | null;
|
|
14
|
-
prompt_syntax_version
|
|
14
|
+
prompt_syntax_version?: number | null;
|
|
15
15
|
}
|
|
16
16
|
}
|
package/dist/serialization/types/{ModelVersionExecConfigRead.js → ModelVersionExecConfig.js}
RENAMED
|
@@ -26,12 +26,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ModelVersionExecConfig = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.ModelVersionExecConfig = core.serialization.object({
|
|
32
32
|
parameters: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionExecConfigParameters),
|
|
33
33
|
inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateInputVariable))),
|
|
34
34
|
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
35
35
|
promptBlockData: core.serialization.property("prompt_block_data", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockData).optional()),
|
|
36
|
-
promptSyntaxVersion: core.serialization.property("prompt_syntax_version", core.serialization.number()),
|
|
36
|
+
promptSyntaxVersion: core.serialization.property("prompt_syntax_version", core.serialization.number().optional()),
|
|
37
37
|
});
|
|
@@ -9,11 +9,11 @@ export declare namespace ModelVersionExecConfigParameters {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
temperature: number;
|
|
11
11
|
max_tokens: number;
|
|
12
|
-
stop?: string[] | null;
|
|
13
12
|
top_p: number;
|
|
14
|
-
top_k?: number | null;
|
|
15
13
|
frequency_penalty: number;
|
|
16
14
|
presence_penalty: number;
|
|
17
15
|
logit_bias?: Record<string, number | null | undefined> | null;
|
|
16
|
+
stop?: string[] | null;
|
|
17
|
+
top_k?: number | null;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -31,10 +31,10 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.ModelVersionExecConfigParameters = core.serialization.object({
|
|
32
32
|
temperature: core.serialization.number(),
|
|
33
33
|
maxTokens: core.serialization.property("max_tokens", core.serialization.number()),
|
|
34
|
-
stop: core.serialization.list(core.serialization.string()).optional(),
|
|
35
34
|
topP: core.serialization.property("top_p", core.serialization.number()),
|
|
36
|
-
topK: core.serialization.property("top_k", core.serialization.number().optional()),
|
|
37
35
|
frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number()),
|
|
38
36
|
presencePenalty: core.serialization.property("presence_penalty", core.serialization.number()),
|
|
39
37
|
logitBias: core.serialization.property("logit_bias", core.serialization.record(core.serialization.string(), core.serialization.number().optional()).optional()),
|
|
38
|
+
stop: core.serialization.list(core.serialization.string()).optional(),
|
|
39
|
+
topK: core.serialization.property("top_k", core.serialization.number().optional()),
|
|
40
40
|
});
|
|
@@ -14,7 +14,7 @@ export declare namespace ModelVersionRead {
|
|
|
14
14
|
provider: serializers.ProviderEnum.Raw;
|
|
15
15
|
external_id: string;
|
|
16
16
|
build_config: serializers.ModelVersionBuildConfig.Raw;
|
|
17
|
-
exec_config: serializers.
|
|
17
|
+
exec_config: serializers.ModelVersionExecConfig.Raw;
|
|
18
18
|
status?: serializers.ModelVersionReadStatusEnum.Raw | null;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -36,6 +36,6 @@ exports.ModelVersionRead = core.serialization.object({
|
|
|
36
36
|
provider: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ProviderEnum),
|
|
37
37
|
externalId: core.serialization.property("external_id", core.serialization.string()),
|
|
38
38
|
buildConfig: core.serialization.property("build_config", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionBuildConfig)),
|
|
39
|
-
execConfig: core.serialization.property("exec_config", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).
|
|
39
|
+
execConfig: core.serialization.property("exec_config", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionExecConfig)),
|
|
40
40
|
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionReadStatusEnum).optional(),
|
|
41
41
|
});
|
|
@@ -10,6 +10,10 @@ export declare namespace PromptTemplateBlockProperties {
|
|
|
10
10
|
chat_role?: serializers.ChatMessageRole.Raw | null;
|
|
11
11
|
chat_message_unterminated?: boolean | null;
|
|
12
12
|
template?: string | null;
|
|
13
|
-
|
|
13
|
+
template_type?: serializers.ContentType.Raw | null;
|
|
14
|
+
function_name?: string | null;
|
|
15
|
+
function_description?: string | null;
|
|
16
|
+
function_parameters?: Record<string, unknown> | null;
|
|
17
|
+
blocks?: serializers.PromptTemplateBlock.Raw[] | null;
|
|
14
18
|
}
|
|
15
19
|
}
|
|
@@ -32,7 +32,11 @@ exports.PromptTemplateBlockProperties = core.serialization.object({
|
|
|
32
32
|
chatRole: core.serialization.property("chat_role", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRole).optional()),
|
|
33
33
|
chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
|
|
34
34
|
template: core.serialization.string().optional(),
|
|
35
|
+
templateType: core.serialization.property("template_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ContentType).optional()),
|
|
36
|
+
functionName: core.serialization.property("function_name", core.serialization.string().optional()),
|
|
37
|
+
functionDescription: core.serialization.property("function_description", core.serialization.string().optional()),
|
|
38
|
+
functionParameters: core.serialization.property("function_parameters", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
35
39
|
blocks: core.serialization
|
|
36
|
-
.list(core.serialization.
|
|
40
|
+
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlock))
|
|
37
41
|
.optional(),
|
|
38
42
|
});
|
|
@@ -10,6 +10,10 @@ export declare namespace PromptTemplateBlockPropertiesRequest {
|
|
|
10
10
|
chat_role?: serializers.ChatMessageRole.Raw | null;
|
|
11
11
|
chat_message_unterminated?: boolean | null;
|
|
12
12
|
template?: string | null;
|
|
13
|
-
|
|
13
|
+
template_type?: serializers.ContentType.Raw | null;
|
|
14
|
+
function_name?: string | null;
|
|
15
|
+
function_description?: string | null;
|
|
16
|
+
function_parameters?: Record<string, unknown> | null;
|
|
17
|
+
blocks?: serializers.PromptTemplateBlockRequest.Raw[] | null;
|
|
14
18
|
}
|
|
15
19
|
}
|
|
@@ -32,7 +32,11 @@ exports.PromptTemplateBlockPropertiesRequest = core.serialization.object({
|
|
|
32
32
|
chatRole: core.serialization.property("chat_role", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRole).optional()),
|
|
33
33
|
chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
|
|
34
34
|
template: core.serialization.string().optional(),
|
|
35
|
+
templateType: core.serialization.property("template_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ContentType).optional()),
|
|
36
|
+
functionName: core.serialization.property("function_name", core.serialization.string().optional()),
|
|
37
|
+
functionDescription: core.serialization.property("function_description", core.serialization.string().optional()),
|
|
38
|
+
functionParameters: core.serialization.property("function_parameters", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
35
39
|
blocks: core.serialization
|
|
36
|
-
.list(core.serialization.
|
|
40
|
+
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockRequest))
|
|
37
41
|
.optional(),
|
|
38
42
|
});
|
|
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ProviderEnum: core.serialization.Schema<serializers.ProviderEnum.Raw, Vellum.ProviderEnum>;
|
|
8
8
|
export declare namespace ProviderEnum {
|
|
9
|
-
type Raw = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "OPENAI" | "PYQ";
|
|
9
|
+
type Raw = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "OPENAI" | "PYQ";
|
|
10
10
|
}
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ProviderEnum = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.ProviderEnum = core.serialization.enum_(["ANTHROPIC", "COHERE", "GOOGLE", "HOSTED", "OPENAI", "PYQ"]);
|
|
31
|
+
exports.ProviderEnum = core.serialization.enum_(["ANTHROPIC", "COHERE", "GOOGLE", "HOSTED", "MOSAICML", "OPENAI", "PYQ"]);
|
|
@@ -8,7 +8,7 @@ export declare const ScenarioInput: core.serialization.ObjectSchema<serializers.
|
|
|
8
8
|
export declare namespace ScenarioInput {
|
|
9
9
|
interface Raw {
|
|
10
10
|
key: string;
|
|
11
|
-
type?: serializers.
|
|
11
|
+
type?: serializers.ScenarioInputTypeEnum.Raw | null;
|
|
12
12
|
value?: string | null;
|
|
13
13
|
chat_history?: serializers.ChatMessage.Raw[] | null;
|
|
14
14
|
}
|
|
@@ -30,7 +30,7 @@ exports.ScenarioInput = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.ScenarioInput = core.serialization.object({
|
|
32
32
|
key: core.serialization.string(),
|
|
33
|
-
type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).
|
|
33
|
+
type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ScenarioInputTypeEnum).optional(),
|
|
34
34
|
value: core.serialization.string().optional(),
|
|
35
35
|
chatHistory: core.serialization.property("chat_history", core.serialization
|
|
36
36
|
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessage))
|
|
@@ -8,7 +8,7 @@ export declare const ScenarioInputRequest: core.serialization.ObjectSchema<seria
|
|
|
8
8
|
export declare namespace ScenarioInputRequest {
|
|
9
9
|
interface Raw {
|
|
10
10
|
key: string;
|
|
11
|
-
type?: serializers.
|
|
11
|
+
type?: serializers.ScenarioInputTypeEnum.Raw | null;
|
|
12
12
|
value?: string | null;
|
|
13
13
|
chat_history?: serializers.ChatMessageRequest.Raw[] | null;
|
|
14
14
|
}
|
|
@@ -30,7 +30,7 @@ exports.ScenarioInputRequest = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.ScenarioInputRequest = core.serialization.object({
|
|
32
32
|
key: core.serialization.string(),
|
|
33
|
-
type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).
|
|
33
|
+
type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ScenarioInputTypeEnum).optional(),
|
|
34
34
|
value: core.serialization.string().optional(),
|
|
35
35
|
chatHistory: core.serialization.property("chat_history", core.serialization
|
|
36
36
|
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRequest))
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as serializers from "..";
|
|
5
5
|
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const ScenarioInputTypeEnum: core.serialization.Schema<serializers.ScenarioInputTypeEnum.Raw, Vellum.ScenarioInputTypeEnum>;
|
|
8
|
+
export declare namespace ScenarioInputTypeEnum {
|
|
9
9
|
type Raw = "TEXT" | "CHAT_HISTORY";
|
|
10
10
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ScenarioInputTypeEnum = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ScenarioInputTypeEnum = core.serialization.enum_(["TEXT", "CHAT_HISTORY"]);
|
|
@@ -2,6 +2,7 @@ export * from "./BlockTypeEnum";
|
|
|
2
2
|
export * from "./ChatMessage";
|
|
3
3
|
export * from "./ChatMessageRequest";
|
|
4
4
|
export * from "./ChatMessageRole";
|
|
5
|
+
export * from "./ContentType";
|
|
5
6
|
export * from "./DeploymentRead";
|
|
6
7
|
export * from "./DeploymentReadStatusEnum";
|
|
7
8
|
export * from "./Document";
|
|
@@ -29,8 +30,8 @@ export * from "./ModelTypeEnum";
|
|
|
29
30
|
export * from "./ModelVersionBuildConfig";
|
|
30
31
|
export * from "./ModelVersionCompilePromptResponse";
|
|
31
32
|
export * from "./ModelVersionCompiledPrompt";
|
|
33
|
+
export * from "./ModelVersionExecConfig";
|
|
32
34
|
export * from "./ModelVersionExecConfigParameters";
|
|
33
|
-
export * from "./ModelVersionExecConfigRead";
|
|
34
35
|
export * from "./ModelVersionRead";
|
|
35
36
|
export * from "./ModelVersionReadStatusEnum";
|
|
36
37
|
export * from "./ModelVersionSandboxSnapshot";
|
|
@@ -62,6 +63,7 @@ export * from "./SandboxMetricInputParamsRequest";
|
|
|
62
63
|
export * from "./SandboxScenario";
|
|
63
64
|
export * from "./ScenarioInput";
|
|
64
65
|
export * from "./ScenarioInputRequest";
|
|
66
|
+
export * from "./ScenarioInputTypeEnum";
|
|
65
67
|
export * from "./SearchErrorResponse";
|
|
66
68
|
export * from "./SearchFiltersRequest";
|
|
67
69
|
export * from "./SearchRequestOptionsRequest";
|
|
@@ -74,6 +76,5 @@ export * from "./SlimDocumentStatusEnum";
|
|
|
74
76
|
export * from "./SubmitCompletionActualRequest";
|
|
75
77
|
export * from "./SubmitCompletionActualsErrorResponse";
|
|
76
78
|
export * from "./TestSuiteTestCase";
|
|
77
|
-
export * from "./TypeEnum";
|
|
78
79
|
export * from "./UploadDocumentErrorResponse";
|
|
79
80
|
export * from "./UploadDocumentResponse";
|
|
@@ -18,6 +18,7 @@ __exportStar(require("./BlockTypeEnum"), exports);
|
|
|
18
18
|
__exportStar(require("./ChatMessage"), exports);
|
|
19
19
|
__exportStar(require("./ChatMessageRequest"), exports);
|
|
20
20
|
__exportStar(require("./ChatMessageRole"), exports);
|
|
21
|
+
__exportStar(require("./ContentType"), exports);
|
|
21
22
|
__exportStar(require("./DeploymentRead"), exports);
|
|
22
23
|
__exportStar(require("./DeploymentReadStatusEnum"), exports);
|
|
23
24
|
__exportStar(require("./Document"), exports);
|
|
@@ -45,8 +46,8 @@ __exportStar(require("./ModelTypeEnum"), exports);
|
|
|
45
46
|
__exportStar(require("./ModelVersionBuildConfig"), exports);
|
|
46
47
|
__exportStar(require("./ModelVersionCompilePromptResponse"), exports);
|
|
47
48
|
__exportStar(require("./ModelVersionCompiledPrompt"), exports);
|
|
49
|
+
__exportStar(require("./ModelVersionExecConfig"), exports);
|
|
48
50
|
__exportStar(require("./ModelVersionExecConfigParameters"), exports);
|
|
49
|
-
__exportStar(require("./ModelVersionExecConfigRead"), exports);
|
|
50
51
|
__exportStar(require("./ModelVersionRead"), exports);
|
|
51
52
|
__exportStar(require("./ModelVersionReadStatusEnum"), exports);
|
|
52
53
|
__exportStar(require("./ModelVersionSandboxSnapshot"), exports);
|
|
@@ -78,6 +79,7 @@ __exportStar(require("./SandboxMetricInputParamsRequest"), exports);
|
|
|
78
79
|
__exportStar(require("./SandboxScenario"), exports);
|
|
79
80
|
__exportStar(require("./ScenarioInput"), exports);
|
|
80
81
|
__exportStar(require("./ScenarioInputRequest"), exports);
|
|
82
|
+
__exportStar(require("./ScenarioInputTypeEnum"), exports);
|
|
81
83
|
__exportStar(require("./SearchErrorResponse"), exports);
|
|
82
84
|
__exportStar(require("./SearchFiltersRequest"), exports);
|
|
83
85
|
__exportStar(require("./SearchRequestOptionsRequest"), exports);
|
|
@@ -90,6 +92,5 @@ __exportStar(require("./SlimDocumentStatusEnum"), exports);
|
|
|
90
92
|
__exportStar(require("./SubmitCompletionActualRequest"), exports);
|
|
91
93
|
__exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
|
|
92
94
|
__exportStar(require("./TestSuiteTestCase"), exports);
|
|
93
|
-
__exportStar(require("./TypeEnum"), exports);
|
|
94
95
|
__exportStar(require("./UploadDocumentErrorResponse"), exports);
|
|
95
96
|
__exportStar(require("./UploadDocumentResponse"), exports);
|
package/package.json
CHANGED
package/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare namespace DocumentIndexCreateRequest {
|
|
|
10
10
|
label: string;
|
|
11
11
|
name: string;
|
|
12
12
|
status?: serializers.DocumentIndexStatus.Raw | null;
|
|
13
|
+
environment?: serializers.EnvironmentEnum.Raw | null;
|
|
13
14
|
indexing_config: Record<string, unknown>;
|
|
14
15
|
copy_documents_from_index_id?: string | null;
|
|
15
16
|
}
|
package/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js
CHANGED
|
@@ -32,6 +32,7 @@ exports.DocumentIndexCreateRequest = core.serialization.object({
|
|
|
32
32
|
label: core.serialization.string(),
|
|
33
33
|
name: core.serialization.string(),
|
|
34
34
|
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).DocumentIndexStatus).optional(),
|
|
35
|
+
environment: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).EnvironmentEnum).optional(),
|
|
35
36
|
indexingConfig: core.serialization.property("indexing_config", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
|
|
36
37
|
copyDocumentsFromIndexId: core.serialization.property("copy_documents_from_index_id", core.serialization.string().optional()),
|
|
37
38
|
});
|
|
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const BlockTypeEnum: core.serialization.Schema<serializers.BlockTypeEnum.Raw, Vellum.BlockTypeEnum>;
|
|
8
8
|
export declare namespace BlockTypeEnum {
|
|
9
|
-
type Raw = "CHAT_MESSAGE" | "CHAT_HISTORY" | "JINJA";
|
|
9
|
+
type Raw = "CHAT_MESSAGE" | "CHAT_HISTORY" | "JINJA" | "FUNCTION_DEFINITION";
|
|
10
10
|
}
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.BlockTypeEnum = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.BlockTypeEnum = core.serialization.enum_(["CHAT_MESSAGE", "CHAT_HISTORY", "JINJA"]);
|
|
31
|
+
exports.BlockTypeEnum = core.serialization.enum_(["CHAT_MESSAGE", "CHAT_HISTORY", "JINJA", "FUNCTION_DEFINITION"]);
|
|
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ChatMessageRole: core.serialization.Schema<serializers.ChatMessageRole.Raw, Vellum.ChatMessageRole>;
|
|
8
8
|
export declare namespace ChatMessageRole {
|
|
9
|
-
type Raw = "SYSTEM" | "ASSISTANT" | "USER";
|
|
9
|
+
type Raw = "SYSTEM" | "ASSISTANT" | "USER" | "FUNCTION";
|
|
10
10
|
}
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ChatMessageRole = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.ChatMessageRole = core.serialization.enum_(["SYSTEM", "ASSISTANT", "USER"]);
|
|
31
|
+
exports.ChatMessageRole = core.serialization.enum_(["SYSTEM", "ASSISTANT", "USER", "FUNCTION"]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ContentType: core.serialization.Schema<serializers.ContentType.Raw, Vellum.ContentType>;
|
|
8
|
+
export declare namespace ContentType {
|
|
9
|
+
type Raw = "STRING" | "JSON";
|
|
10
|
+
}
|
|
@@ -26,9 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ContentType = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
32
|
-
"TEXT",
|
|
33
|
-
"CHAT_HISTORY",
|
|
34
|
-
]);
|
|
31
|
+
exports.ContentType = core.serialization.enum_(["STRING", "JSON"]);
|
|
@@ -34,5 +34,6 @@ exports.DocumentIndexRead = core.serialization.object({
|
|
|
34
34
|
label: core.serialization.string(),
|
|
35
35
|
name: core.serialization.string(),
|
|
36
36
|
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).DocumentIndexStatus).optional(),
|
|
37
|
+
environment: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).EnvironmentEnum).optional(),
|
|
37
38
|
indexingConfig: core.serialization.property("indexing_config", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
|
|
38
39
|
});
|
|
@@ -35,4 +35,5 @@ exports.EnrichedNormalizedCompletion = core.serialization.object({
|
|
|
35
35
|
finishReason: core.serialization.property("finish_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).FinishReasonEnum).optional()),
|
|
36
36
|
logprobs: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NormalizedLogProbs).optional(),
|
|
37
37
|
modelVersionId: core.serialization.property("model_version_id", core.serialization.string()),
|
|
38
|
+
type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ContentType).optional(),
|
|
38
39
|
});
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
import * as serializers from "..";
|
|
5
5
|
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const ModelVersionExecConfig: core.serialization.ObjectSchema<serializers.ModelVersionExecConfig.Raw, Vellum.ModelVersionExecConfig>;
|
|
8
|
+
export declare namespace ModelVersionExecConfig {
|
|
9
9
|
interface Raw {
|
|
10
10
|
parameters: serializers.ModelVersionExecConfigParameters.Raw;
|
|
11
11
|
input_variables: serializers.PromptTemplateInputVariable.Raw[];
|
|
12
12
|
prompt_template?: string | null;
|
|
13
13
|
prompt_block_data?: serializers.PromptTemplateBlockData.Raw | null;
|
|
14
|
-
prompt_syntax_version
|
|
14
|
+
prompt_syntax_version?: number | null;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -26,12 +26,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ModelVersionExecConfig = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.ModelVersionExecConfig = core.serialization.object({
|
|
32
32
|
parameters: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionExecConfigParameters),
|
|
33
33
|
inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateInputVariable))),
|
|
34
34
|
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
35
35
|
promptBlockData: core.serialization.property("prompt_block_data", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockData).optional()),
|
|
36
|
-
promptSyntaxVersion: core.serialization.property("prompt_syntax_version", core.serialization.number()),
|
|
36
|
+
promptSyntaxVersion: core.serialization.property("prompt_syntax_version", core.serialization.number().optional()),
|
|
37
37
|
});
|
|
@@ -9,11 +9,11 @@ export declare namespace ModelVersionExecConfigParameters {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
temperature: number;
|
|
11
11
|
max_tokens: number;
|
|
12
|
-
stop?: string[] | null;
|
|
13
12
|
top_p: number;
|
|
14
|
-
top_k?: number | null;
|
|
15
13
|
frequency_penalty: number;
|
|
16
14
|
presence_penalty: number;
|
|
17
15
|
logit_bias?: Record<string, number | null | undefined> | null;
|
|
16
|
+
stop?: string[] | null;
|
|
17
|
+
top_k?: number | null;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -31,10 +31,10 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.ModelVersionExecConfigParameters = core.serialization.object({
|
|
32
32
|
temperature: core.serialization.number(),
|
|
33
33
|
maxTokens: core.serialization.property("max_tokens", core.serialization.number()),
|
|
34
|
-
stop: core.serialization.list(core.serialization.string()).optional(),
|
|
35
34
|
topP: core.serialization.property("top_p", core.serialization.number()),
|
|
36
|
-
topK: core.serialization.property("top_k", core.serialization.number().optional()),
|
|
37
35
|
frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number()),
|
|
38
36
|
presencePenalty: core.serialization.property("presence_penalty", core.serialization.number()),
|
|
39
37
|
logitBias: core.serialization.property("logit_bias", core.serialization.record(core.serialization.string(), core.serialization.number().optional()).optional()),
|
|
38
|
+
stop: core.serialization.list(core.serialization.string()).optional(),
|
|
39
|
+
topK: core.serialization.property("top_k", core.serialization.number().optional()),
|
|
40
40
|
});
|
|
@@ -14,7 +14,7 @@ export declare namespace ModelVersionRead {
|
|
|
14
14
|
provider: serializers.ProviderEnum.Raw;
|
|
15
15
|
external_id: string;
|
|
16
16
|
build_config: serializers.ModelVersionBuildConfig.Raw;
|
|
17
|
-
exec_config: serializers.
|
|
17
|
+
exec_config: serializers.ModelVersionExecConfig.Raw;
|
|
18
18
|
status?: serializers.ModelVersionReadStatusEnum.Raw | null;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -36,6 +36,6 @@ exports.ModelVersionRead = core.serialization.object({
|
|
|
36
36
|
provider: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ProviderEnum),
|
|
37
37
|
externalId: core.serialization.property("external_id", core.serialization.string()),
|
|
38
38
|
buildConfig: core.serialization.property("build_config", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionBuildConfig)),
|
|
39
|
-
execConfig: core.serialization.property("exec_config", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).
|
|
39
|
+
execConfig: core.serialization.property("exec_config", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionExecConfig)),
|
|
40
40
|
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionReadStatusEnum).optional(),
|
|
41
41
|
});
|
|
@@ -10,6 +10,10 @@ export declare namespace PromptTemplateBlockProperties {
|
|
|
10
10
|
chat_role?: serializers.ChatMessageRole.Raw | null;
|
|
11
11
|
chat_message_unterminated?: boolean | null;
|
|
12
12
|
template?: string | null;
|
|
13
|
-
|
|
13
|
+
template_type?: serializers.ContentType.Raw | null;
|
|
14
|
+
function_name?: string | null;
|
|
15
|
+
function_description?: string | null;
|
|
16
|
+
function_parameters?: Record<string, unknown> | null;
|
|
17
|
+
blocks?: serializers.PromptTemplateBlock.Raw[] | null;
|
|
14
18
|
}
|
|
15
19
|
}
|