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.
Files changed (143) hide show
  1. package/Client.js +1 -1
  2. package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +14 -1
  3. package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +11 -1
  4. package/api/types/BlockTypeEnum.d.ts +8 -1
  5. package/api/types/BlockTypeEnum.js +1 -0
  6. package/api/types/ChatMessageRole.d.ts +8 -1
  7. package/api/types/ChatMessageRole.js +1 -0
  8. package/api/types/ContentType.d.ts +12 -0
  9. package/api/types/ContentType.js +10 -0
  10. package/api/types/DeploymentRead.d.ts +20 -3
  11. package/api/types/DeploymentReadStatusEnum.d.ts +5 -0
  12. package/api/types/DocumentDocumentToDocumentIndex.d.ts +9 -1
  13. package/api/types/DocumentIndexRead.d.ts +14 -1
  14. package/api/types/DocumentIndexStatus.d.ts +4 -0
  15. package/api/types/EnrichedNormalizedCompletion.d.ts +8 -1
  16. package/api/types/EnvironmentEnum.d.ts +5 -0
  17. package/api/types/FinishReasonEnum.d.ts +5 -0
  18. package/api/types/GenerateOptionsRequest.d.ts +6 -1
  19. package/api/types/IndexingStateEnum.d.ts +7 -0
  20. package/api/types/LogprobsEnum.d.ts +4 -0
  21. package/api/types/ModelTypeEnum.d.ts +4 -0
  22. package/api/types/{ModelVersionExecConfigRead.d.ts → ModelVersionExecConfig.d.ts} +2 -2
  23. package/api/types/ModelVersionExecConfigParameters.d.ts +2 -2
  24. package/api/types/ModelVersionRead.d.ts +18 -3
  25. package/api/types/ModelVersionReadStatusEnum.d.ts +6 -0
  26. package/api/types/ProcessingStateEnum.d.ts +6 -0
  27. package/api/types/PromptTemplateBlockProperties.d.ts +5 -1
  28. package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +7 -1
  29. package/api/types/ProviderEnum.d.ts +11 -1
  30. package/api/types/ProviderEnum.js +1 -0
  31. package/api/types/ScenarioInput.d.ts +1 -1
  32. package/api/types/ScenarioInputRequest.d.ts +1 -1
  33. package/api/types/ScenarioInputTypeEnum.d.ts +12 -0
  34. package/{dist/api/types/TypeEnum.js → api/types/ScenarioInputTypeEnum.js} +2 -2
  35. package/api/types/SlimDocument.d.ts +18 -3
  36. package/api/types/index.d.ts +3 -2
  37. package/api/types/index.js +3 -2
  38. package/dist/Client.js +1 -1
  39. package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +14 -1
  40. package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +11 -1
  41. package/dist/api/types/BlockTypeEnum.d.ts +8 -1
  42. package/dist/api/types/BlockTypeEnum.js +1 -0
  43. package/dist/api/types/ChatMessageRole.d.ts +8 -1
  44. package/dist/api/types/ChatMessageRole.js +1 -0
  45. package/dist/api/types/ContentType.d.ts +12 -0
  46. package/dist/api/types/ContentType.js +10 -0
  47. package/dist/api/types/DeploymentRead.d.ts +20 -3
  48. package/dist/api/types/DeploymentReadStatusEnum.d.ts +5 -0
  49. package/dist/api/types/DocumentDocumentToDocumentIndex.d.ts +9 -1
  50. package/dist/api/types/DocumentIndexRead.d.ts +14 -1
  51. package/dist/api/types/DocumentIndexStatus.d.ts +4 -0
  52. package/dist/api/types/EnrichedNormalizedCompletion.d.ts +8 -1
  53. package/dist/api/types/EnvironmentEnum.d.ts +5 -0
  54. package/dist/api/types/FinishReasonEnum.d.ts +5 -0
  55. package/dist/api/types/GenerateOptionsRequest.d.ts +6 -1
  56. package/dist/api/types/IndexingStateEnum.d.ts +7 -0
  57. package/dist/api/types/LogprobsEnum.d.ts +4 -0
  58. package/dist/api/types/ModelTypeEnum.d.ts +4 -0
  59. package/dist/api/types/{ModelVersionExecConfigRead.d.ts → ModelVersionExecConfig.d.ts} +2 -2
  60. package/dist/api/types/ModelVersionExecConfigParameters.d.ts +2 -2
  61. package/dist/api/types/ModelVersionRead.d.ts +18 -3
  62. package/dist/api/types/ModelVersionReadStatusEnum.d.ts +6 -0
  63. package/dist/api/types/ProcessingStateEnum.d.ts +6 -0
  64. package/dist/api/types/PromptTemplateBlockProperties.d.ts +5 -1
  65. package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +7 -1
  66. package/dist/api/types/ProviderEnum.d.ts +11 -1
  67. package/dist/api/types/ProviderEnum.js +1 -0
  68. package/dist/api/types/ScenarioInput.d.ts +1 -1
  69. package/dist/api/types/ScenarioInputRequest.d.ts +1 -1
  70. package/dist/api/types/ScenarioInputTypeEnum.d.ts +12 -0
  71. package/{api/types/TypeEnum.js → dist/api/types/ScenarioInputTypeEnum.js} +2 -2
  72. package/dist/api/types/SlimDocument.d.ts +18 -3
  73. package/dist/api/types/index.d.ts +3 -2
  74. package/dist/api/types/index.js +3 -2
  75. package/dist/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +1 -0
  76. package/dist/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js +1 -0
  77. package/dist/serialization/types/BlockTypeEnum.d.ts +1 -1
  78. package/dist/serialization/types/BlockTypeEnum.js +1 -1
  79. package/dist/serialization/types/ChatMessageRole.d.ts +1 -1
  80. package/dist/serialization/types/ChatMessageRole.js +1 -1
  81. package/dist/serialization/types/ContentType.d.ts +10 -0
  82. package/dist/serialization/types/{TypeEnum.js → ContentType.js} +2 -5
  83. package/dist/serialization/types/DocumentIndexRead.d.ts +1 -0
  84. package/dist/serialization/types/DocumentIndexRead.js +1 -0
  85. package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -0
  86. package/dist/serialization/types/EnrichedNormalizedCompletion.js +1 -0
  87. package/{serialization/types/ModelVersionExecConfigRead.d.ts → dist/serialization/types/ModelVersionExecConfig.d.ts} +3 -3
  88. package/dist/serialization/types/{ModelVersionExecConfigRead.js → ModelVersionExecConfig.js} +3 -3
  89. package/dist/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
  90. package/dist/serialization/types/ModelVersionExecConfigParameters.js +2 -2
  91. package/dist/serialization/types/ModelVersionRead.d.ts +1 -1
  92. package/dist/serialization/types/ModelVersionRead.js +1 -1
  93. package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +5 -1
  94. package/dist/serialization/types/PromptTemplateBlockProperties.js +5 -1
  95. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +5 -1
  96. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +5 -1
  97. package/dist/serialization/types/ProviderEnum.d.ts +1 -1
  98. package/dist/serialization/types/ProviderEnum.js +1 -1
  99. package/dist/serialization/types/ScenarioInput.d.ts +1 -1
  100. package/dist/serialization/types/ScenarioInput.js +1 -1
  101. package/dist/serialization/types/ScenarioInputRequest.d.ts +1 -1
  102. package/dist/serialization/types/ScenarioInputRequest.js +1 -1
  103. package/dist/serialization/types/{TypeEnum.d.ts → ScenarioInputTypeEnum.d.ts} +2 -2
  104. package/dist/serialization/types/ScenarioInputTypeEnum.js +31 -0
  105. package/dist/serialization/types/index.d.ts +3 -2
  106. package/dist/serialization/types/index.js +3 -2
  107. package/package.json +1 -1
  108. package/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +1 -0
  109. package/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js +1 -0
  110. package/serialization/types/BlockTypeEnum.d.ts +1 -1
  111. package/serialization/types/BlockTypeEnum.js +1 -1
  112. package/serialization/types/ChatMessageRole.d.ts +1 -1
  113. package/serialization/types/ChatMessageRole.js +1 -1
  114. package/serialization/types/ContentType.d.ts +10 -0
  115. package/serialization/types/{TypeEnum.js → ContentType.js} +2 -5
  116. package/serialization/types/DocumentIndexRead.d.ts +1 -0
  117. package/serialization/types/DocumentIndexRead.js +1 -0
  118. package/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -0
  119. package/serialization/types/EnrichedNormalizedCompletion.js +1 -0
  120. package/{dist/serialization/types/ModelVersionExecConfigRead.d.ts → serialization/types/ModelVersionExecConfig.d.ts} +3 -3
  121. package/serialization/types/{ModelVersionExecConfigRead.js → ModelVersionExecConfig.js} +3 -3
  122. package/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
  123. package/serialization/types/ModelVersionExecConfigParameters.js +2 -2
  124. package/serialization/types/ModelVersionRead.d.ts +1 -1
  125. package/serialization/types/ModelVersionRead.js +1 -1
  126. package/serialization/types/PromptTemplateBlockProperties.d.ts +5 -1
  127. package/serialization/types/PromptTemplateBlockProperties.js +5 -1
  128. package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +5 -1
  129. package/serialization/types/PromptTemplateBlockPropertiesRequest.js +5 -1
  130. package/serialization/types/ProviderEnum.d.ts +1 -1
  131. package/serialization/types/ProviderEnum.js +1 -1
  132. package/serialization/types/ScenarioInput.d.ts +1 -1
  133. package/serialization/types/ScenarioInput.js +1 -1
  134. package/serialization/types/ScenarioInputRequest.d.ts +1 -1
  135. package/serialization/types/ScenarioInputRequest.js +1 -1
  136. package/serialization/types/{TypeEnum.d.ts → ScenarioInputTypeEnum.d.ts} +2 -2
  137. package/serialization/types/ScenarioInputTypeEnum.js +31 -0
  138. package/serialization/types/index.d.ts +3 -2
  139. package/serialization/types/index.js +3 -2
  140. package/api/types/TypeEnum.d.ts +0 -8
  141. package/dist/api/types/TypeEnum.d.ts +0 -8
  142. /package/api/types/{ModelVersionExecConfigRead.js → ModelVersionExecConfig.js} +0 -0
  143. /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.TypeEnum = void 0;
