vellum_ai 1.11.18 → 1.11.20
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/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/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: da54729675681e67b89a23a80029ab14b1341bc1961d7dac93eab761bb1d2111
|
|
4
|
+
data.tar.gz: 117412b21a5a98d7a13cdde0770e16efec8bc5bcee77ddab4ad66deefe36a3de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed59350bade8f352552e28be427b97787cca231962a428e98ce9b70fba11bc5d839e613ec6bca6e85d9505515cddfcfde4192d878a02a400089f403559a63399
|
|
7
|
+
data.tar.gz: 790657f91c73ccd7e8137c11f8d706c9c682c795f7e445b67e99a4fdf92c750109855e4e31c9f893589f062552af78988b2636249be26358273c878ad19c6e79
|
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.11.
|
|
59
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.11.20' }
|
|
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.11.
|
|
110
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.11.20' }
|
|
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
|
|
@@ -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
|
|
@@ -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.11.
|
|
4
|
+
version: 1.11.20
|
|
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-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|