vellum_ai 1.12.10 → 1.12.11
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: da7a03f01e2de350ca42be0bdf06f24e061bc4733bd93d8c718ab38581c59254
|
|
4
|
+
data.tar.gz: f823104a1537d53bec8301559ba146211e39df776eca4c2cafe07e97b9f90206
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a31adda123e076e267d304da02dcc6d2e90c5340dd475172b1806da00f83a90a7cd4c09596eb4b96d0ed5710acfcb178fc006808354d0305ed768b3432ae27f
|
|
7
|
+
data.tar.gz: 0e2467731e8649922af303fa63b7b0f7742c4e8c12408cc958a9f1b6d6ad95201abecd64dc14a5575c23b3004bd9f74f2fe5028decf76a81a0ef1a5f135462d0
|
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.12.
|
|
59
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.12.11' }
|
|
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.12.
|
|
110
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.12.11' }
|
|
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
|
data/lib/types_export.rb
CHANGED
|
@@ -68,6 +68,7 @@ require_relative "vellum_ai/types/chat_message_content_request"
|
|
|
68
68
|
require_relative "vellum_ai/types/chat_message_prompt_block"
|
|
69
69
|
require_relative "vellum_ai/types/chat_message_request"
|
|
70
70
|
require_relative "vellum_ai/types/chat_message_role"
|
|
71
|
+
require_relative "vellum_ai/types/check_workflow_execution_status_error"
|
|
71
72
|
require_relative "vellum_ai/types/check_workflow_execution_status_response"
|
|
72
73
|
require_relative "vellum_ai/types/code_execution_node_array_result"
|
|
73
74
|
require_relative "vellum_ai/types/code_execution_node_chat_history_result"
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
require_relative "workflow_execution_event_error_code"
|
|
3
|
+
require "ostruct"
|
|
4
|
+
require "json"
|
|
5
|
+
|
|
6
|
+
module Vellum
|
|
7
|
+
class CheckWorkflowExecutionStatusError
|
|
8
|
+
# @return [String]
|
|
9
|
+
attr_reader :message
|
|
10
|
+
# @return [Vellum::WorkflowExecutionEventErrorCode]
|
|
11
|
+
attr_reader :code
|
|
12
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
13
|
+
attr_reader :additional_properties
|
|
14
|
+
# @return [Object]
|
|
15
|
+
attr_reader :_field_set
|
|
16
|
+
protected :_field_set
|
|
17
|
+
|
|
18
|
+
OMIT = Object.new
|
|
19
|
+
|
|
20
|
+
# @param message [String]
|
|
21
|
+
# @param code [Vellum::WorkflowExecutionEventErrorCode]
|
|
22
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
23
|
+
# @return [Vellum::CheckWorkflowExecutionStatusError]
|
|
24
|
+
def initialize(message: OMIT, code: OMIT, additional_properties: nil)
|
|
25
|
+
@message = message if message != OMIT
|
|
26
|
+
@code = code if code != OMIT
|
|
27
|
+
@additional_properties = additional_properties
|
|
28
|
+
@_field_set = { "message": message, "code": code }.reject do | _k, v |
|
|
29
|
+
v == OMIT
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
# Deserialize a JSON object to an instance of CheckWorkflowExecutionStatusError
|
|
33
|
+
#
|
|
34
|
+
# @param json_object [String]
|
|
35
|
+
# @return [Vellum::CheckWorkflowExecutionStatusError]
|
|
36
|
+
def self.from_json(json_object:)
|
|
37
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
38
|
+
parsed_json = JSON.parse(json_object)
|
|
39
|
+
message = parsed_json["message"]
|
|
40
|
+
code = parsed_json["code"]
|
|
41
|
+
new(
|
|
42
|
+
message: message,
|
|
43
|
+
code: code,
|
|
44
|
+
additional_properties: struct
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
# Serialize an instance of CheckWorkflowExecutionStatusError to a JSON object
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
def to_json
|
|
51
|
+
@_field_set&.to_json
|
|
52
|
+
end
|
|
53
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
54
|
+
# hash and check each fields type against the current object's property
|
|
55
|
+
# definitions.
|
|
56
|
+
#
|
|
57
|
+
# @param obj [Object]
|
|
58
|
+
# @return [Void]
|
|
59
|
+
def self.validate_raw(obj:)
|
|
60
|
+
obj.message&.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
|
61
|
+
obj.code&.is_a?(Vellum::WorkflowExecutionEventErrorCode) != false || raise("Passed value for field obj.code is not the expected type, validation failed.")
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
require_relative "workflow_result_event_state"
|
|
3
|
+
require_relative "check_workflow_execution_status_error"
|
|
3
4
|
require "ostruct"
|
|
4
5
|
require "json"
|
|
5
6
|
|
|
@@ -10,6 +11,8 @@ module Vellum
|
|
|
10
11
|
attr_reader :status
|
|
11
12
|
# @return [Hash{String => Object}]
|
|
12
13
|
attr_reader :outputs
|
|
14
|
+
# @return [Vellum::CheckWorkflowExecutionStatusError]
|
|
15
|
+
attr_reader :error
|
|
13
16
|
# @return [String]
|
|
14
17
|
attr_reader :execution_id
|
|
15
18
|
# @return [String]
|
|
@@ -24,17 +27,19 @@ module Vellum
|
|
|
24
27
|
|
|
25
28
|
# @param status [Vellum::WorkflowResultEventState]
|
|
26
29
|
# @param outputs [Hash{String => Object}]
|
|
30
|
+
# @param error [Vellum::CheckWorkflowExecutionStatusError]
|
|
27
31
|
# @param execution_id [String]
|
|
28
32
|
# @param execution_detail_url [String]
|
|
29
33
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
30
34
|
# @return [Vellum::CheckWorkflowExecutionStatusResponse]
|
|
31
|
-
def initialize(status:, outputs: OMIT, execution_id:, execution_detail_url: OMIT, additional_properties: nil)
|
|
35
|
+
def initialize(status:, outputs: OMIT, error: OMIT, execution_id:, execution_detail_url: OMIT, additional_properties: nil)
|
|
32
36
|
@status = status
|
|
33
37
|
@outputs = outputs if outputs != OMIT
|
|
38
|
+
@error = error if error != OMIT
|
|
34
39
|
@execution_id = execution_id
|
|
35
40
|
@execution_detail_url = execution_detail_url if execution_detail_url != OMIT
|
|
36
41
|
@additional_properties = additional_properties
|
|
37
|
-
@_field_set = { "status": status, "outputs": outputs, "execution_id": execution_id, "execution_detail_url": execution_detail_url }.reject do | _k, v |
|
|
42
|
+
@_field_set = { "status": status, "outputs": outputs, "error": error, "execution_id": execution_id, "execution_detail_url": execution_detail_url }.reject do | _k, v |
|
|
38
43
|
v == OMIT
|
|
39
44
|
end
|
|
40
45
|
end
|
|
@@ -47,11 +52,18 @@ end
|
|
|
47
52
|
parsed_json = JSON.parse(json_object)
|
|
48
53
|
status = parsed_json["status"]
|
|
49
54
|
outputs = parsed_json["outputs"]
|
|
55
|
+
unless parsed_json["error"].nil?
|
|
56
|
+
error = parsed_json["error"].to_json
|
|
57
|
+
error = Vellum::CheckWorkflowExecutionStatusError.from_json(json_object: error)
|
|
58
|
+
else
|
|
59
|
+
error = nil
|
|
60
|
+
end
|
|
50
61
|
execution_id = parsed_json["execution_id"]
|
|
51
62
|
execution_detail_url = parsed_json["execution_detail_url"]
|
|
52
63
|
new(
|
|
53
64
|
status: status,
|
|
54
65
|
outputs: outputs,
|
|
66
|
+
error: error,
|
|
55
67
|
execution_id: execution_id,
|
|
56
68
|
execution_detail_url: execution_detail_url,
|
|
57
69
|
additional_properties: struct
|
|
@@ -72,6 +84,7 @@ end
|
|
|
72
84
|
def self.validate_raw(obj:)
|
|
73
85
|
obj.status.is_a?(Vellum::WorkflowResultEventState) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
|
|
74
86
|
obj.outputs&.is_a?(Hash) != false || raise("Passed value for field obj.outputs is not the expected type, validation failed.")
|
|
87
|
+
obj.error.nil? || Vellum::CheckWorkflowExecutionStatusError.validate_raw(obj: obj.error)
|
|
75
88
|
obj.execution_id.is_a?(String) != false || raise("Passed value for field obj.execution_id is not the expected type, validation failed.")
|
|
76
89
|
obj.execution_detail_url&.is_a?(String) != false || raise("Passed value for field obj.execution_detail_url is not the expected type, validation failed.")
|
|
77
90
|
end
|
|
@@ -77,6 +77,7 @@ module Vellum
|
|
|
77
77
|
# * `SHARE_POINT` - SharePoint
|
|
78
78
|
# * `SHOPIFY` - Shopify
|
|
79
79
|
# * `SHORTCUT` - Shortcut
|
|
80
|
+
# * `SLACKBOT` - Slackbot
|
|
80
81
|
# * `SPOTIFY` - Spotify
|
|
81
82
|
# * `STRIPE` - Stripe
|
|
82
83
|
# * `SUPABASE` - Supabase
|
|
@@ -178,6 +179,7 @@ module Vellum
|
|
|
178
179
|
SHARE_POINT = "SHARE_POINT"
|
|
179
180
|
SHOPIFY = "SHOPIFY"
|
|
180
181
|
SHORTCUT = "SHORTCUT"
|
|
182
|
+
SLACKBOT = "SLACKBOT"
|
|
181
183
|
SPOTIFY = "SPOTIFY"
|
|
182
184
|
STRIPE = "STRIPE"
|
|
183
185
|
SUPABASE = "SUPABASE"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vellum_ai
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.12.
|
|
4
|
+
version: 1.12.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vellum
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -203,6 +203,7 @@ files:
|
|
|
203
203
|
- lib/vellum_ai/types/chat_message_prompt_block.rb
|
|
204
204
|
- lib/vellum_ai/types/chat_message_request.rb
|
|
205
205
|
- lib/vellum_ai/types/chat_message_role.rb
|
|
206
|
+
- lib/vellum_ai/types/check_workflow_execution_status_error.rb
|
|
206
207
|
- lib/vellum_ai/types/check_workflow_execution_status_response.rb
|
|
207
208
|
- lib/vellum_ai/types/code_execution_node_array_result.rb
|
|
208
209
|
- lib/vellum_ai/types/code_execution_node_chat_history_result.rb
|