vellum-ai 0.9.8 → 0.9.9

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 (90) hide show
  1. package/.mock/definition/__package__.yml +9 -37
  2. package/.mock/openapi/openapi.yml +15 -49
  3. package/Client.js +10 -10
  4. package/api/resources/adHoc/client/Client.js +1 -1
  5. package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +2 -4
  6. package/api/resources/containerImages/client/Client.js +4 -4
  7. package/api/resources/deployments/client/Client.js +6 -6
  8. package/api/resources/documentIndexes/client/Client.js +8 -8
  9. package/api/resources/documents/client/Client.js +5 -5
  10. package/api/resources/folderEntities/client/Client.js +2 -2
  11. package/api/resources/metricDefinitions/client/Client.js +1 -1
  12. package/api/resources/sandboxes/client/Client.js +3 -3
  13. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  14. package/api/resources/testSuites/client/Client.js +4 -4
  15. package/api/resources/workflowDeployments/client/Client.js +5 -5
  16. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  17. package/api/resources/workflows/client/Client.js +2 -2
  18. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  19. package/api/types/ChatMessagePromptBlock.d.ts +4 -1
  20. package/api/types/FunctionDefinitionPromptBlock.d.ts +3 -1
  21. package/api/types/JinjaPromptBlock.d.ts +2 -1
  22. package/api/types/index.d.ts +0 -3
  23. package/api/types/index.js +0 -3
  24. package/dist/Client.js +10 -10
  25. package/dist/api/resources/adHoc/client/Client.js +1 -1
  26. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +2 -4
  27. package/dist/api/resources/containerImages/client/Client.js +4 -4
  28. package/dist/api/resources/deployments/client/Client.js +6 -6
  29. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  30. package/dist/api/resources/documents/client/Client.js +5 -5
  31. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  32. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  33. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  34. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  35. package/dist/api/resources/testSuites/client/Client.js +4 -4
  36. package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
  37. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  38. package/dist/api/resources/workflows/client/Client.js +2 -2
  39. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  40. package/dist/api/types/ChatMessagePromptBlock.d.ts +4 -1
  41. package/dist/api/types/FunctionDefinitionPromptBlock.d.ts +3 -1
  42. package/dist/api/types/JinjaPromptBlock.d.ts +2 -1
  43. package/dist/api/types/index.d.ts +0 -3
  44. package/dist/api/types/index.js +0 -3
  45. package/dist/serialization/types/ChatMessagePromptBlock.d.ts +5 -1
  46. package/dist/serialization/types/ChatMessagePromptBlock.js +5 -1
  47. package/dist/serialization/types/FunctionDefinitionPromptBlock.d.ts +3 -2
  48. package/dist/serialization/types/FunctionDefinitionPromptBlock.js +3 -2
  49. package/dist/serialization/types/JinjaPromptBlock.d.ts +3 -2
  50. package/dist/serialization/types/JinjaPromptBlock.js +3 -2
  51. package/dist/serialization/types/index.d.ts +0 -3
  52. package/dist/serialization/types/index.js +0 -3
  53. package/dist/version.d.ts +1 -1
  54. package/dist/version.js +1 -1
  55. package/package.json +1 -1
  56. package/reference.md +2 -4
  57. package/serialization/types/ChatMessagePromptBlock.d.ts +5 -1
  58. package/serialization/types/ChatMessagePromptBlock.js +5 -1
  59. package/serialization/types/FunctionDefinitionPromptBlock.d.ts +3 -2
  60. package/serialization/types/FunctionDefinitionPromptBlock.js +3 -2
  61. package/serialization/types/JinjaPromptBlock.d.ts +3 -2
  62. package/serialization/types/JinjaPromptBlock.js +3 -2
  63. package/serialization/types/index.d.ts +0 -3
  64. package/serialization/types/index.js +0 -3
  65. package/version.d.ts +1 -1
  66. package/version.js +1 -1
  67. package/api/types/ChatMessagePromptBlockProperties.d.ts +0 -13
  68. package/api/types/ChatMessagePromptBlockProperties.js +0 -5
  69. package/api/types/FunctionDefinitionPromptBlockProperties.d.ts +0 -15
  70. package/api/types/FunctionDefinitionPromptBlockProperties.js +0 -5
  71. package/api/types/JinjaPromptBlockProperties.d.ts +0 -8
  72. package/api/types/JinjaPromptBlockProperties.js +0 -5
  73. package/dist/api/types/ChatMessagePromptBlockProperties.d.ts +0 -13
  74. package/dist/api/types/ChatMessagePromptBlockProperties.js +0 -5
  75. package/dist/api/types/FunctionDefinitionPromptBlockProperties.d.ts +0 -15
  76. package/dist/api/types/FunctionDefinitionPromptBlockProperties.js +0 -5
  77. package/dist/api/types/JinjaPromptBlockProperties.d.ts +0 -8
  78. package/dist/api/types/JinjaPromptBlockProperties.js +0 -5
  79. package/dist/serialization/types/ChatMessagePromptBlockProperties.d.ts +0 -16
  80. package/dist/serialization/types/ChatMessagePromptBlockProperties.js +0 -38
  81. package/dist/serialization/types/FunctionDefinitionPromptBlockProperties.d.ts +0 -16
  82. package/dist/serialization/types/FunctionDefinitionPromptBlockProperties.js +0 -37
  83. package/dist/serialization/types/JinjaPromptBlockProperties.d.ts +0 -14
  84. package/dist/serialization/types/JinjaPromptBlockProperties.js +0 -35
  85. package/serialization/types/ChatMessagePromptBlockProperties.d.ts +0 -16
  86. package/serialization/types/ChatMessagePromptBlockProperties.js +0 -38
  87. package/serialization/types/FunctionDefinitionPromptBlockProperties.d.ts +0 -16
  88. package/serialization/types/FunctionDefinitionPromptBlockProperties.js +0 -37
  89. package/serialization/types/JinjaPromptBlockProperties.d.ts +0 -14
  90. package/serialization/types/JinjaPromptBlockProperties.js +0 -35
