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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58da2d731408f7999d36097ef660d471dc423c99abd23f7ecb97dd60a4b615d7
4
- data.tar.gz: 7c02b30d47d5b7468493a11d455607a29556188612fefeadb5022ea69dd6237a
3
+ metadata.gz: da54729675681e67b89a23a80029ab14b1341bc1961d7dac93eab761bb1d2111
4
+ data.tar.gz: 117412b21a5a98d7a13cdde0770e16efec8bc5bcee77ddab4ad66deefe36a3de
5
5
  SHA512:
6
- metadata.gz: 410769d92f57b92d0c16c4da60a44ab61a1b834fb74fdf1d468a79b0bdc36e88ef8be83401005f9e64f88448ab60a67fde963a22e9f3159a5f869690ecca160a
7
- data.tar.gz: 5fa21fac411a2cfb2dbeb5337afd8b8ed5cbf1c19da61bd8f29afb8c7f7797216ca3bc2fd9f82b9e8be882737e3fd2da5daef14ecb369feae21782b2de29875b
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.18' }
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.18' }
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(name: name, additional_properties: struct)
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(name: name, additional_properties: struct)
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.18
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-15 00:00:00.000000000 Z
11
+ date: 2025-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday