vellum_ai 0.14.86 → 0.14.88

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: 81f7c9756166ab0688718b64ba1aa21a9e074b3291119a4191a50c4067134da7
4
- data.tar.gz: 0130dee05746c3483e9554779d97188891e22efdbf1a1165daaa64fa69b4a66d
3
+ metadata.gz: 1d5beb8e0ce7871d6f505db6fb0e330786d09c49e39617aae69e888b5caef2a9
4
+ data.tar.gz: 2dcb52b95b6f2518e64df757b4975802e8abe5855baad12196bcdedccde84e0e
5
5
  SHA512:
6
- metadata.gz: a361af3e5dbfcb1ebfde70d2bfeaa3ba596263e2b7f3f4e584e399dcde561bb9c2aefcda159b2d4d3115ade6cebc35518a952744738d0c6e908efc5207d680a3
7
- data.tar.gz: c5cbf8e64495a3c8c22c7eefe59808e98e2455405bf8d950cec78d487bc3f46fd96b6ff4d2b7b8d0272ffffd1128d7dfe2844368762aa42fec97dd9fc4fbf90d
6
+ metadata.gz: b2d4b9ca0b5725394a518689f851a611256655daba9fe4abbf8f910e86e66b16bcf36b9233997f3d92ca66689c94b0a33ef7d9467d786787b9bacbe4150b560c
7
+ data.tar.gz: a05f0f1216540358b36d32bf7e81fe2201b8218b22c7a010809187b3bcc812ac310689ea06990c744bd362def416657aa03f1044561e6133eb4af95fad8befd1
data/lib/requests.rb CHANGED
@@ -50,7 +50,7 @@ end
50
50
  end
51
51
  # @return [Hash{String => String}]
52
52
  def get_headers
53
- headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '0.14.86' }
53
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '0.14.88' }
54
54
  headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
55
55
  headers
56
56
  end
@@ -96,7 +96,7 @@ end
96
96
  end
97
97
  # @return [Hash{String => String}]
98
98
  def get_headers
99
- headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '0.14.86' }
99
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '0.14.88' }
100
100
  headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
101
101
  headers
102
102
  end
@@ -1,5 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vellum
4
- API_VERSION_ENUM = String
4
+ # * `2024-10-25` - V2024_10_25
5
+ # * `2025-07-30` - V2025_07_30
6
+ class ApiVersionEnum
7
+
8
+ TWO_THOUSAND_TWENTY_FOUR_1025 = "2024-10-25"
9
+ TWO_THOUSAND_TWENTY_FIVE_0730 = "2025-07-30"
10
+
11
+ end
5
12
  end
@@ -12,7 +12,7 @@ module Vellum
12
12
  attr_reader :name
13
13
  # @return [String]
14
14
  attr_reader :type
15
- # @return [Array<Vellum::StringVellumValue>]
15
+ # @return [Vellum::StringVellumValue]
16
16
  attr_reader :value
17
17
  # @return [OpenStruct] Additional properties unmapped to the current class definition
18
18
  attr_reader :additional_properties
@@ -25,7 +25,7 @@ module Vellum
25
25
  # @param id [String] The variable's uniquely identifying internal id.
26
26
  # @param name [String]
27
27
  # @param type [String]
28
- # @param value [Array<Vellum::StringVellumValue>]
28
+ # @param value [Vellum::StringVellumValue]
29
29
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
30
30
  # @return [Vellum::ExecutionThinkingVellumValue]
31
31
  def initialize(id:, name:, type:, value:, additional_properties: nil)
@@ -46,10 +46,12 @@ module Vellum
46
46
  id = parsed_json["id"]
47
47
  name = parsed_json["name"]
48
48
  type = parsed_json["type"]
