vellum_ai 1.13.4 → 1.13.5
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/types_export.rb +1 -0
- data/lib/vellum_ai/integrations/client.rb +8 -0
- data/lib/vellum_ai/types/composio_execute_tool_request.rb +30 -2
- data/lib/vellum_ai/types/document_document_to_document_index.rb +9 -2
- data/lib/vellum_ai/types/slim_document_document_to_document_index.rb +9 -2
- data/lib/vellum_ai/types/type_checker_enum.rb +14 -0
- data/lib/vellum_ai/workflows/client.rb +15 -4
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a5f2ed49f4e6377a28b8d378449dbcb39156ad73b6f47a0cc91237c2fa551776
|
|
4
|
+
data.tar.gz: 7410fee9118b2013a89d92f3a04748238ad518c94fc1c0bce102d24908af7cf2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b5413bb20ca17f50ddcef6abf184bf60e0f01e65719d2490362c8356fa300c65ef63e928a72029c0367e4661dc577c85ce2e22f276bf3d00730d338c972f5da
|
|
7
|
+
data.tar.gz: 8d9836855116843ae52323a22b3a964ef8d42b7f05dfe98091b416c1d616cc85306583e6cdc033d44d9fec97624af2fc44997e5b5ecb39e8d968dd1b57d21802
|
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.13.
|
|
59
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.13.5' }
|
|
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.13.
|
|
110
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.13.5' }
|
|
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
|
@@ -610,6 +610,7 @@ require_relative "vellum_ai/types/thinking_vellum_value_request"
|
|
|
610
610
|
require_relative "vellum_ai/types/token_overlapping_window_chunker_config"
|
|
611
611
|
require_relative "vellum_ai/types/token_overlapping_window_chunker_config_request"
|
|
612
612
|
require_relative "vellum_ai/types/components_schemas_composio_tool_definition"
|
|
613
|
+
require_relative "vellum_ai/types/type_checker_enum"
|
|
613
614
|
require_relative "vellum_ai/types/unit_enum"
|
|
614
615
|
require_relative "vellum_ai/types/update_active_workspace_response"
|
|
615
616
|
require_relative "vellum_ai/types/upload_document_response"
|
|
@@ -69,6 +69,10 @@ end
|
|
|
69
69
|
# * :provider (String)
|
|
70
70
|
# * :arguments (Hash{String => Object})
|
|
71
71
|
# * :toolkit_version (String)
|
|
72
|
+
# * :integration_name (String)
|
|
73
|
+
# * :integration (String)
|
|
74
|
+
# * :tool_name (String)
|
|
75
|
+
# * :tool (String)
|
|
72
76
|
# @param request_options [Vellum::RequestOptions]
|
|
73
77
|
# @return [Vellum::COMPONENTS_SCHEMAS_COMPOSIO_EXECUTE_TOOL_RESPONSE]
|
|
74
78
|
# @example
|
|
@@ -240,6 +244,10 @@ end
|
|
|
240
244
|
# * :provider (String)
|
|
241
245
|
# * :arguments (Hash{String => Object})
|
|
242
246
|
# * :toolkit_version (String)
|
|
247
|
+
# * :integration_name (String)
|
|
248
|
+
# * :integration (String)
|
|
249
|
+
# * :tool_name (String)
|
|
250
|
+
# * :tool (String)
|
|
243
251
|
# @param request_options [Vellum::RequestOptions]
|
|
244
252
|
# @return [Vellum::COMPONENTS_SCHEMAS_COMPOSIO_EXECUTE_TOOL_RESPONSE]
|
|
245
253
|
# @example
|
|
@@ -11,6 +11,14 @@ module Vellum
|
|
|
11
11
|
attr_reader :arguments
|
|
12
12
|
# @return [String]
|
|
13
13
|
attr_reader :toolkit_version
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_reader :integration_name
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_reader :integration
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_reader :tool_name
|
|
20
|
+
# @return [String]
|
|
21
|
+
attr_reader :tool
|
|
14
22
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
15
23
|
attr_reader :additional_properties
|
|
16
24
|
# @return [Object]
|
|
@@ -22,14 +30,22 @@ module Vellum
|
|
|
22
30
|
# @param provider [String]
|
|
23
31
|
# @param arguments [Hash{String => Object}]
|
|
24
32
|
# @param toolkit_version [String]
|
|
33
|
+
# @param integration_name [String]
|
|
34
|
+
# @param integration [String]
|
|
35
|
+
# @param tool_name [String]
|
|
36
|
+
# @param tool [String]
|
|
25
37
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
26
38
|
# @return [Vellum::ComposioExecuteToolRequest]
|
|
27
|
-
def initialize(provider:, arguments:, toolkit_version: OMIT, additional_properties: nil)
|
|
39
|
+
def initialize(provider:, arguments:, toolkit_version: OMIT, integration_name: OMIT, integration: OMIT, tool_name: OMIT, tool: OMIT, additional_properties: nil)
|
|
28
40
|
@provider = provider
|
|
29
41
|
@arguments = arguments
|
|
30
42
|
@toolkit_version = toolkit_version if toolkit_version != OMIT
|
|
43
|
+
@integration_name = integration_name if integration_name != OMIT
|
|
44
|
+
@integration = integration if integration != OMIT
|
|
45
|
+
@tool_name = tool_name if tool_name != OMIT
|
|
46
|
+
@tool = tool if tool != OMIT
|
|
31
47
|
@additional_properties = additional_properties
|
|
32
|
-
@_field_set = { "provider": provider, "arguments": arguments, "toolkit_version": toolkit_version }.reject do | _k, v |
|
|
48
|
+
@_field_set = { "provider": provider, "arguments": arguments, "toolkit_version": toolkit_version, "integration_name": integration_name, "integration": integration, "tool_name": tool_name, "tool": tool }.reject do | _k, v |
|
|
33
49
|
v == OMIT
|
|
34
50
|
end
|
|
35
51
|
end
|
|
@@ -43,10 +59,18 @@ end
|
|
|
43
59
|
provider = parsed_json["provider"]
|
|
44
60
|
arguments = parsed_json["arguments"]
|
|
45
61
|
toolkit_version = parsed_json["toolkit_version"]
|
|
62
|
+
integration_name = parsed_json["integration_name"]
|
|
63
|
+
integration = parsed_json["integration"]
|
|
64
|
+
tool_name = parsed_json["tool_name"]
|
|
65
|
+
tool = parsed_json["tool"]
|
|
46
66
|
new(
|
|
47
67
|
provider: provider,
|
|
48
68
|
arguments: arguments,
|
|
49
69
|
toolkit_version: toolkit_version,
|
|
70
|
+
integration_name: integration_name,
|
|
71
|
+
integration: integration,
|
|
72
|
+
tool_name: tool_name,
|
|
73
|
+
tool: tool,
|
|
50
74
|
additional_properties: struct
|
|
51
75
|
)
|
|
52
76
|
end
|
|
@@ -66,6 +90,10 @@ end
|
|
|
66
90
|
obj.provider.is_a?(String) != false || raise("Passed value for field obj.provider is not the expected type, validation failed.")
|
|
67
91
|
obj.arguments.is_a?(Hash) != false || raise("Passed value for field obj.arguments is not the expected type, validation failed.")
|
|
68
92
|
obj.toolkit_version&.is_a?(String) != false || raise("Passed value for field obj.toolkit_version is not the expected type, validation failed.")
|
|
93
|
+
obj.integration_name&.is_a?(String) != false || raise("Passed value for field obj.integration_name is not the expected type, validation failed.")
|
|
94
|
+
obj.integration&.is_a?(String) != false || raise("Passed value for field obj.integration is not the expected type, validation failed.")
|
|
95
|
+
obj.tool_name&.is_a?(String) != false || raise("Passed value for field obj.tool_name is not the expected type, validation failed.")
|
|
96
|
+
obj.tool&.is_a?(String) != false || raise("Passed value for field obj.tool is not the expected type, validation failed.")
|
|
69
97
|
end
|
|
70
98
|
end
|
|
71
99
|
end
|
|
@@ -25,6 +25,8 @@ module Vellum
|
|
|
25
25
|
attr_reader :indexing_state
|
|
26
26
|
# @return [String]
|
|
27
27
|
attr_reader :extracted_text_file_url
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_reader :processing_state
|
|
28
30
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
29
31
|
attr_reader :additional_properties
|
|
30
32
|
# @return [Object]
|
|
@@ -46,16 +48,18 @@ module Vellum
|
|
|
46
48
|
# * `INDEXED` - Indexed
|
|
47
49
|
# * `FAILED` - Failed
|
|
48
50
|
# @param extracted_text_file_url [String]
|
|
51
|
+
# @param processing_state [String]
|
|
49
52
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
50
53
|
# @return [Vellum::DocumentDocumentToDocumentIndex]
|
|
51
|
-
def initialize(id:, environment_document_index_id:, document_index_id: OMIT, indexing_state: OMIT, extracted_text_file_url: OMIT, additional_properties: nil)
|
|
54
|
+
def initialize(id:, environment_document_index_id:, document_index_id: OMIT, indexing_state: OMIT, extracted_text_file_url: OMIT, processing_state: OMIT, additional_properties: nil)
|
|
52
55
|
@id = id
|
|
53
56
|
@environment_document_index_id = environment_document_index_id
|
|
54
57
|
@document_index_id = document_index_id if document_index_id != OMIT
|
|
55
58
|
@indexing_state = indexing_state if indexing_state != OMIT
|
|
56
59
|
@extracted_text_file_url = extracted_text_file_url if extracted_text_file_url != OMIT
|
|
60
|
+
@processing_state = processing_state if processing_state != OMIT
|
|
57
61
|
@additional_properties = additional_properties
|
|
58
|
-
@_field_set = { "id": id, "environment_document_index_id": environment_document_index_id, "document_index_id": document_index_id, "indexing_state": indexing_state, "extracted_text_file_url": extracted_text_file_url }.reject do | _k, v |
|
|
62
|
+
@_field_set = { "id": id, "environment_document_index_id": environment_document_index_id, "document_index_id": document_index_id, "indexing_state": indexing_state, "extracted_text_file_url": extracted_text_file_url, "processing_state": processing_state }.reject do | _k, v |
|
|
59
63
|
v == OMIT
|
|
60
64
|
end
|
|
61
65
|
end
|
|
@@ -71,12 +75,14 @@ end
|
|
|
71
75
|
document_index_id = parsed_json["document_index_id"]
|
|
72
76
|
indexing_state = parsed_json["indexing_state"]
|
|
73
77
|
extracted_text_file_url = parsed_json["extracted_text_file_url"]
|
|
78
|
+
processing_state = parsed_json["processing_state"]
|
|
74
79
|
new(
|
|
75
80
|
id: id,
|
|
76
81
|
environment_document_index_id: environment_document_index_id,
|
|
77
82
|
document_index_id: document_index_id,
|
|
78
83
|
indexing_state: indexing_state,
|
|
79
84
|
extracted_text_file_url: extracted_text_file_url,
|
|
85
|
+
processing_state: processing_state,
|
|
80
86
|
additional_properties: struct
|
|
81
87
|
)
|
|
82
88
|
end
|
|
@@ -98,6 +104,7 @@ end
|
|
|
98
104
|
obj.document_index_id&.is_a?(String) != false || raise("Passed value for field obj.document_index_id is not the expected type, validation failed.")
|
|
99
105
|
obj.indexing_state&.is_a?(Vellum::IndexingStateEnum) != false || raise("Passed value for field obj.indexing_state is not the expected type, validation failed.")
|
|
100
106
|
obj.extracted_text_file_url&.is_a?(String) != false || raise("Passed value for field obj.extracted_text_file_url is not the expected type, validation failed.")
|
|
107
|
+
obj.processing_state&.is_a?(String) != false || raise("Passed value for field obj.processing_state is not the expected type, validation failed.")
|
|
101
108
|
end
|
|
102
109
|
end
|
|
103
110
|
end
|
|
@@ -23,6 +23,8 @@ module Vellum
|
|
|
23
23
|
# * `INDEXED` - Indexed
|
|
24
24
|
# * `FAILED` - Failed
|
|
25
25
|
attr_reader :indexing_state
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_reader :processing_state
|
|
26
28
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
27
29
|
attr_reader :additional_properties
|
|
28
30
|
# @return [Object]
|
|
@@ -43,15 +45,17 @@ module Vellum
|
|
|
43
45
|
# * `INDEXING` - Indexing
|
|
44
46
|
# * `INDEXED` - Indexed
|
|
45
47
|
# * `FAILED` - Failed
|
|
48
|
+
# @param processing_state [String]
|
|
46
49
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
47
50
|
# @return [Vellum::SlimDocumentDocumentToDocumentIndex]
|
|
48
|
-
def initialize(id:, environment_document_index_id:, document_index_id: OMIT, indexing_state: OMIT, additional_properties: nil)
|
|
51
|
+
def initialize(id:, environment_document_index_id:, document_index_id: OMIT, indexing_state: OMIT, processing_state: OMIT, additional_properties: nil)
|
|
49
52
|
@id = id
|
|
50
53
|
@environment_document_index_id = environment_document_index_id
|
|
51
54
|
@document_index_id = document_index_id if document_index_id != OMIT
|
|
52
55
|
@indexing_state = indexing_state if indexing_state != OMIT
|
|
56
|
+
@processing_state = processing_state if processing_state != OMIT
|
|
53
57
|
@additional_properties = additional_properties
|
|
54
|
-
@_field_set = { "id": id, "environment_document_index_id": environment_document_index_id, "document_index_id": document_index_id, "indexing_state": indexing_state }.reject do | _k, v |
|
|
58
|
+
@_field_set = { "id": id, "environment_document_index_id": environment_document_index_id, "document_index_id": document_index_id, "indexing_state": indexing_state, "processing_state": processing_state }.reject do | _k, v |
|
|
55
59
|
v == OMIT
|
|
56
60
|
end
|
|
57
61
|
end
|
|
@@ -66,11 +70,13 @@ end
|
|
|
66
70
|
environment_document_index_id = parsed_json["environment_document_index_id"]
|
|
67
71
|
document_index_id = parsed_json["document_index_id"]
|
|
68
72
|
indexing_state = parsed_json["indexing_state"]
|
|
73
|
+
processing_state = parsed_json["processing_state"]
|
|
69
74
|
new(
|
|
70
75
|
id: id,
|
|
71
76
|
environment_document_index_id: environment_document_index_id,
|
|
72
77
|
document_index_id: document_index_id,
|
|
73
78
|
indexing_state: indexing_state,
|
|
79
|
+
processing_state: processing_state,
|
|
74
80
|
additional_properties: struct
|
|
75
81
|
)
|
|
76
82
|
end
|
|
@@ -91,6 +97,7 @@ end
|
|
|
91
97
|
obj.environment_document_index_id.is_a?(String) != false || raise("Passed value for field obj.environment_document_index_id is not the expected type, validation failed.")
|
|
92
98
|
obj.document_index_id&.is_a?(String) != false || raise("Passed value for field obj.document_index_id is not the expected type, validation failed.")
|
|
93
99
|
obj.indexing_state&.is_a?(Vellum::IndexingStateEnum) != false || raise("Passed value for field obj.indexing_state is not the expected type, validation failed.")
|
|
100
|
+
obj.processing_state&.is_a?(String) != false || raise("Passed value for field obj.processing_state is not the expected type, validation failed.")
|
|
94
101
|
end
|
|
95
102
|
end
|
|
96
103
|
end
|
|
@@ -8,6 +8,7 @@ require_relative "../types/dataset_row_push_request"
|
|
|
8
8
|
require_relative "../types/workflow_push_response"
|
|
9
9
|
require_relative "../../core/file_utilities"
|
|
10
10
|
require_relative "../types/runner_config_request"
|
|
11
|
+
require_relative "../types/type_checker_enum"
|
|
11
12
|
require "json"
|
|
12
13
|
require "async"
|
|
13
14
|
require "async"
|
|
@@ -229,6 +230,11 @@ end
|
|
|
229
230
|
# * :sdk_version (String)
|
|
230
231
|
# * :is_deployment_inlining_enabled (Boolean)
|
|
231
232
|
# * :server_version (String)
|
|
233
|
+
# @param type_checker [Vellum::TypeCheckerEnum] Optional type checker to run during serialization. Supported values: mypy,
|
|
234
|
+
# zuban, default.
|
|
235
|
+
# * `mypy` - Mypy
|
|
236
|
+
# * `zuban` - Zuban
|
|
237
|
+
# * `default` - Default
|
|
232
238
|
# @param request_options [Vellum::RequestOptions]
|
|
233
239
|
# @return [Hash{String => Object}]
|
|
234
240
|
# @example
|
|
@@ -238,7 +244,7 @@ end
|
|
|
238
244
|
# api_key: "YOUR_API_KEY"
|
|
239
245
|
# )
|
|
240
246
|
# api.workflows.serialize_workflow_files(files: { "files": {"key":"value"} })
|
|
241
|
-
def serialize_workflow_files(files:, module_: nil, runner_config: nil, request_options: nil)
|
|
247
|
+
def serialize_workflow_files(files:, module_: nil, runner_config: nil, type_checker: nil, request_options: nil)
|
|
242
248
|
response = @request_client.conn.post do | req |
|
|
243
249
|
unless request_options&.timeout_in_seconds.nil?
|
|
244
250
|
req.options.timeout = request_options.timeout_in_seconds
|
|
@@ -255,7 +261,7 @@ end
|
|
|
255
261
|
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
|
256
262
|
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
257
263
|
end
|
|
258
|
-
req.body = { **(request_options&.additional_body_parameters || {}), files: files, module: module_, runner_config: runner_config }.compact
|
|
264
|
+
req.body = { **(request_options&.additional_body_parameters || {}), files: files, module: module_, runner_config: runner_config, type_checker: type_checker }.compact
|
|
259
265
|
req.url "#{@request_client.get_url(environment: Default, request_options: request_options)}/v1/workflows/serialize"
|
|
260
266
|
end
|
|
261
267
|
parsed_json = JSON.parse(response.body)
|
|
@@ -483,6 +489,11 @@ end
|
|
|
483
489
|
# * :sdk_version (String)
|
|
484
490
|
# * :is_deployment_inlining_enabled (Boolean)
|
|
485
491
|
# * :server_version (String)
|
|
492
|
+
# @param type_checker [Vellum::TypeCheckerEnum] Optional type checker to run during serialization. Supported values: mypy,
|
|
493
|
+
# zuban, default.
|
|
494
|
+
# * `mypy` - Mypy
|
|
495
|
+
# * `zuban` - Zuban
|
|
496
|
+
# * `default` - Default
|
|
486
497
|
# @param request_options [Vellum::RequestOptions]
|
|
487
498
|
# @return [Hash{String => Object}]
|
|
488
499
|
# @example
|
|
@@ -492,7 +503,7 @@ end
|
|
|
492
503
|
# api_key: "YOUR_API_KEY"
|
|
493
504
|
# )
|
|
494
505
|
# api.workflows.serialize_workflow_files(files: { "files": {"key":"value"} })
|
|
495
|
-
def serialize_workflow_files(files:, module_: nil, runner_config: nil, request_options: nil)
|
|
506
|
+
def serialize_workflow_files(files:, module_: nil, runner_config: nil, type_checker: nil, request_options: nil)
|
|
496
507
|
Async do
|
|
497
508
|
response = @request_client.conn.post do | req |
|
|
498
509
|
unless request_options&.timeout_in_seconds.nil?
|
|
@@ -510,7 +521,7 @@ end
|
|
|
510
521
|
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
|
511
522
|
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
512
523
|
end
|
|
513
|
-
req.body = { **(request_options&.additional_body_parameters || {}), files: files, module: module_, runner_config: runner_config }.compact
|
|
524
|
+
req.body = { **(request_options&.additional_body_parameters || {}), files: files, module: module_, runner_config: runner_config, type_checker: type_checker }.compact
|
|
514
525
|
req.url "#{@request_client.get_url(environment: Default, request_options: request_options)}/v1/workflows/serialize"
|
|
515
526
|
end
|
|
516
527
|
parsed_json = JSON.parse(response.body)
|
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.13.
|
|
4
|
+
version: 1.13.5
|
|
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-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -738,6 +738,7 @@ files:
|
|
|
738
738
|
- lib/vellum_ai/types/token_overlapping_window_chunker_config_request.rb
|
|
739
739
|
- lib/vellum_ai/types/token_overlapping_window_chunking.rb
|
|
740
740
|
- lib/vellum_ai/types/token_overlapping_window_chunking_request.rb
|
|
741
|
+
- lib/vellum_ai/types/type_checker_enum.rb
|
|
741
742
|
- lib/vellum_ai/types/unit_enum.rb
|
|
742
743
|
- lib/vellum_ai/types/update_active_workspace_response.rb
|
|
743
744
|
- lib/vellum_ai/types/upload_document_response.rb
|