@@ -6,13 +6,14 @@ import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { PromptBlockState } from "./PromptBlockState";
8
8
  import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
9
- import { FunctionDefinitionPromptBlockProperties } from "./FunctionDefinitionPromptBlockProperties";
10
9
  export declare const FunctionDefinitionPromptBlock: core.serialization.ObjectSchema<serializers.FunctionDefinitionPromptBlock.Raw, Vellum.FunctionDefinitionPromptBlock>;
11
10
  export declare namespace FunctionDefinitionPromptBlock {
12
11
  interface Raw {
13
12
  state?: PromptBlockState.Raw | null;
14
13
  cache_config?: EphemeralPromptCacheConfig.Raw | null;
15
14
  block_type: "FUNCTION_DEFINITION";
16
- properties: FunctionDefinitionPromptBlockProperties.Raw;
15
+ function_name?: string | null;
16
+ function_description?: string | null;
17
+ function_parameters?: Record<string, unknown> | null;
17
18
  }
18
19
  }
@@ -30,10 +30,11 @@ exports.FunctionDefinitionPromptBlock = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const PromptBlockState_1 = require("./PromptBlockState");
32
32
  const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
33
- const FunctionDefinitionPromptBlockProperties_1 = require("./FunctionDefinitionPromptBlockProperties");
34
33
  exports.FunctionDefinitionPromptBlock = core.serialization.object({
35
34
  state: PromptBlockState_1.PromptBlockState.optional(),
36
35
  cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
37
36
  blockType: core.serialization.property("block_type", core.serialization.stringLiteral("FUNCTION_DEFINITION")),
38
- properties: FunctionDefinitionPromptBlockProperties_1.FunctionDefinitionPromptBlockProperties,
37
+ functionName: core.serialization.property("function_name", core.serialization.string().optional()),
38
+ functionDescription: core.serialization.property("function_description", core.serialization.string().optional()),
39
+ functionParameters: core.serialization.property("function_parameters", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
39
40
  });
@@ -6,13 +6,14 @@ import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { PromptBlockState } from "./PromptBlockState";
8
8
  import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
9
- import { JinjaPromptBlockProperties } from "./JinjaPromptBlockProperties";
9
+ import { VellumVariableType } from "./VellumVariableType";
10
10
  export declare const JinjaPromptBlock: core.serialization.ObjectSchema<serializers.JinjaPromptBlock.Raw, Vellum.JinjaPromptBlock>;
11
11
  export declare namespace JinjaPromptBlock {
12
12
  interface Raw {
13
13
  state?: PromptBlockState.Raw | null;
14
14
  cache_config?: EphemeralPromptCacheConfig.Raw | null;
15
15
  block_type: "JINJA";
16
- properties: JinjaPromptBlockProperties.Raw;
16
+ template: string;
17
+ template_type: VellumVariableType.Raw;
17
18
  }
18
19
  }
@@ -30,10 +30,11 @@ exports.JinjaPromptBlock = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const PromptBlockState_1 = require("./PromptBlockState");
32
32
  const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
33
- const JinjaPromptBlockProperties_1 = require("./JinjaPromptBlockProperties");
33
+ const VellumVariableType_1 = require("./VellumVariableType");
34
34
  exports.JinjaPromptBlock = core.serialization.object({
35
35
  state: PromptBlockState_1.PromptBlockState.optional(),
36
36
  cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
37
37
  blockType: core.serialization.property("block_type", core.serialization.stringLiteral("JINJA")),
38
- properties: JinjaPromptBlockProperties_1.JinjaPromptBlockProperties,
38
+ template: core.serialization.string(),
39
+ templateType: core.serialization.property("template_type", VellumVariableType_1.VellumVariableType),
39
40
  });
@@ -35,7 +35,6 @@ export * from "./ChatMessage";
35
35
  export * from "./ChatMessageContent";
36
36
  export * from "./ChatMessageContentRequest";
37
37
  export * from "./ChatMessagePromptBlock";
38
- export * from "./ChatMessagePromptBlockProperties";
39
38
  export * from "./ChatMessageRequest";
40
39
  export * from "./ChatMessageRole";
41
40
  export * from "./CodeExecutionNodeArrayResult";
@@ -130,7 +129,6 @@ export * from "./FunctionCallVariableValue";
130
129
  export * from "./FunctionCallVellumValue";
131
130
  export * from "./FunctionCallVellumValueRequest";
132
131
  export * from "./FunctionDefinitionPromptBlock";
133
- export * from "./FunctionDefinitionPromptBlockProperties";
134
132
  export * from "./GenerateOptionsRequest";
135
133
  export * from "./GenerateRequest";
136
134
  export * from "./GenerateResponse";
@@ -165,7 +163,6 @@ export * from "./InstructorVectorizerConfigRequest";
165
163
  export * from "./IterationStateEnum";
166
164
  export * from "./JsonInputRequest";
167
165
  export * from "./JinjaPromptBlock";
168
- export * from "./JinjaPromptBlockProperties";
169
166
  export * from "./JsonVariableValue";
170
167
  export * from "./JsonVellumValue";
171
168
  export * from "./JsonVellumValueRequest";
@@ -51,7 +51,6 @@ __exportStar(require("./ChatMessage"), exports);
51
51
  __exportStar(require("./ChatMessageContent"), exports);
52
52
  __exportStar(require("./ChatMessageContentRequest"), exports);
53
53
  __exportStar(require("./ChatMessagePromptBlock"), exports);
54
- __exportStar(require("./ChatMessagePromptBlockProperties"), exports);
55
54
  __exportStar(require("./ChatMessageRequest"), exports);
56
55
  __exportStar(require("./ChatMessageRole"), exports);
57
56
  __exportStar(require("./CodeExecutionNodeArrayResult"), exports);
@@ -146,7 +145,6 @@ __exportStar(require("./FunctionCallVariableValue"), exports);
146
145
  __exportStar(require("./FunctionCallVellumValue"), exports);
147
146
  __exportStar(require("./FunctionCallVellumValueRequest"), exports);
148
147
  __exportStar(require("./FunctionDefinitionPromptBlock"), exports);
149
- __exportStar(require("./FunctionDefinitionPromptBlockProperties"), exports);
150
148
  __exportStar(require("./GenerateOptionsRequest"), exports);
151
149
  __exportStar(require("./GenerateRequest"), exports);
152
150
  __exportStar(require("./GenerateResponse"), exports);
@@ -181,7 +179,6 @@ __exportStar(require("./InstructorVectorizerConfigRequest"), exports);
181
179
  __exportStar(require("./IterationStateEnum"), exports);
182
180
  __exportStar(require("./JsonInputRequest"), exports);
183
181
  __exportStar(require("./JinjaPromptBlock"), exports);
184
- __exportStar(require("./JinjaPromptBlockProperties"), exports);
185
182
  __exportStar(require("./JsonVariableValue"), exports);
186
183
  __exportStar(require("./JsonVellumValue"), exports);
187
184
  __exportStar(require("./JsonVellumValueRequest"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.9.8";
1
+ export declare const SDK_VERSION = "0.9.9";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.9.8";
4
+ exports.SDK_VERSION = "0.9.9";
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- /**
6
- * The properties of a ChatMessagePromptTemplateBlock
7
- */
8
- export interface ChatMessagePromptBlockProperties {
9
- blocks: Vellum.PromptBlock[];
10
- chatRole?: Vellum.ChatMessageRole;
11
- chatSource?: string;
12
- chatMessageUnterminated?: boolean;
13
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface FunctionDefinitionPromptBlockProperties {
5
- /** The name identifying the function. */
6
- functionName?: string;
7
- /** A description to help guide the model when to invoke this function. */
8
- functionDescription?: string;
9
- /** An OpenAPI specification of parameters that are supported by this function. */
10
- functionParameters?: Record<string, unknown>;
11
- /** Set this option to true to force the model to return a function call of this function. */
12
- functionForced?: boolean;
13
- /** Set this option to use strict schema decoding when available. */
14
- functionStrict?: boolean;
15
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- export interface JinjaPromptBlockProperties {
6
- template?: string;
7
- templateType?: Vellum.VellumVariableType;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- /**
6
- * The properties of a ChatMessagePromptTemplateBlock
7
- */
8
- export interface ChatMessagePromptBlockProperties {
9
- blocks: Vellum.PromptBlock[];
10
- chatRole?: Vellum.ChatMessageRole;
11
- chatSource?: string;
12
- chatMessageUnterminated?: boolean;
13
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface FunctionDefinitionPromptBlockProperties {
5
- /** The name identifying the function. */
6
- functionName?: string;
7
- /** A description to help guide the model when to invoke this function. */
8
- functionDescription?: string;
9
- /** An OpenAPI specification of parameters that are supported by this function. */
10
- functionParameters?: Record<string, unknown>;
11
- /** Set this option to true to force the model to return a function call of this function. */
12
- functionForced?: boolean;
13
- /** Set this option to use strict schema decoding when available. */
14
- functionStrict?: boolean;
15
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- export interface JinjaPromptBlockProperties {
6
- template?: string;
7
- templateType?: Vellum.VellumVariableType;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Vellum from "../../api/index";
6
- import * as core from "../../core";
7
- import { ChatMessageRole } from "./ChatMessageRole";
8
- export declare const ChatMessagePromptBlockProperties: core.serialization.ObjectSchema<serializers.ChatMessagePromptBlockProperties.Raw, Vellum.ChatMessagePromptBlockProperties>;
9
- export declare namespace ChatMessagePromptBlockProperties {
10
- interface Raw {
11
- blocks: serializers.PromptBlock.Raw[];
12
- chat_role?: ChatMessageRole.Raw | null;
13
- chat_source?: string | null;
14
- chat_message_unterminated?: boolean | null;
15
- }
16
- }
@@ -1,38 +0,0 @@
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.ChatMessagePromptBlockProperties = void 0;
30
- const serializers = __importStar(require("../index"));
31
- const core = __importStar(require("../../core"));
32
- const ChatMessageRole_1 = require("./ChatMessageRole");
33
- exports.ChatMessagePromptBlockProperties = core.serialization.object({
34
- blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlock)),
35
- chatRole: core.serialization.property("chat_role", ChatMessageRole_1.ChatMessageRole.optional()),
36
- chatSource: core.serialization.property("chat_source", core.serialization.string().optional()),
37
- chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
38
- });
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Vellum from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const FunctionDefinitionPromptBlockProperties: core.serialization.ObjectSchema<serializers.FunctionDefinitionPromptBlockProperties.Raw, Vellum.FunctionDefinitionPromptBlockProperties>;
8
- export declare namespace FunctionDefinitionPromptBlockProperties {
9
- interface Raw {
10
- function_name?: string | null;
11
- function_description?: string | null;
12
- function_parameters?: Record<string, unknown> | null;
13
- function_forced?: boolean | null;
14
- function_strict?: boolean | null;
15
- }
16
- }
@@ -1,37 +0,0 @@
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.FunctionDefinitionPromptBlockProperties = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.FunctionDefinitionPromptBlockProperties = core.serialization.object({
32
- functionName: core.serialization.property("function_name", core.serialization.string().optional()),
33
- functionDescription: core.serialization.property("function_description", core.serialization.string().optional()),
34
- functionParameters: core.serialization.property("function_parameters", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
35
- functionForced: core.serialization.property("function_forced", core.serialization.boolean().optional()),
36
- functionStrict: core.serialization.property("function_strict", core.serialization.boolean().optional()),
37
- });
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Vellum from "../../api/index";
6
- import * as core from "../../core";
7
- import { VellumVariableType } from "./VellumVariableType";
8
- export declare const JinjaPromptBlockProperties: core.serialization.ObjectSchema<serializers.JinjaPromptBlockProperties.Raw, Vellum.JinjaPromptBlockProperties>;
9
- export declare namespace JinjaPromptBlockProperties {
10
- interface Raw {
11
- template?: string | null;
12
- template_type?: VellumVariableType.Raw | null;
13
- }
14
- }
@@ -1,35 +0,0 @@
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.JinjaPromptBlockProperties = void 0;
30
- const core = __importStar(require("../../core"));
31
- const VellumVariableType_1 = require("./VellumVariableType");
32
- exports.JinjaPromptBlockProperties = core.serialization.object({
33
- template: core.serialization.string().optional(),
34
- templateType: core.serialization.property("template_type", VellumVariableType_1.VellumVariableType.optional()),
35
- });
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Vellum from "../../api/index";
6
- import * as core from "../../core";
7
- import { ChatMessageRole } from "./ChatMessageRole";
8
- export declare const ChatMessagePromptBlockProperties: core.serialization.ObjectSchema<serializers.ChatMessagePromptBlockProperties.Raw, Vellum.ChatMessagePromptBlockProperties>;
9
- export declare namespace ChatMessagePromptBlockProperties {
10
- interface Raw {
11
- blocks: serializers.PromptBlock.Raw[];
12
- chat_role?: ChatMessageRole.Raw | null;
13
- chat_source?: string | null;
14
- chat_message_unterminated?: boolean | null;
15
- }
16
- }
@@ -1,38 +0,0 @@
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.ChatMessagePromptBlockProperties = void 0;
30
- const serializers = __importStar(require("../index"));
31
- const core = __importStar(require("../../core"));
32
- const ChatMessageRole_1 = require("./ChatMessageRole");
33
- exports.ChatMessagePromptBlockProperties = core.serialization.object({
34
- blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlock)),
35
- chatRole: core.serialization.property("chat_role", ChatMessageRole_1.ChatMessageRole.optional()),
36
- chatSource: core.serialization.property("chat_source", core.serialization.string().optional()),
37
- chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
38
- });
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Vellum from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const FunctionDefinitionPromptBlockProperties: core.serialization.ObjectSchema<serializers.FunctionDefinitionPromptBlockProperties.Raw, Vellum.FunctionDefinitionPromptBlockProperties>;
8
- export declare namespace FunctionDefinitionPromptBlockProperties {
9
- interface Raw {
10
- function_name?: string | null;
11
- function_description?: string | null;
12
- function_parameters?: Record<string, unknown> | null;
13
- function_forced?: boolean | null;
14
- function_strict?: boolean | null;
15
- }
16
- }
@@ -1,37 +0,0 @@
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.FunctionDefinitionPromptBlockProperties = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.FunctionDefinitionPromptBlockProperties = core.serialization.object({
32
- functionName: core.serialization.property("function_name", core.serialization.string().optional()),
33
- functionDescription: core.serialization.property("function_description", core.serialization.string().optional()),
34
- functionParameters: core.serialization.property("function_parameters", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
35
- functionForced: core.serialization.property("function_forced", core.serialization.boolean().optional()),
36
- functionStrict: core.serialization.property("function_strict", core.serialization.boolean().optional()),
37
- });
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Vellum from "../../api/index";
6
- import * as core from "../../core";
7
- import { VellumVariableType } from "./VellumVariableType";
8
- export declare const JinjaPromptBlockProperties: core.serialization.ObjectSchema<serializers.JinjaPromptBlockProperties.Raw, Vellum.JinjaPromptBlockProperties>;
9
- export declare namespace JinjaPromptBlockProperties {
10
- interface Raw {
11
- template?: string | null;
12
- template_type?: VellumVariableType.Raw | null;
13
- }
14
- }
@@ -1,35 +0,0 @@
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.JinjaPromptBlockProperties = void 0;
30
- const core = __importStar(require("../../core"));
31
- const VellumVariableType_1 = require("./VellumVariableType");
32
- exports.JinjaPromptBlockProperties = core.serialization.object({
33
- template: core.serialization.string().optional(),
34
- templateType: core.serialization.property("template_type", VellumVariableType_1.VellumVariableType.optional()),
35
- });