29
+ exports.ContentType = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.TypeEnum = core.serialization.enum_([
32
- "TEXT",
33
- "CHAT_HISTORY",
34
- ]);
31
+ exports.ContentType = core.serialization.enum_(["STRING", "JSON"]);
@@ -12,6 +12,7 @@ export declare namespace DocumentIndexRead {
12
12
  label: string;
13
13
  name: string;
14
14
  status?: serializers.DocumentIndexStatus.Raw | null;
15
+ environment?: serializers.EnvironmentEnum.Raw | null;
15
16
  indexing_config: Record<string, unknown>;
16
17
  }
17
18
  }
@@ -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
  });
@@ -13,5 +13,6 @@ export declare namespace EnrichedNormalizedCompletion {
13
13
  finish_reason?: serializers.FinishReasonEnum.Raw | null;
14
14
  logprobs?: serializers.NormalizedLogProbs.Raw | null;
15
15
  model_version_id: string;
16
+ type?: serializers.ContentType.Raw | null;
16
17
  }
17
18
  }
@@ -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 ModelVersionExecConfigRead: core.serialization.ObjectSchema<serializers.ModelVersionExecConfigRead.Raw, Vellum.ModelVersionExecConfigRead>;
8
- export declare namespace ModelVersionExecConfigRead {
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: number;
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.ModelVersionExecConfigRead = void 0;
29
+ exports.ModelVersionExecConfig = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.ModelVersionExecConfigRead = core.serialization.object({
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.ModelVersionExecConfigRead.Raw;
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("..")))).ModelVersionExecConfigRead)),
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
- blocks?: Record<string, unknown>[] | null;
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.record(core.serialization.string(), core.serialization.unknown()))
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
- blocks?: Record<string, unknown>[] | null;
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.record(core.serialization.string(), core.serialization.unknown()))
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.TypeEnum.Raw | null;
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("..")))).TypeEnum).optional(),
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.TypeEnum.Raw | null;
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("..")))).TypeEnum).optional(),
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 TypeEnum: core.serialization.Schema<serializers.TypeEnum.Raw, Vellum.TypeEnum>;
8
- export declare namespace TypeEnum {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "v0.0.17",
3
+ "version": "v0.0.18",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "main": "./index.js",
@@ -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
  }