49
- value = parsed_json["value"]&.map do | item |
50
- item = item.to_json
51
- Vellum::StringVellumValue.from_json(json_object: item)
52
- end
49
+ unless parsed_json["value"].nil?
50
+ value = parsed_json["value"].to_json
51
+ value = Vellum::StringVellumValue.from_json(json_object: value)
52
+ else
53
+ value = nil
54
+ end
53
55
  new(
54
56
  id: id,
55
57
  name: name,
@@ -74,7 +76,7 @@ end
74
76
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
75
77
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
76
78
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
77
- obj.value.is_a?(Array) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
79
+ Vellum::StringVellumValue.validate_raw(obj: obj.value)
78
80
  end
79
81
  end
80
82
  end
@@ -21,7 +21,7 @@ module Vellum
21
21
  attr_reader :id
22
22
  # @return [DateTime]
23
23
  attr_reader :timestamp
24
- # @return [Vellum::API_VERSION_ENUM]
24
+ # @return [Vellum::ApiVersionEnum]
25
25
  attr_reader :api_version
26
26
  # @return [String]
27
27
  attr_reader :trace_id
@@ -41,7 +41,7 @@ module Vellum
41
41
  # @param body [Vellum::NodeExecutionFulfilledBody]
42
42
  # @param id [String]
43
43
  # @param timestamp [DateTime]
44
- # @param api_version [Vellum::API_VERSION_ENUM]
44
+ # @param api_version [Vellum::ApiVersionEnum]
45
45
  # @param trace_id [String]
46
46
  # @param span_id [String]
47
47
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
@@ -126,7 +126,7 @@ end
126
126
  Vellum::NodeExecutionFulfilledBody.validate_raw(obj: obj.body)
127
127
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
128
128
  obj.timestamp.is_a?(DateTime) != false || raise("Passed value for field obj.timestamp is not the expected type, validation failed.")
129
- obj.api_version&.is_a?(String) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
129
+ obj.api_version&.is_a?(Vellum::ApiVersionEnum) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
130
130
  obj.trace_id.is_a?(String) != false || raise("Passed value for field obj.trace_id is not the expected type, validation failed.")
131
131
  obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
132
132
  end
@@ -21,7 +21,7 @@ module Vellum
21
21
  attr_reader :id
22
22
  # @return [DateTime]
23
23
  attr_reader :timestamp
24
- # @return [Vellum::API_VERSION_ENUM]
24
+ # @return [Vellum::ApiVersionEnum]
25
25
  attr_reader :api_version
26
26
  # @return [String]
27
27
  attr_reader :trace_id
@@ -41,7 +41,7 @@ module Vellum
41
41
  # @param body [Vellum::NodeExecutionInitiatedBody]
42
42
  # @param id [String]
43
43
  # @param timestamp [DateTime]
44
- # @param api_version [Vellum::API_VERSION_ENUM]
44
+ # @param api_version [Vellum::ApiVersionEnum]
45
45
  # @param trace_id [String]
46
46
  # @param span_id [String]
47
47
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
@@ -126,7 +126,7 @@ end
126
126
  Vellum::NodeExecutionInitiatedBody.validate_raw(obj: obj.body)
127
127
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
128
128
  obj.timestamp.is_a?(DateTime) != false || raise("Passed value for field obj.timestamp is not the expected type, validation failed.")
129
- obj.api_version&.is_a?(String) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
129
+ obj.api_version&.is_a?(Vellum::ApiVersionEnum) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
130
130
  obj.trace_id.is_a?(String) != false || raise("Passed value for field obj.trace_id is not the expected type, validation failed.")
131
131
  obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
132
132
  end
@@ -21,7 +21,7 @@ module Vellum
21
21
  attr_reader :id
22
22
  # @return [DateTime]
23
23
  attr_reader :timestamp
24
- # @return [Vellum::API_VERSION_ENUM]
24
+ # @return [Vellum::ApiVersionEnum]
25
25
  attr_reader :api_version
26
26
  # @return [String]
27
27
  attr_reader :trace_id
@@ -41,7 +41,7 @@ module Vellum
41
41
  # @param body [Vellum::NodeExecutionPausedBody]
42
42
  # @param id [String]
43
43
  # @param timestamp [DateTime]
44
- # @param api_version [Vellum::API_VERSION_ENUM]
44
+ # @param api_version [Vellum::ApiVersionEnum]
45
45
  # @param trace_id [String]
46
46
  # @param span_id [String]
47
47
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
@@ -126,7 +126,7 @@ end
126
126
  Vellum::NodeExecutionPausedBody.validate_raw(obj: obj.body)
127
127
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
128
128
  obj.timestamp.is_a?(DateTime) != false || raise("Passed value for field obj.timestamp is not the expected type, validation failed.")
129
- obj.api_version&.is_a?(String) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
129
+ obj.api_version&.is_a?(Vellum::ApiVersionEnum) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
130
130
  obj.trace_id.is_a?(String) != false || raise("Passed value for field obj.trace_id is not the expected type, validation failed.")
131
131
  obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
132
132
  end
@@ -21,7 +21,7 @@ module Vellum
21
21
  attr_reader :id
22
22
  # @return [DateTime]
23
23
  attr_reader :timestamp
24
- # @return [Vellum::API_VERSION_ENUM]
24
+ # @return [Vellum::ApiVersionEnum]
25
25
  attr_reader :api_version
26
26
  # @return [String]
27
27
  attr_reader :trace_id
@@ -41,7 +41,7 @@ module Vellum
41
41
  # @param body [Vellum::NodeExecutionRejectedBody]
42
42
  # @param id [String]
43
43
  # @param timestamp [DateTime]
44
- # @param api_version [Vellum::API_VERSION_ENUM]
44
+ # @param api_version [Vellum::ApiVersionEnum]
45
45
  # @param trace_id [String]
46
46
  # @param span_id [String]
47
47
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
@@ -126,7 +126,7 @@ end
126
126
  Vellum::NodeExecutionRejectedBody.validate_raw(obj: obj.body)
127
127
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
128
128
  obj.timestamp.is_a?(DateTime) != false || raise("Passed value for field obj.timestamp is not the expected type, validation failed.")
129
- obj.api_version&.is_a?(String) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
129
+ obj.api_version&.is_a?(Vellum::ApiVersionEnum) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
130
130
  obj.trace_id.is_a?(String) != false || raise("Passed value for field obj.trace_id is not the expected type, validation failed.")
131
131
  obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
132
132
  end
@@ -21,7 +21,7 @@ module Vellum
21
21
  attr_reader :id
22
22
  # @return [DateTime]
23
23
  attr_reader :timestamp
24
- # @return [Vellum::API_VERSION_ENUM]
24
+ # @return [Vellum::ApiVersionEnum]
25
25
  attr_reader :api_version
26
26
  # @return [String]
27
27
  attr_reader :trace_id
@@ -41,7 +41,7 @@ module Vellum
41
41
  # @param body [Vellum::NodeExecutionResumedBody]
42
42
  # @param id [String]
43
43
  # @param timestamp [DateTime]
44
- # @param api_version [Vellum::API_VERSION_ENUM]
44
+ # @param api_version [Vellum::ApiVersionEnum]
45
45
  # @param trace_id [String]
46
46
  # @param span_id [String]
47
47
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
@@ -126,7 +126,7 @@ end
126
126
  Vellum::NodeExecutionResumedBody.validate_raw(obj: obj.body)
127
127
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
128
128
  obj.timestamp.is_a?(DateTime) != false || raise("Passed value for field obj.timestamp is not the expected type, validation failed.")
129
- obj.api_version&.is_a?(String) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
129
+ obj.api_version&.is_a?(Vellum::ApiVersionEnum) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
130
130
  obj.trace_id.is_a?(String) != false || raise("Passed value for field obj.trace_id is not the expected type, validation failed.")
131
131
  obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
132
132
  end
@@ -21,7 +21,7 @@ module Vellum
21
21
  attr_reader :id
22
22
  # @return [DateTime]
23
23
  attr_reader :timestamp
24
- # @return [Vellum::API_VERSION_ENUM]
24
+ # @return [Vellum::ApiVersionEnum]
25
25
  attr_reader :api_version
26
26
  # @return [String]
27
27
  attr_reader :trace_id
@@ -41,7 +41,7 @@ module Vellum
41
41
  # @param body [Vellum::NodeExecutionStreamingBody]
42
42
  # @param id [String]
43
43
  # @param timestamp [DateTime]
44
- # @param api_version [Vellum::API_VERSION_ENUM]
44
+ # @param api_version [Vellum::ApiVersionEnum]
45
45
  # @param trace_id [String]
46
46
  # @param span_id [String]
47
47
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
@@ -126,7 +126,7 @@ end
126
126
  Vellum::NodeExecutionStreamingBody.validate_raw(obj: obj.body)
127
127
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
128
128
  obj.timestamp.is_a?(DateTime) != false || raise("Passed value for field obj.timestamp is not the expected type, validation failed.")
129
- obj.api_version&.is_a?(String) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
129
+ obj.api_version&.is_a?(Vellum::ApiVersionEnum) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
130
130
  obj.trace_id.is_a?(String) != false || raise("Passed value for field obj.trace_id is not the expected type, validation failed.")
131
131
  obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
132
132
  end
@@ -8,7 +8,7 @@ module Vellum
8
8
  class ThinkingVellumValue
9
9
  # @return [String]
10
10
  attr_reader :type
11
- # @return [Array<Vellum::StringVellumValue>]
11
+ # @return [Vellum::StringVellumValue]
12
12
  attr_reader :value
13
13
  # @return [OpenStruct] Additional properties unmapped to the current class definition
14
14
  attr_reader :additional_properties
@@ -19,7 +19,7 @@ module Vellum
19
19
  OMIT = Object.new
20
20
 
21
21
  # @param type [String]
22
- # @param value [Array<Vellum::StringVellumValue>]
22
+ # @param value [Vellum::StringVellumValue]
23
23
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
24
24
  # @return [Vellum::ThinkingVellumValue]
25
25
  def initialize(type:, value:, additional_properties: nil)
@@ -36,10 +36,12 @@ module Vellum
36
36
  struct = JSON.parse(json_object, object_class: OpenStruct)
37
37
  parsed_json = JSON.parse(json_object)
38
38
  type = parsed_json["type"]
39
- value = parsed_json["value"]&.map do | item |
40
- item = item.to_json
41
- Vellum::StringVellumValue.from_json(json_object: item)
42
- end
39
+ unless parsed_json["value"].nil?
40
+ value = parsed_json["value"].to_json
41
+ value = Vellum::StringVellumValue.from_json(json_object: value)
42
+ else
43
+ value = nil
44
+ end
43
45
  new(
44
46
  type: type,
45
47
  value: value,
@@ -60,7 +62,7 @@ end
60
62
  # @return [Void]
61
63
  def self.validate_raw(obj:)
62
64
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
63
- obj.value.is_a?(Array) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
65
+ Vellum::StringVellumValue.validate_raw(obj: obj.value)
64
66
  end
65
67
  end
66
68
  end
@@ -8,7 +8,7 @@ module Vellum
8
8
  class ThinkingVellumValueRequest
9
9
  # @return [String]
10
10
  attr_reader :type
11
- # @return [Array<Vellum::StringVellumValueRequest>]
11
+ # @return [Vellum::StringVellumValueRequest]
12
12
  attr_reader :value
13
13
  # @return [OpenStruct] Additional properties unmapped to the current class definition
14
14
  attr_reader :additional_properties
@@ -19,7 +19,7 @@ module Vellum
19
19
  OMIT = Object.new
20
20
 
21
21
  # @param type [String]
22
- # @param value [Array<Vellum::StringVellumValueRequest>]
22
+ # @param value [Vellum::StringVellumValueRequest]
23
23
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
24
24
  # @return [Vellum::ThinkingVellumValueRequest]
25
25
  def initialize(type:, value:, additional_properties: nil)
@@ -36,10 +36,12 @@ module Vellum
36
36
  struct = JSON.parse(json_object, object_class: OpenStruct)
37
37
  parsed_json = JSON.parse(json_object)
38
38
  type = parsed_json["type"]
39
- value = parsed_json["value"]&.map do | item |
40
- item = item.to_json
41
- Vellum::StringVellumValueRequest.from_json(json_object: item)
42
- end
39
+ unless parsed_json["value"].nil?
40
+ value = parsed_json["value"].to_json
41
+ value = Vellum::StringVellumValueRequest.from_json(json_object: value)
42
+ else
43
+ value = nil
44
+ end
43
45
  new(
44
46
  type: type,
45
47
  value: value,
@@ -60,7 +62,7 @@ end
60
62
  # @return [Void]
61
63
  def self.validate_raw(obj:)
62
64
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
63
- obj.value.is_a?(Array) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
65
+ Vellum::StringVellumValueRequest.validate_raw(obj: obj.value)
64
66
  end
65
67
  end
66
68
  end
@@ -35,6 +35,8 @@ module Vellum
35
35
  attr_reader :usage_results
36
36
  # @return [Array<Vellum::VellumSpan>]
37
37
  attr_reader :spans
38
+ # @return [Hash{String => Object}]
39
+ attr_reader :state
38
40
  # @return [OpenStruct] Additional properties unmapped to the current class definition
39
41
  attr_reader :additional_properties
40
42
  # @return [Object]
@@ -54,9 +56,10 @@ module Vellum
54
56
  # @param metric_results [Array<Vellum::WorkflowExecutionViewOnlineEvalMetricResult>]
55
57
  # @param usage_results [Array<Vellum::WorkflowExecutionUsageResult>]
56
58
  # @param spans [Array<Vellum::VellumSpan>]
59
+ # @param state [Hash{String => Object}]
57
60
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
58
61
  # @return [Vellum::WorkflowEventExecutionRead]
59
- def initialize(span_id:, parent_context: OMIT, start:, end_: OMIT, inputs:, outputs:, error: OMIT, latest_actual: OMIT, metric_results:, usage_results: OMIT, spans:, additional_properties: nil)
62
+ def initialize(span_id:, parent_context: OMIT, start:, end_: OMIT, inputs:, outputs:, error: OMIT, latest_actual: OMIT, metric_results:, usage_results: OMIT, spans:, state: OMIT, additional_properties: nil)
60
63
  @span_id = span_id
61
64
  @parent_context = parent_context if parent_context != OMIT
62
65
  @start = start
@@ -68,8 +71,9 @@ module Vellum
68
71
  @metric_results = metric_results
69
72
  @usage_results = usage_results if usage_results != OMIT
70
73
  @spans = spans
74
+ @state = state if state != OMIT
71
75
  @additional_properties = additional_properties
72
- @_field_set = { "span_id": span_id, "parent_context": parent_context, "start": start, "end": end_, "inputs": inputs, "outputs": outputs, "error": error, "latest_actual": latest_actual, "metric_results": metric_results, "usage_results": usage_results, "spans": spans }.reject do | _k, v |
76
+ @_field_set = { "span_id": span_id, "parent_context": parent_context, "start": start, "end": end_, "inputs": inputs, "outputs": outputs, "error": error, "latest_actual": latest_actual, "metric_results": metric_results, "usage_results": usage_results, "spans": spans, "state": state }.reject do | _k, v |
73
77
  v == OMIT
74
78
  end
75
79
  end
@@ -129,6 +133,7 @@ end
129
133
  item = item.to_json
130
134
  Vellum::VellumSpan.from_json(json_object: item)
131
135
  end
136
+ state = parsed_json["state"]
132
137
  new(
133
138
  span_id: span_id,
134
139
  parent_context: parent_context,
@@ -141,6 +146,7 @@ end
141
146
  metric_results: metric_results,
142
147
  usage_results: usage_results,
143
148
  spans: spans,
149
+ state: state,
144
150
  additional_properties: struct
145
151
  )
146
152
  end
@@ -168,6 +174,7 @@ end
168
174
  obj.metric_results.is_a?(Array) != false || raise("Passed value for field obj.metric_results is not the expected type, validation failed.")
169
175
  obj.usage_results&.is_a?(Array) != false || raise("Passed value for field obj.usage_results is not the expected type, validation failed.")
170
176
  obj.spans.is_a?(Array) != false || raise("Passed value for field obj.spans is not the expected type, validation failed.")
177
+ obj.state&.is_a?(Hash) != false || raise("Passed value for field obj.state is not the expected type, validation failed.")
171
178
  end
172
179
  end
173
180
  end
@@ -21,7 +21,7 @@ module Vellum
21
21
  attr_reader :id
22
22
  # @return [DateTime]
23
23
  attr_reader :timestamp
24
- # @return [Vellum::API_VERSION_ENUM]
24
+ # @return [Vellum::ApiVersionEnum]
25
25
  attr_reader :api_version
26
26
  # @return [String]
27
27
  attr_reader :trace_id
@@ -41,7 +41,7 @@ module Vellum
41
41
  # @param body [Vellum::WorkflowExecutionFulfilledBody]
42
42
  # @param id [String]
43
43
  # @param timestamp [DateTime]
44
- # @param api_version [Vellum::API_VERSION_ENUM]
44
+ # @param api_version [Vellum::ApiVersionEnum]
45
45
  # @param trace_id [String]
46
46
  # @param span_id [String]
47
47
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
@@ -126,7 +126,7 @@ end
126
126
  Vellum::WorkflowExecutionFulfilledBody.validate_raw(obj: obj.body)
127
127
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
128
128
  obj.timestamp.is_a?(DateTime) != false || raise("Passed value for field obj.timestamp is not the expected type, validation failed.")
129
- obj.api_version&.is_a?(String) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
129
+ obj.api_version&.is_a?(Vellum::ApiVersionEnum) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
130
130
  obj.trace_id.is_a?(String) != false || raise("Passed value for field obj.trace_id is not the expected type, validation failed.")
131
131
  obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
132
132
  end
@@ -21,7 +21,7 @@ module Vellum
21
21
  attr_reader :id
22
22
  # @return [DateTime]
23
23
  attr_reader :timestamp
24
- # @return [Vellum::API_VERSION_ENUM]
24
+ # @return [Vellum::ApiVersionEnum]
25
25
  attr_reader :api_version
26
26
  # @return [String]
27
27
  attr_reader :trace_id
@@ -41,7 +41,7 @@ module Vellum
41
41
  # @param body [Vellum::WorkflowExecutionInitiatedBody]
42
42
  # @param id [String]
43
43
  # @param timestamp [DateTime]
44
- # @param api_version [Vellum::API_VERSION_ENUM]
44
+ # @param api_version [Vellum::ApiVersionEnum]
45
45
  # @param trace_id [String]
46
46
  # @param span_id [String]
47
47
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
@@ -126,7 +126,7 @@ end
126
126
  Vellum::WorkflowExecutionInitiatedBody.validate_raw(obj: obj.body)
127
127
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
128
128
  obj.timestamp.is_a?(DateTime) != false || raise("Passed value for field obj.timestamp is not the expected type, validation failed.")
129
- obj.api_version&.is_a?(String) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
129
+ obj.api_version&.is_a?(Vellum::ApiVersionEnum) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
130
130
  obj.trace_id.is_a?(String) != false || raise("Passed value for field obj.trace_id is not the expected type, validation failed.")
131
131
  obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
132
132
  end
@@ -21,7 +21,7 @@ module Vellum
21
21
  attr_reader :id
22
22
  # @return [DateTime]
23
23
  attr_reader :timestamp
24
- # @return [Vellum::API_VERSION_ENUM]
24
+ # @return [Vellum::ApiVersionEnum]
25
25
  attr_reader :api_version
26
26
  # @return [String]
27
27
  attr_reader :trace_id
@@ -41,7 +41,7 @@ module Vellum
41
41
  # @param body [Vellum::WorkflowExecutionPausedBody]
42
42
  # @param id [String]
43
43
  # @param timestamp [DateTime]
44
- # @param api_version [Vellum::API_VERSION_ENUM]
44
+ # @param api_version [Vellum::ApiVersionEnum]
45
45
  # @param trace_id [String]
46
46
  # @param span_id [String]
47
47
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
@@ -126,7 +126,7 @@ end
126
126
  Vellum::WorkflowExecutionPausedBody.validate_raw(obj: obj.body)
127
127
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
128
128
  obj.timestamp.is_a?(DateTime) != false || raise("Passed value for field obj.timestamp is not the expected type, validation failed.")
129
- obj.api_version&.is_a?(String) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
129
+ obj.api_version&.is_a?(Vellum::ApiVersionEnum) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
130
130
  obj.trace_id.is_a?(String) != false || raise("Passed value for field obj.trace_id is not the expected type, validation failed.")
131
131
  obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
132
132
  end
@@ -21,7 +21,7 @@ module Vellum
21
21
  attr_reader :id
22
22
  # @return [DateTime]
23
23
  attr_reader :timestamp
24
- # @return [Vellum::API_VERSION_ENUM]
24
+ # @return [Vellum::ApiVersionEnum]
25
25
  attr_reader :api_version
26
26
  # @return [String]
27
27
  attr_reader :trace_id
@@ -41,7 +41,7 @@ module Vellum
41
41
  # @param body [Vellum::WorkflowExecutionRejectedBody]
42
42
  # @param id [String]
43
43
  # @param timestamp [DateTime]
44
- # @param api_version [Vellum::API_VERSION_ENUM]
44
+ # @param api_version [Vellum::ApiVersionEnum]
45
45
  # @param trace_id [String]
46
46
  # @param span_id [String]
47
47
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
@@ -126,7 +126,7 @@ end
126
126
  Vellum::WorkflowExecutionRejectedBody.validate_raw(obj: obj.body)
127
127
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
128
128
  obj.timestamp.is_a?(DateTime) != false || raise("Passed value for field obj.timestamp is not the expected type, validation failed.")
129
- obj.api_version&.is_a?(String) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
129
+ obj.api_version&.is_a?(Vellum::ApiVersionEnum) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
130
130
  obj.trace_id.is_a?(String) != false || raise("Passed value for field obj.trace_id is not the expected type, validation failed.")
131
131
  obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
132
132
  end
@@ -21,7 +21,7 @@ module Vellum
21
21
  attr_reader :id
22
22
  # @return [DateTime]
23
23
  attr_reader :timestamp
24
- # @return [Vellum::API_VERSION_ENUM]
24
+ # @return [Vellum::ApiVersionEnum]
25
25
  attr_reader :api_version
26
26
  # @return [String]
27
27
  attr_reader :trace_id
@@ -41,7 +41,7 @@ module Vellum
41
41
  # @param body [Vellum::WorkflowExecutionResumedBody]
42
42
  # @param id [String]
43
43
  # @param timestamp [DateTime]
44
- # @param api_version [Vellum::API_VERSION_ENUM]
44
+ # @param api_version [Vellum::ApiVersionEnum]
45
45
  # @param trace_id [String]
46
46
  # @param span_id [String]
47
47
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
@@ -126,7 +126,7 @@ end
126
126
  Vellum::WorkflowExecutionResumedBody.validate_raw(obj: obj.body)
127
127
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
128
128
  obj.timestamp.is_a?(DateTime) != false || raise("Passed value for field obj.timestamp is not the expected type, validation failed.")
129
- obj.api_version&.is_a?(String) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
129
+ obj.api_version&.is_a?(Vellum::ApiVersionEnum) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
130
130
  obj.trace_id.is_a?(String) != false || raise("Passed value for field obj.trace_id is not the expected type, validation failed.")
131
131
  obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
132
132
  end
@@ -21,7 +21,7 @@ module Vellum
21
21
  attr_reader :id
22
22
  # @return [DateTime]
23
23
  attr_reader :timestamp
24
- # @return [Vellum::API_VERSION_ENUM]
24
+ # @return [Vellum::ApiVersionEnum]
25
25
  attr_reader :api_version
26
26
  # @return [String]
27
27
  attr_reader :trace_id
@@ -41,7 +41,7 @@ module Vellum
41
41
  # @param body [Vellum::WorkflowExecutionSnapshottedBody]
42
42
  # @param id [String]
43
43
  # @param timestamp [DateTime]
44
- # @param api_version [Vellum::API_VERSION_ENUM]
44
+ # @param api_version [Vellum::ApiVersionEnum]
45
45
  # @param trace_id [String]
46
46
  # @param span_id [String]
47
47
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
@@ -126,7 +126,7 @@ end
126
126
  Vellum::WorkflowExecutionSnapshottedBody.validate_raw(obj: obj.body)
127
127
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
128
128
  obj.timestamp.is_a?(DateTime) != false || raise("Passed value for field obj.timestamp is not the expected type, validation failed.")
129
- obj.api_version&.is_a?(String) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
129
+ obj.api_version&.is_a?(Vellum::ApiVersionEnum) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
130
130
  obj.trace_id.is_a?(String) != false || raise("Passed value for field obj.trace_id is not the expected type, validation failed.")
131
131
  obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
132
132
  end
@@ -21,7 +21,7 @@ module Vellum
21
21
  attr_reader :id
22
22
  # @return [DateTime]
23
23
  attr_reader :timestamp
24
- # @return [Vellum::API_VERSION_ENUM]
24
+ # @return [Vellum::ApiVersionEnum]
25
25
  attr_reader :api_version
26
26
  # @return [String]
27
27
  attr_reader :trace_id
@@ -41,7 +41,7 @@ module Vellum
41
41
  # @param body [Vellum::WorkflowExecutionStreamingBody]
42
42
  # @param id [String]
43
43
  # @param timestamp [DateTime]
44
- # @param api_version [Vellum::API_VERSION_ENUM]
44
+ # @param api_version [Vellum::ApiVersionEnum]
45
45
  # @param trace_id [String]
46
46
  # @param span_id [String]
47
47
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
@@ -126,7 +126,7 @@ end
126
126
  Vellum::WorkflowExecutionStreamingBody.validate_raw(obj: obj.body)
127
127
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
128
128
  obj.timestamp.is_a?(DateTime) != false || raise("Passed value for field obj.timestamp is not the expected type, validation failed.")
129
- obj.api_version&.is_a?(String) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
129
+ obj.api_version&.is_a?(Vellum::ApiVersionEnum) != false || raise("Passed value for field obj.api_version is not the expected type, validation failed.")
130
130
  obj.trace_id.is_a?(String) != false || raise("Passed value for field obj.trace_id is not the expected type, validation failed.")
131
131
  obj.span_id.is_a?(String) != false || raise("Passed value for field obj.span_id is not the expected type, validation failed.")
132
132
  end
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: 0.14.86
4
+ version: 0.14.88
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vellum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-07-10 00:00:00.000000000 Z
11
+ date: 2025-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday