vellum_ai 0.14.86 → 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 +4 -4
- data/lib/requests.rb +2 -2
- data/lib/vellum_ai/types/api_version_enum.rb +8 -1
- data/lib/vellum_ai/types/execution_thinking_vellum_value.rb +9 -7
- data/lib/vellum_ai/types/node_execution_fulfilled_event.rb +3 -3
- data/lib/vellum_ai/types/node_execution_initiated_event.rb +3 -3
- data/lib/vellum_ai/types/node_execution_paused_event.rb +3 -3
- data/lib/vellum_ai/types/node_execution_rejected_event.rb +3 -3
- data/lib/vellum_ai/types/node_execution_resumed_event.rb +3 -3
- data/lib/vellum_ai/types/node_execution_streaming_event.rb +3 -3
- data/lib/vellum_ai/types/thinking_vellum_value.rb +9 -7
- data/lib/vellum_ai/types/thinking_vellum_value_request.rb +9 -7
- data/lib/vellum_ai/types/workflow_event_execution_read.rb +9 -2
- data/lib/vellum_ai/types/workflow_execution_fulfilled_event.rb +3 -3
- data/lib/vellum_ai/types/workflow_execution_initiated_event.rb +3 -3
- data/lib/vellum_ai/types/workflow_execution_paused_event.rb +3 -3
- data/lib/vellum_ai/types/workflow_execution_rejected_event.rb +3 -3
- data/lib/vellum_ai/types/workflow_execution_resumed_event.rb +3 -3
- data/lib/vellum_ai/types/workflow_execution_snapshotted_event.rb +3 -3
- data/lib/vellum_ai/types/workflow_execution_streaming_event.rb +3 -3
- 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: 80b46bd5f6028e75e13c46b5c4935766d06071ca1e4d188d51497ace768117c8
|
4
|
+
data.tar.gz: 744b5fac1f6e405c7598bcae829864847b1a180e1cb1fba1a4c9f997cbdccf8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
-
|
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 [
|
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 [
|
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
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
-
|
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::
|
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::
|
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?(
|
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::
|
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::
|
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?(
|
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::
|
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::
|
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?(
|
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::
|
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::
|
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?(
|
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::
|
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::
|
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?(
|
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::
|
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::
|
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?(
|
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 [
|
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 [
|
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
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
-
|
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 [
|
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 [
|
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
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
-
|
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::
|
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::
|
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?(
|
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::
|
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::
|
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?(
|
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::
|
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::
|
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?(
|
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::
|
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::
|
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?(
|
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::
|
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::
|
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?(
|
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::
|
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::
|
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?(
|
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::
|
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::
|
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?(
|
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.
|
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-
|
11
|
+
date: 2025-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|