@@ -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.TypeEnum = void 0;
29
+ exports.ContentType = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.TypeEnum = core.serialization.enum_([
32
- "TEXT",
33
- "CHAT_HISTORY",
34
- ]);
31
+ exports.ContentType = core.serialization.enum_(["STRING", "JSON"]);
@@ -12,6 +12,7 @@ export declare namespace DocumentIndexRead {
12
12
  label: string;
13
13
  name: string;
14
14
  status?: serializers.DocumentIndexStatus.Raw | null;
15
+ environment?: serializers.EnvironmentEnum.Raw | null;
15
16
  indexing_config: Record<string, unknown>;
16
17
  }
17
18
  }
@@ -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
  });
@@ -13,5 +13,6 @@ export declare namespace EnrichedNormalizedCompletion {
13
13
  finish_reason?: serializers.FinishReasonEnum.Raw | null;
14
14
  logprobs?: serializers.NormalizedLogProbs.Raw | null;
15
15
  model_version_id: string;
16
+ type?: serializers.ContentType.Raw | null;
16
17
  }
17
18
  }
@@ -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 ModelVersionExecConfigRead: core.serialization.ObjectSchema<serializers.ModelVersionExecConfigRead.Raw, Vellum.ModelVersionExecConfigRead>;
8
- export declare namespace ModelVersionExecConfigRead {
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: number;
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.ModelVersionExecConfigRead = void 0;
29
+ exports.ModelVersionExecConfig = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.ModelVersionExecConfigRead = core.serialization.object({
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.ModelVersionExecConfigRead.Raw;
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("..")))).ModelVersionExecConfigRead)),
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
- blocks?: Record<string, unknown>[] | null;
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
  }