vellum_ai 0.14.85 → 0.14.87

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: 75df70d8ec75358bfe64ebbd67a06bd5f73c2d5aabc5b919894ad98a16165396
4
- data.tar.gz: 2aa3819d91ab0ec07b4e75cfd58d6beb1d24431324ff5143e5e5288e4cdbdc17
3
+ metadata.gz: 80b46bd5f6028e75e13c46b5c4935766d06071ca1e4d188d51497ace768117c8
4
+ data.tar.gz: 744b5fac1f6e405c7598bcae829864847b1a180e1cb1fba1a4c9f997cbdccf8b
5
5
  SHA512:
6
- metadata.gz: f9110c23cbfec251fee1640ddfc087fbc76d3ba97c2e6c7b7c3a1cb308231d927135959a696648ce52b874a43ccc593ee4031ee2df040fb78e0e7802a3e1834b
7
- data.tar.gz: 84651d44058024d3d02a6f17a6a516ba2570b7a9fbe434b8ccfbc2af4ca006346667888a38f2f7e06cc21fd19c8c832e01f6bea2a1e880da2bd25d16f8dc2b8f
6
+ metadata.gz: 9e7a1bba1166681e5a0b17da9ec2aaee1d824fc22698e31d9cb885276e54202c8f5bede289a071139235050f7b031411b7cadc8a07fd11b205d2f755dc532464
7
+ data.tar.gz: 76e502b13d50d78f9534ed00879ed76a7c9643d529ba49320781c99b1b5a9f8e7db58e50e67a4cbda226735566d9aa785d2f899e72a161d9ed4cda2db4b7a2e4
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.85' }
53
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '0.14.87' }
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.85' }
99
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '0.14.87' }
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
@@ -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
@@ -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.85
4
+ version: 0.14.87
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-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday