vellum_ai 1.11.18 → 1.12.0
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.
- checksums.yaml +4 -4
- data/lib/requests.rb +2 -2
- data/lib/vellum_ai/ad_hoc/client.rb +2 -0
- data/lib/vellum_ai/integration_auth_configs/client.rb +4 -0
- data/lib/vellum_ai/types/dataset_row_push_request.rb +16 -2
- data/lib/vellum_ai/types/prompt_deployment_release_prompt_deployment.rb +13 -3
- data/lib/vellum_ai/types/vellum_variable_extensions.rb +9 -2
- data/lib/vellum_ai/types/workflow_deployment_release_workflow_deployment.rb +13 -3
- data/lib/vellum_ai/workflows/client.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '025449af032943d55350172dd40b19468e024144bd0bb32397b776b8c329ea18'
|
|
4
|
+
data.tar.gz: faaea744fd497604aa4e952bf22b1429031024a83a924a010f858cc92e25bb02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d19f8ecdb7c59cfe6e1937bac9a7bfdcd460e53dc793095c1bae82116e5210884a99305355c4e6e21f2b669ec8e71516af5a3dbf4f810a211a259e8d4ffc4ee8
|
|
7
|
+
data.tar.gz: 1799ef5280520ff032893aeb5181853d10733e51ac43eaef3dd17b60d2fe42e81976109422d3b5f6a0cf51e24e7a6fbe5542f3e0c83e7e51fad8c2c7b2041fa0
|
data/lib/requests.rb
CHANGED
|
@@ -56,7 +56,7 @@ end
|
|
|
56
56
|
end
|
|
57
57
|
# @return [Hash{String => String}]
|
|
58
58
|
def get_headers
|
|
59
|
-
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.
|
|
59
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.12.0' }
|
|
60
60
|
headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
|
|
61
61
|
headers
|
|
62
62
|
end
|
|
@@ -107,7 +107,7 @@ end
|
|
|
107
107
|
end
|
|
108
108
|
# @return [Hash{String => String}]
|
|
109
109
|
def get_headers
|
|
110
|
-
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.
|
|
110
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.12.0' }
|
|
111
111
|
headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
|
|
112
112
|
headers
|
|
113
113
|
end
|
|
@@ -33,6 +33,7 @@ module Vellum
|
|
|
33
33
|
# * :extensions (Hash)
|
|
34
34
|
# * :color (String)
|
|
35
35
|
# * :description (String)
|
|
36
|
+
# * :title (String)
|
|
36
37
|
# * :schema (Hash{String => Object})
|
|
37
38
|
# @param parameters [Hash] Request of type Vellum::PromptParameters, as a Hash
|
|
38
39
|
# * :stop (Array<String>)
|
|
@@ -122,6 +123,7 @@ end
|
|
|
122
123
|
# * :extensions (Hash)
|
|
123
124
|
# * :color (String)
|
|
124
125
|
# * :description (String)
|
|
126
|
+
# * :title (String)
|
|
125
127
|
# * :schema (Hash{String => Object})
|
|
126
128
|
# @param parameters [Hash] Request of type Vellum::PromptParameters, as a Hash
|
|
127
129
|
# * :stop (Array<String>)
|
|
@@ -20,6 +20,8 @@ module Vellum
|
|
|
20
20
|
# @param expand [String] The response fields to expand for more information.
|
|
21
21
|
# - 'integration_credentials' expands the list of integration credentials that the
|
|
22
22
|
# authenticated entity has access to for the auth config.
|
|
23
|
+
# - 'additional_parameters' (retrieve only) fetches additional parameter
|
|
24
|
+
# requirements for the auth config.
|
|
23
25
|
# @param integration_name [String]
|
|
24
26
|
# @param integration_provider [String]
|
|
25
27
|
# @param limit [Integer] Number of results to return per page.
|
|
@@ -73,6 +75,8 @@ end
|
|
|
73
75
|
# @param expand [String] The response fields to expand for more information.
|
|
74
76
|
# - 'integration_credentials' expands the list of integration credentials that the
|
|
75
77
|
# authenticated entity has access to for the auth config.
|
|
78
|
+
# - 'additional_parameters' (retrieve only) fetches additional parameter
|
|
79
|
+
# requirements for the auth config.
|
|
76
80
|
# @param integration_name [String]
|
|
77
81
|
# @param integration_provider [String]
|
|
78
82
|
# @param limit [Integer] Number of results to return per page.
|
|
@@ -4,10 +4,14 @@ require "json"
|
|
|
4
4
|
|
|
5
5
|
module Vellum
|
|
6
6
|
class DatasetRowPushRequest
|
|
7
|
+
# @return [String]
|
|
8
|
+
attr_reader :id
|
|
7
9
|
# @return [String]
|
|
8
10
|
attr_reader :label
|
|
9
11
|
# @return [Hash{String => Object}]
|
|
10
12
|
attr_reader :inputs
|
|
13
|
+
# @return [Array<Hash{String => Object}>]
|
|
14
|
+
attr_reader :mocks
|
|
11
15
|
# @return [String]
|
|
12
16
|
attr_reader :workflow_trigger_id
|
|
13
17
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
@@ -18,17 +22,21 @@ module Vellum
|
|
|
18
22
|
|
|
19
23
|
OMIT = Object.new
|
|
20
24
|
|
|
25
|
+
# @param id [String]
|
|
21
26
|
# @param label [String]
|
|
22
27
|
# @param inputs [Hash{String => Object}]
|
|
28
|
+
# @param mocks [Array<Hash{String => Object}>]
|
|
23
29
|
# @param workflow_trigger_id [String]
|
|
24
30
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
25
31
|
# @return [Vellum::DatasetRowPushRequest]
|
|
26
|
-
def initialize(label:, inputs:, workflow_trigger_id: OMIT, additional_properties: nil)
|
|
32
|
+
def initialize(id: OMIT, label:, inputs:, mocks: OMIT, workflow_trigger_id: OMIT, additional_properties: nil)
|
|
33
|
+
@id = id if id != OMIT
|
|
27
34
|
@label = label
|
|
28
35
|
@inputs = inputs
|
|
36
|
+
@mocks = mocks if mocks != OMIT
|
|
29
37
|
@workflow_trigger_id = workflow_trigger_id if workflow_trigger_id != OMIT
|
|
30
38
|
@additional_properties = additional_properties
|
|
31
|
-
@_field_set = { "label": label, "inputs": inputs, "workflow_trigger_id": workflow_trigger_id }.reject do | _k, v |
|
|
39
|
+
@_field_set = { "id": id, "label": label, "inputs": inputs, "mocks": mocks, "workflow_trigger_id": workflow_trigger_id }.reject do | _k, v |
|
|
32
40
|
v == OMIT
|
|
33
41
|
end
|
|
34
42
|
end
|
|
@@ -39,12 +47,16 @@ end
|
|
|
39
47
|
def self.from_json(json_object:)
|
|
40
48
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
41
49
|
parsed_json = JSON.parse(json_object)
|
|
50
|
+
id = parsed_json["id"]
|
|
42
51
|
label = parsed_json["label"]
|
|
43
52
|
inputs = parsed_json["inputs"]
|
|
53
|
+
mocks = parsed_json["mocks"]
|
|
44
54
|
workflow_trigger_id = parsed_json["workflow_trigger_id"]
|
|
45
55
|
new(
|
|
56
|
+
id: id,
|
|
46
57
|
label: label,
|
|
47
58
|
inputs: inputs,
|
|
59
|
+
mocks: mocks,
|
|
48
60
|
workflow_trigger_id: workflow_trigger_id,
|
|
49
61
|
additional_properties: struct
|
|
50
62
|
)
|
|
@@ -62,8 +74,10 @@ end
|
|
|
62
74
|
# @param obj [Object]
|
|
63
75
|
# @return [Void]
|
|
64
76
|
def self.validate_raw(obj:)
|
|
77
|
+
obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
|
65
78
|
obj.label.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
|
|
66
79
|
obj.inputs.is_a?(Hash) != false || raise("Passed value for field obj.inputs is not the expected type, validation failed.")
|
|
80
|
+
obj.mocks&.is_a?(Array) != false || raise("Passed value for field obj.mocks is not the expected type, validation failed.")
|
|
67
81
|
obj.workflow_trigger_id&.is_a?(String) != false || raise("Passed value for field obj.workflow_trigger_id is not the expected type, validation failed.")
|
|
68
82
|
end
|
|
69
83
|
end
|
|
@@ -4,6 +4,8 @@ require "json"
|
|
|
4
4
|
|
|
5
5
|
module Vellum
|
|
6
6
|
class PromptDeploymentReleasePromptDeployment
|
|
7
|
+
# @return [String]
|
|
8
|
+
attr_reader :id
|
|
7
9
|
# @return [String]
|
|
8
10
|
attr_reader :name
|
|
9
11
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
@@ -14,13 +16,15 @@ module Vellum
|
|
|
14
16
|
|
|
15
17
|
OMIT = Object.new
|
|
16
18
|
|
|
19
|
+
# @param id [String]
|
|
17
20
|
# @param name [String]
|
|
18
21
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
19
22
|
# @return [Vellum::PromptDeploymentReleasePromptDeployment]
|
|
20
|
-
def initialize(name:, additional_properties: nil)
|
|
23
|
+
def initialize(id:, name:, additional_properties: nil)
|
|
24
|
+
@id = id
|
|
21
25
|
@name = name
|
|
22
26
|
@additional_properties = additional_properties
|
|
23
|
-
@_field_set = { "name": name }
|
|
27
|
+
@_field_set = { "id": id, "name": name }
|
|
24
28
|
end
|
|
25
29
|
# Deserialize a JSON object to an instance of
|
|
26
30
|
# PromptDeploymentReleasePromptDeployment
|
|
@@ -30,8 +34,13 @@ module Vellum
|
|
|
30
34
|
def self.from_json(json_object:)
|
|
31
35
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
32
36
|
parsed_json = JSON.parse(json_object)
|
|
37
|
+
id = parsed_json["id"]
|
|
33
38
|
name = parsed_json["name"]
|
|
34
|
-
new(
|
|
39
|
+
new(
|
|
40
|
+
id: id,
|
|
41
|
+
name: name,
|
|
42
|
+
additional_properties: struct
|
|
43
|
+
)
|
|
35
44
|
end
|
|
36
45
|
# Serialize an instance of PromptDeploymentReleasePromptDeployment to a JSON
|
|
37
46
|
# object
|
|
@@ -47,6 +56,7 @@ module Vellum
|
|
|
47
56
|
# @param obj [Object]
|
|
48
57
|
# @return [Void]
|
|
49
58
|
def self.validate_raw(obj:)
|
|
59
|
+
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
|
50
60
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
|
51
61
|
end
|
|
52
62
|
end
|
|
@@ -9,6 +9,8 @@ module Vellum
|
|
|
9
9
|
attr_reader :color
|
|
10
10
|
# @return [String]
|
|
11
11
|
attr_reader :description
|
|
12
|
+
# @return [String]
|
|
13
|
+
attr_reader :title
|
|
12
14
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
13
15
|
attr_reader :additional_properties
|
|
14
16
|
# @return [Object]
|
|
@@ -19,13 +21,15 @@ module Vellum
|
|
|
19
21
|
|
|
20
22
|
# @param color [String]
|
|
21
23
|
# @param description [String]
|
|
24
|
+
# @param title [String]
|
|
22
25
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
23
26
|
# @return [Vellum::VellumVariableExtensions]
|
|
24
|
-
def initialize(color: OMIT, description: OMIT, additional_properties: nil)
|
|
27
|
+
def initialize(color: OMIT, description: OMIT, title: OMIT, additional_properties: nil)
|
|
25
28
|
@color = color if color != OMIT
|
|
26
29
|
@description = description if description != OMIT
|
|
30
|
+
@title = title if title != OMIT
|
|
27
31
|
@additional_properties = additional_properties
|
|
28
|
-
@_field_set = { "color": color, "description": description }.reject do | _k, v |
|
|
32
|
+
@_field_set = { "color": color, "description": description, "title": title }.reject do | _k, v |
|
|
29
33
|
v == OMIT
|
|
30
34
|
end
|
|
31
35
|
end
|
|
@@ -38,9 +42,11 @@ end
|
|
|
38
42
|
parsed_json = JSON.parse(json_object)
|
|
39
43
|
color = parsed_json["color"]
|
|
40
44
|
description = parsed_json["description"]
|
|
45
|
+
title = parsed_json["title"]
|
|
41
46
|
new(
|
|
42
47
|
color: color,
|
|
43
48
|
description: description,
|
|
49
|
+
title: title,
|
|
44
50
|
additional_properties: struct
|
|
45
51
|
)
|
|
46
52
|
end
|
|
@@ -59,6 +65,7 @@ end
|
|
|
59
65
|
def self.validate_raw(obj:)
|
|
60
66
|
obj.color&.is_a?(String) != false || raise("Passed value for field obj.color is not the expected type, validation failed.")
|
|
61
67
|
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
|
68
|
+
obj.title&.is_a?(String) != false || raise("Passed value for field obj.title is not the expected type, validation failed.")
|
|
62
69
|
end
|
|
63
70
|
end
|
|
64
71
|
end
|
|
@@ -4,6 +4,8 @@ require "json"
|
|
|
4
4
|
|
|
5
5
|
module Vellum
|
|
6
6
|
class WorkflowDeploymentReleaseWorkflowDeployment
|
|
7
|
+
# @return [String]
|
|
8
|
+
attr_reader :id
|
|
7
9
|
# @return [String]
|
|
8
10
|
attr_reader :name
|
|
9
11
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
@@ -14,13 +16,15 @@ module Vellum
|
|
|
14
16
|
|
|
15
17
|
OMIT = Object.new
|
|
16
18
|
|
|
19
|
+
# @param id [String]
|
|
17
20
|
# @param name [String]
|
|
18
21
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
19
22
|
# @return [Vellum::WorkflowDeploymentReleaseWorkflowDeployment]
|
|
20
|
-
def initialize(name:, additional_properties: nil)
|
|
23
|
+
def initialize(id:, name:, additional_properties: nil)
|
|
24
|
+
@id = id
|
|
21
25
|
@name = name
|
|
22
26
|
@additional_properties = additional_properties
|
|
23
|
-
@_field_set = { "name": name }
|
|
27
|
+
@_field_set = { "id": id, "name": name }
|
|
24
28
|
end
|
|
25
29
|
# Deserialize a JSON object to an instance of
|
|
26
30
|
# WorkflowDeploymentReleaseWorkflowDeployment
|
|
@@ -30,8 +34,13 @@ module Vellum
|
|
|
30
34
|
def self.from_json(json_object:)
|
|
31
35
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
32
36
|
parsed_json = JSON.parse(json_object)
|
|
37
|
+
id = parsed_json["id"]
|
|
33
38
|
name = parsed_json["name"]
|
|
34
|
-
new(
|
|
39
|
+
new(
|
|
40
|
+
id: id,
|
|
41
|
+
name: name,
|
|
42
|
+
additional_properties: struct
|
|
43
|
+
)
|
|
35
44
|
end
|
|
36
45
|
# Serialize an instance of WorkflowDeploymentReleaseWorkflowDeployment to a JSON
|
|
37
46
|
# object
|
|
@@ -47,6 +56,7 @@ module Vellum
|
|
|
47
56
|
# @param obj [Object]
|
|
48
57
|
# @return [Void]
|
|
49
58
|
def self.validate_raw(obj:)
|
|
59
|
+
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
|
50
60
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
|
51
61
|
end
|
|
52
62
|
end
|
|
@@ -109,8 +109,10 @@ end
|
|
|
109
109
|
# * :release_description (String)
|
|
110
110
|
# @param artifact [String, IO]
|
|
111
111
|
# @param dataset [Array<Hash>] List of dataset rows with inputs for scenarios.Request of type Array<Vellum::DatasetRowPushRequest>, as a Hash
|
|
112
|
+
# * :id (String)
|
|
112
113
|
# * :label (String)
|
|
113
114
|
# * :inputs (Hash{String => Object})
|
|
115
|
+
# * :mocks (Array<Hash{String => Object}>)
|
|
114
116
|
# * :workflow_trigger_id (String)
|
|
115
117
|
# @param dry_run [Boolean]
|
|
116
118
|
# @param strict [Boolean]
|
|
@@ -283,8 +285,10 @@ end
|
|
|
283
285
|
# * :release_description (String)
|
|
284
286
|
# @param artifact [String, IO]
|
|
285
287
|
# @param dataset [Array<Hash>] List of dataset rows with inputs for scenarios.Request of type Array<Vellum::DatasetRowPushRequest>, as a Hash
|
|
288
|
+
# * :id (String)
|
|
286
289
|
# * :label (String)
|
|
287
290
|
# * :inputs (Hash{String => Object})
|
|
291
|
+
# * :mocks (Array<Hash{String => Object}>)
|
|
288
292
|
# * :workflow_trigger_id (String)
|
|
289
293
|
# @param dry_run [Boolean]
|
|
290
294
|
# @param strict [Boolean]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vellum_ai
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vellum
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|