vellum_ai 1.3.7 → 1.3.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26259e732727a5df9cdb7bc3ec51f5581c280bf3986ebb8afab61a9ece520b41
|
4
|
+
data.tar.gz: f99bafd15c4f1ac12c1bab6b8eb7d73abac47cfded0593af496ce4352e831534
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73437cb2f4154e0404bdf3e715b15cc0dbe66093e3be887c6e329c98f41900c248bad8c7e09b8ff4837fbe74363f9b11c631e8322badc17ead5b51ff71771082
|
7
|
+
data.tar.gz: 9348975f773b042f8840fc878a8bdd15567766da639bce1b36e8d453dd2b5b5e5cdce85ec47456836703ad4e90673590e193c69a21cb9b690dc9408629204cdd
|
data/lib/requests.rb
CHANGED
@@ -56,7 +56,7 @@ end
|
|
56
56
|
end
|
57
57
|
# @return [Hash{String => String}]
|
58
58
|
def get_headers
|
59
|
-
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.3.
|
59
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.3.8' }
|
60
60
|
headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
|
61
61
|
headers
|
62
62
|
end
|
@@ -107,7 +107,7 @@ end
|
|
107
107
|
end
|
108
108
|
# @return [Hash{String => String}]
|
109
109
|
def get_headers
|
110
|
-
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.3.
|
110
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.3.8' }
|
111
111
|
headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
|
112
112
|
headers
|
113
113
|
end
|
@@ -10,6 +10,8 @@ module Vellum
|
|
10
10
|
attr_reader :node_definition
|
11
11
|
# @return [Vellum::VellumSdkError]
|
12
12
|
attr_reader :error
|
13
|
+
# @return [String]
|
14
|
+
attr_reader :stacktrace
|
13
15
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
14
16
|
attr_reader :additional_properties
|
15
17
|
# @return [Object]
|
@@ -20,13 +22,17 @@ module Vellum
|
|
20
22
|
|
21
23
|
# @param node_definition [Vellum::VellumCodeResourceDefinition]
|
22
24
|
# @param error [Vellum::VellumSdkError]
|
25
|
+
# @param stacktrace [String]
|
23
26
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
24
27
|
# @return [Vellum::NodeExecutionRejectedBody]
|
25
|
-
def initialize(node_definition:, error:, additional_properties: nil)
|
28
|
+
def initialize(node_definition:, error:, stacktrace: OMIT, additional_properties: nil)
|
26
29
|
@node_definition = node_definition
|
27
30
|
@error = error
|
31
|
+
@stacktrace = stacktrace if stacktrace != OMIT
|
28
32
|
@additional_properties = additional_properties
|
29
|
-
@_field_set = { "node_definition": node_definition, "error": error }
|
33
|
+
@_field_set = { "node_definition": node_definition, "error": error, "stacktrace": stacktrace }.reject do | _k, v |
|
34
|
+
v == OMIT
|
35
|
+
end
|
30
36
|
end
|
31
37
|
# Deserialize a JSON object to an instance of NodeExecutionRejectedBody
|
32
38
|
#
|
@@ -47,9 +53,11 @@ module Vellum
|
|
47
53
|
else
|
48
54
|
error = nil
|
49
55
|
end
|
56
|
+
stacktrace = parsed_json["stacktrace"]
|
50
57
|
new(
|
51
58
|
node_definition: node_definition,
|
52
59
|
error: error,
|
60
|
+
stacktrace: stacktrace,
|
53
61
|
additional_properties: struct
|
54
62
|
)
|
55
63
|
end
|
@@ -68,6 +76,7 @@ module Vellum
|
|
68
76
|
def self.validate_raw(obj:)
|
69
77
|
Vellum::VellumCodeResourceDefinition.validate_raw(obj: obj.node_definition)
|
70
78
|
Vellum::VellumSdkError.validate_raw(obj: obj.error)
|
79
|
+
obj.stacktrace&.is_a?(String) != false || raise("Passed value for field obj.stacktrace is not the expected type, validation failed.")
|
71
80
|
end
|
72
81
|
end
|
73
82
|
end
|
@@ -9,6 +9,8 @@ module Vellum
|
|
9
9
|
attr_reader :message
|
10
10
|
# @return [Vellum::WorkflowExecutionEventErrorCode]
|
11
11
|
attr_reader :code
|
12
|
+
# @return [String]
|
13
|
+
attr_reader :stacktrace
|
12
14
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
13
15
|
attr_reader :additional_properties
|
14
16
|
# @return [Object]
|
@@ -19,13 +21,17 @@ module Vellum
|
|
19
21
|
|
20
22
|
# @param message [String]
|
21
23
|
# @param code [Vellum::WorkflowExecutionEventErrorCode]
|
24
|
+
# @param stacktrace [String]
|
22
25
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
23
26
|
# @return [Vellum::WorkflowEventError]
|
24
|
-
def initialize(message:, code:, additional_properties: nil)
|
27
|
+
def initialize(message:, code:, stacktrace: OMIT, additional_properties: nil)
|
25
28
|
@message = message
|
26
29
|
@code = code
|
30
|
+
@stacktrace = stacktrace if stacktrace != OMIT
|
27
31
|
@additional_properties = additional_properties
|
28
|
-
@_field_set = { "message": message, "code": code }
|
32
|
+
@_field_set = { "message": message, "code": code, "stacktrace": stacktrace }.reject do | _k, v |
|
33
|
+
v == OMIT
|
34
|
+
end
|
29
35
|
end
|
30
36
|
# Deserialize a JSON object to an instance of WorkflowEventError
|
31
37
|
#
|
@@ -36,9 +42,11 @@ module Vellum
|
|
36
42
|
parsed_json = JSON.parse(json_object)
|
37
43
|
message = parsed_json["message"]
|
38
44
|
code = parsed_json["code"]
|
45
|
+
stacktrace = parsed_json["stacktrace"]
|
39
46
|
new(
|
40
47
|
message: message,
|
41
48
|
code: code,
|
49
|
+
stacktrace: stacktrace,
|
42
50
|
additional_properties: struct
|
43
51
|
)
|
44
52
|
end
|
@@ -57,6 +65,7 @@ module Vellum
|
|
57
65
|
def self.validate_raw(obj:)
|
58
66
|
obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
59
67
|
obj.code.is_a?(Vellum::WorkflowExecutionEventErrorCode) != false || raise("Passed value for field obj.code is not the expected type, validation failed.")
|
68
|
+
obj.stacktrace&.is_a?(String) != false || raise("Passed value for field obj.stacktrace is not the expected type, validation failed.")
|
60
69
|
end
|
61
70
|
end
|
62
71
|
end
|
@@ -10,6 +10,8 @@ module Vellum
|
|
10
10
|
attr_reader :workflow_definition
|
11
11
|
# @return [Vellum::VellumSdkError]
|
12
12
|
attr_reader :error
|
13
|
+
# @return [String]
|
14
|
+
attr_reader :stacktrace
|
13
15
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
14
16
|
attr_reader :additional_properties
|
15
17
|
# @return [Object]
|
@@ -20,13 +22,17 @@ module Vellum
|
|
20
22
|
|
21
23
|
# @param workflow_definition [Vellum::VellumCodeResourceDefinition]
|
22
24
|
# @param error [Vellum::VellumSdkError]
|
25
|
+
# @param stacktrace [String]
|
23
26
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
24
27
|
# @return [Vellum::WorkflowExecutionRejectedBody]
|
25
|
-
def initialize(workflow_definition:, error:, additional_properties: nil)
|
28
|
+
def initialize(workflow_definition:, error:, stacktrace: OMIT, additional_properties: nil)
|
26
29
|
@workflow_definition = workflow_definition
|
27
30
|
@error = error
|
31
|
+
@stacktrace = stacktrace if stacktrace != OMIT
|
28
32
|
@additional_properties = additional_properties
|
29
|
-
@_field_set = { "workflow_definition": workflow_definition, "error": error }
|
33
|
+
@_field_set = { "workflow_definition": workflow_definition, "error": error, "stacktrace": stacktrace }.reject do | _k, v |
|
34
|
+
v == OMIT
|
35
|
+
end
|
30
36
|
end
|
31
37
|
# Deserialize a JSON object to an instance of WorkflowExecutionRejectedBody
|
32
38
|
#
|
@@ -47,9 +53,11 @@ module Vellum
|
|
47
53
|
else
|
48
54
|
error = nil
|
49
55
|
end
|
56
|
+
stacktrace = parsed_json["stacktrace"]
|
50
57
|
new(
|
51
58
|
workflow_definition: workflow_definition,
|
52
59
|
error: error,
|
60
|
+
stacktrace: stacktrace,
|
53
61
|
additional_properties: struct
|
54
62
|
)
|
55
63
|
end
|
@@ -68,6 +76,7 @@ module Vellum
|
|
68
76
|
def self.validate_raw(obj:)
|
69
77
|
Vellum::VellumCodeResourceDefinition.validate_raw(obj: obj.workflow_definition)
|
70
78
|
Vellum::VellumSdkError.validate_raw(obj: obj.error)
|
79
|
+
obj.stacktrace&.is_a?(String) != false || raise("Passed value for field obj.stacktrace is not the expected type, validation failed.")
|
71
80
|
end
|
72
81
|
end
|
73
82
|
end
|