vellum_ai 1.12.1 → 1.12.2
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/integration_providers/client.rb +18 -12
- data/lib/vellum_ai/integrations/client.rb +10 -8
- data/lib/vellum_ai/types/composio_execute_tool_request.rb +11 -2
- data/lib/vellum_ai/types/composio_tool_definition.rb +9 -2
- data/lib/vellum_ai/types/slim_composio_tool_definition.rb +9 -2
- 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: 29fb112650285d7ff2fd4499a3e408ffa18d4add14a3a9b7980e6b8ab6fe1c2a
|
|
4
|
+
data.tar.gz: 53ffd1733e616a3598d20a737e019772356e452d00eed6007227dddf32ee5d7f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 520444d8c94059b758a4a7f02585add8c21c7a9803c1f919297448478c5d434b3dfcad807f4c84f92e08fd42346bedff044fee271532412e7e7ddb1eed1ac3f8
|
|
7
|
+
data.tar.gz: 337c579e5e3a363aa8dc8b813fe4ac11f9084a12ab0dced83736612e362b42a23f5c77642c979838ccf73eb4d0e23cf52eeb7ed9b392ec2f04030ef48de13391
|
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.2' }
|
|
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.2' }
|
|
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
|
|
@@ -22,6 +22,8 @@ module Vellum
|
|
|
22
22
|
# @param integration_name [String] The integration name
|
|
23
23
|
# @param integration_provider [String] The integration provider name
|
|
24
24
|
# @param tool_name [String] The tool's unique name, as specified by the integration provider
|
|
25
|
+
# @param toolkit_version [String] The version of the toolkit to use. Pass 'latest' to get the latest version, or a
|
|
26
|
+
# specific version string to pin it. If not provided, uses the provider's default.
|
|
25
27
|
# @param request_options [Vellum::RequestOptions]
|
|
26
28
|
# @return [Vellum::COMPONENTS_SCHEMAS_COMPOSIO_TOOL_DEFINITION]
|
|
27
29
|
# @example
|
|
@@ -35,7 +37,7 @@ module Vellum
|
|
|
35
37
|
# integration_provider: "integration_provider",
|
|
36
38
|
# tool_name: "tool_name"
|
|
37
39
|
# )
|
|
38
|
-
def retrieve_integration_provider_tool_definition(integration_name:, integration_provider:, tool_name:, request_options: nil)
|
|
40
|
+
def retrieve_integration_provider_tool_definition(integration_name:, integration_provider:, tool_name:, toolkit_version: nil, request_options: nil)
|
|
39
41
|
response = @request_client.conn.get do | req |
|
|
40
42
|
unless request_options&.timeout_in_seconds.nil?
|
|
41
43
|
req.options.timeout = request_options.timeout_in_seconds
|
|
@@ -49,9 +51,7 @@ module Vellum
|
|
|
49
51
|
req.headers["X-API-Version"] = "2025-07-30"
|
|
50
52
|
end
|
|
51
53
|
req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
|
|
52
|
-
|
|
53
|
-
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
54
|
-
end
|
|
54
|
+
req.params = { **(request_options&.additional_query_parameters || {}), "toolkit_version": toolkit_version }.compact
|
|
55
55
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
56
56
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
57
57
|
end
|
|
@@ -68,6 +68,9 @@ end
|
|
|
68
68
|
# @param limit [Integer] Number of results to return per page.
|
|
69
69
|
# @param offset [Integer] The initial index from which to return the results.
|
|
70
70
|
# @param search [String] The search term to filter the tools by
|
|
71
|
+
# @param toolkit_version [String] The version of the toolkit to lookup. Pass 'latest' to get the latest version,
|
|
72
|
+
# or a specific version string to pin it. If not provided, uses the provider's
|
|
73
|
+
# default.
|
|
71
74
|
# @param request_options [Vellum::RequestOptions]
|
|
72
75
|
# @return [Vellum::PaginatedSlimToolDefinitionList]
|
|
73
76
|
# @example
|
|
@@ -77,7 +80,7 @@ end
|
|
|
77
80
|
# api_key: "YOUR_API_KEY"
|
|
78
81
|
# )
|
|
79
82
|
# api.integration_providers.list_integration_tools(integration_provider: "integration_provider")
|
|
80
|
-
def list_integration_tools(integration_provider:, important: nil, include_deprecated: nil, integration_name: nil, limit: nil, offset: nil, search: nil, request_options: nil)
|
|
83
|
+
def list_integration_tools(integration_provider:, important: nil, include_deprecated: nil, integration_name: nil, limit: nil, offset: nil, search: nil, toolkit_version: nil, request_options: nil)
|
|
81
84
|
response = @request_client.conn.get do | req |
|
|
82
85
|
unless request_options&.timeout_in_seconds.nil?
|
|
83
86
|
req.options.timeout = request_options.timeout_in_seconds
|
|
@@ -91,7 +94,7 @@ end
|
|
|
91
94
|
req.headers["X-API-Version"] = "2025-07-30"
|
|
92
95
|
end
|
|
93
96
|
req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
|
|
94
|
-
req.params = { **(request_options&.additional_query_parameters || {}), "important": important, "include_deprecated": include_deprecated, "integration_name": integration_name, "limit": limit, "offset": offset, "search": search }.compact
|
|
97
|
+
req.params = { **(request_options&.additional_query_parameters || {}), "important": important, "include_deprecated": include_deprecated, "integration_name": integration_name, "limit": limit, "offset": offset, "search": search, "toolkit_version": toolkit_version }.compact
|
|
95
98
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
96
99
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
97
100
|
end
|
|
@@ -115,6 +118,8 @@ end
|
|
|
115
118
|
# @param integration_name [String] The integration name
|
|
116
119
|
# @param integration_provider [String] The integration provider name
|
|
117
120
|
# @param tool_name [String] The tool's unique name, as specified by the integration provider
|
|
121
|
+
# @param toolkit_version [String] The version of the toolkit to use. Pass 'latest' to get the latest version, or a
|
|
122
|
+
# specific version string to pin it. If not provided, uses the provider's default.
|
|
118
123
|
# @param request_options [Vellum::RequestOptions]
|
|
119
124
|
# @return [Vellum::COMPONENTS_SCHEMAS_COMPOSIO_TOOL_DEFINITION]
|
|
120
125
|
# @example
|
|
@@ -128,7 +133,7 @@ end
|
|
|
128
133
|
# integration_provider: "integration_provider",
|
|
129
134
|
# tool_name: "tool_name"
|
|
130
135
|
# )
|
|
131
|
-
def retrieve_integration_provider_tool_definition(integration_name:, integration_provider:, tool_name:, request_options: nil)
|
|
136
|
+
def retrieve_integration_provider_tool_definition(integration_name:, integration_provider:, tool_name:, toolkit_version: nil, request_options: nil)
|
|
132
137
|
Async do
|
|
133
138
|
response = @request_client.conn.get do | req |
|
|
134
139
|
unless request_options&.timeout_in_seconds.nil?
|
|
@@ -143,9 +148,7 @@ end
|
|
|
143
148
|
req.headers["X-API-Version"] = "2025-07-30"
|
|
144
149
|
end
|
|
145
150
|
req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
|
|
146
|
-
|
|
147
|
-
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
148
|
-
end
|
|
151
|
+
req.params = { **(request_options&.additional_query_parameters || {}), "toolkit_version": toolkit_version }.compact
|
|
149
152
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
150
153
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
151
154
|
end
|
|
@@ -163,6 +166,9 @@ end
|
|
|
163
166
|
# @param limit [Integer] Number of results to return per page.
|
|
164
167
|
# @param offset [Integer] The initial index from which to return the results.
|
|
165
168
|
# @param search [String] The search term to filter the tools by
|
|
169
|
+
# @param toolkit_version [String] The version of the toolkit to lookup. Pass 'latest' to get the latest version,
|
|
170
|
+
# or a specific version string to pin it. If not provided, uses the provider's
|
|
171
|
+
# default.
|
|
166
172
|
# @param request_options [Vellum::RequestOptions]
|
|
167
173
|
# @return [Vellum::PaginatedSlimToolDefinitionList]
|
|
168
174
|
# @example
|
|
@@ -172,7 +178,7 @@ end
|
|
|
172
178
|
# api_key: "YOUR_API_KEY"
|
|
173
179
|
# )
|
|
174
180
|
# api.integration_providers.list_integration_tools(integration_provider: "integration_provider")
|
|
175
|
-
def list_integration_tools(integration_provider:, important: nil, include_deprecated: nil, integration_name: nil, limit: nil, offset: nil, search: nil, request_options: nil)
|
|
181
|
+
def list_integration_tools(integration_provider:, important: nil, include_deprecated: nil, integration_name: nil, limit: nil, offset: nil, search: nil, toolkit_version: nil, request_options: nil)
|
|
176
182
|
Async do
|
|
177
183
|
response = @request_client.conn.get do | req |
|
|
178
184
|
unless request_options&.timeout_in_seconds.nil?
|
|
@@ -187,7 +193,7 @@ end
|
|
|
187
193
|
req.headers["X-API-Version"] = "2025-07-30"
|
|
188
194
|
end
|
|
189
195
|
req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
|
|
190
|
-
req.params = { **(request_options&.additional_query_parameters || {}), "important": important, "include_deprecated": include_deprecated, "integration_name": integration_name, "limit": limit, "offset": offset, "search": search }.compact
|
|
196
|
+
req.params = { **(request_options&.additional_query_parameters || {}), "important": important, "include_deprecated": include_deprecated, "integration_name": integration_name, "limit": limit, "offset": offset, "search": search, "toolkit_version": toolkit_version }.compact
|
|
191
197
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
192
198
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
193
199
|
end
|
|
@@ -25,6 +25,8 @@ module Vellum
|
|
|
25
25
|
# @param integration_name [String] The integration name
|
|
26
26
|
# @param integration_provider [String] The integration provider name
|
|
27
27
|
# @param tool_name [String] The tool's unique name, as specified by the integration provider
|
|
28
|
+
# @param toolkit_version [String] The version of the toolkit to use. Pass 'latest' to get the latest version, or a
|
|
29
|
+
# specific version string to pin it. If not provided, uses the provider's default.
|
|
28
30
|
# @param request_options [Vellum::RequestOptions]
|
|
29
31
|
# @return [Vellum::COMPONENTS_SCHEMAS_COMPOSIO_TOOL_DEFINITION]
|
|
30
32
|
# @example
|
|
@@ -38,7 +40,7 @@ module Vellum
|
|
|
38
40
|
# integration_provider: "integration_provider",
|
|
39
41
|
# tool_name: "tool_name"
|
|
40
42
|
# )
|
|
41
|
-
def retrieve_integration_tool_definition(integration_name:, integration_provider:, tool_name:, request_options: nil)
|
|
43
|
+
def retrieve_integration_tool_definition(integration_name:, integration_provider:, tool_name:, toolkit_version: nil, request_options: nil)
|
|
42
44
|
response = @request_client.conn.get do | req |
|
|
43
45
|
unless request_options&.timeout_in_seconds.nil?
|
|
44
46
|
req.options.timeout = request_options.timeout_in_seconds
|
|
@@ -52,9 +54,7 @@ module Vellum
|
|
|
52
54
|
req.headers["X-API-Version"] = "2025-07-30"
|
|
53
55
|
end
|
|
54
56
|
req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
|
|
55
|
-
|
|
56
|
-
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
57
|
-
end
|
|
57
|
+
req.params = { **(request_options&.additional_query_parameters || {}), "toolkit_version": toolkit_version }.compact
|
|
58
58
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
59
59
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
60
60
|
end
|
|
@@ -68,6 +68,7 @@ end
|
|
|
68
68
|
# @param request [Hash] Request of type Vellum::COMPONENTS_SCHEMAS_COMPOSIO_EXECUTE_TOOL_REQUEST, as a Hash
|
|
69
69
|
# * :provider (String)
|
|
70
70
|
# * :arguments (Hash{String => Object})
|
|
71
|
+
# * :toolkit_version (String)
|
|
71
72
|
# @param request_options [Vellum::RequestOptions]
|
|
72
73
|
# @return [Vellum::COMPONENTS_SCHEMAS_COMPOSIO_EXECUTE_TOOL_RESPONSE]
|
|
73
74
|
# @example
|
|
@@ -193,6 +194,8 @@ end
|
|
|
193
194
|
# @param integration_name [String] The integration name
|
|
194
195
|
# @param integration_provider [String] The integration provider name
|
|
195
196
|
# @param tool_name [String] The tool's unique name, as specified by the integration provider
|
|
197
|
+
# @param toolkit_version [String] The version of the toolkit to use. Pass 'latest' to get the latest version, or a
|
|
198
|
+
# specific version string to pin it. If not provided, uses the provider's default.
|
|
196
199
|
# @param request_options [Vellum::RequestOptions]
|
|
197
200
|
# @return [Vellum::COMPONENTS_SCHEMAS_COMPOSIO_TOOL_DEFINITION]
|
|
198
201
|
# @example
|
|
@@ -206,7 +209,7 @@ end
|
|
|
206
209
|
# integration_provider: "integration_provider",
|
|
207
210
|
# tool_name: "tool_name"
|
|
208
211
|
# )
|
|
209
|
-
def retrieve_integration_tool_definition(integration_name:, integration_provider:, tool_name:, request_options: nil)
|
|
212
|
+
def retrieve_integration_tool_definition(integration_name:, integration_provider:, tool_name:, toolkit_version: nil, request_options: nil)
|
|
210
213
|
Async do
|
|
211
214
|
response = @request_client.conn.get do | req |
|
|
212
215
|
unless request_options&.timeout_in_seconds.nil?
|
|
@@ -221,9 +224,7 @@ end
|
|
|
221
224
|
req.headers["X-API-Version"] = "2025-07-30"
|
|
222
225
|
end
|
|
223
226
|
req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
|
|
224
|
-
|
|
225
|
-
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
226
|
-
end
|
|
227
|
+
req.params = { **(request_options&.additional_query_parameters || {}), "toolkit_version": toolkit_version }.compact
|
|
227
228
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
228
229
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
229
230
|
end
|
|
@@ -238,6 +239,7 @@ end
|
|
|
238
239
|
# @param request [Hash] Request of type Vellum::COMPONENTS_SCHEMAS_COMPOSIO_EXECUTE_TOOL_REQUEST, as a Hash
|
|
239
240
|
# * :provider (String)
|
|
240
241
|
# * :arguments (Hash{String => Object})
|
|
242
|
+
# * :toolkit_version (String)
|
|
241
243
|
# @param request_options [Vellum::RequestOptions]
|
|
242
244
|
# @return [Vellum::COMPONENTS_SCHEMAS_COMPOSIO_EXECUTE_TOOL_RESPONSE]
|
|
243
245
|
# @example
|
|
@@ -9,6 +9,8 @@ module Vellum
|
|
|
9
9
|
attr_reader :provider
|
|
10
10
|
# @return [Hash{String => Object}]
|
|
11
11
|
attr_reader :arguments
|
|
12
|
+
# @return [String]
|
|
13
|
+
attr_reader :toolkit_version
|
|
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 provider [String]
|
|
21
23
|
# @param arguments [Hash{String => Object}]
|
|
24
|
+
# @param toolkit_version [String]
|
|
22
25
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
23
26
|
# @return [Vellum::ComposioExecuteToolRequest]
|
|
24
|
-
def initialize(provider:, arguments:, additional_properties: nil)
|
|
27
|
+
def initialize(provider:, arguments:, toolkit_version: OMIT, additional_properties: nil)
|
|
25
28
|
@provider = provider
|
|
26
29
|
@arguments = arguments
|
|
30
|
+
@toolkit_version = toolkit_version if toolkit_version != OMIT
|
|
27
31
|
@additional_properties = additional_properties
|
|
28
|
-
@_field_set = { "provider": provider, "arguments": arguments }
|
|
32
|
+
@_field_set = { "provider": provider, "arguments": arguments, "toolkit_version": toolkit_version }.reject do | _k, v |
|
|
33
|
+
v == OMIT
|
|
34
|
+
end
|
|
29
35
|
end
|
|
30
36
|
# Deserialize a JSON object to an instance of ComposioExecuteToolRequest
|
|
31
37
|
#
|
|
@@ -36,9 +42,11 @@ module Vellum
|
|
|
36
42
|
parsed_json = JSON.parse(json_object)
|
|
37
43
|
provider = parsed_json["provider"]
|
|
38
44
|
arguments = parsed_json["arguments"]
|
|
45
|
+
toolkit_version = parsed_json["toolkit_version"]
|
|
39
46
|
new(
|
|
40
47
|
provider: provider,
|
|
41
48
|
arguments: arguments,
|
|
49
|
+
toolkit_version: toolkit_version,
|
|
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.provider.is_a?(String) != false || raise("Passed value for field obj.provider is not the expected type, validation failed.")
|
|
59
67
|
obj.arguments.is_a?(Hash) != false || raise("Passed value for field obj.arguments is not the expected type, validation failed.")
|
|
68
|
+
obj.toolkit_version&.is_a?(String) != false || raise("Passed value for field obj.toolkit_version is not the expected type, validation failed.")
|
|
60
69
|
end
|
|
61
70
|
end
|
|
62
71
|
end
|
|
@@ -20,6 +20,8 @@ module Vellum
|
|
|
20
20
|
attr_reader :input_parameters
|
|
21
21
|
# @return [Hash{String => Object}]
|
|
22
22
|
attr_reader :output_parameters
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_reader :toolkit_version
|
|
23
25
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
24
26
|
attr_reader :additional_properties
|
|
25
27
|
# @return [Object]
|
|
@@ -35,9 +37,10 @@ module Vellum
|
|
|
35
37
|
# @param description [String]
|
|
36
38
|
# @param input_parameters [Hash{String => Object}]
|
|
37
39
|
# @param output_parameters [Hash{String => Object}]
|
|
40
|
+
# @param toolkit_version [String]
|
|
38
41
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
39
42
|
# @return [Vellum::ComposioToolDefinition]
|
|
40
|
-
def initialize(provider:, integration:, name:, label:, description:, input_parameters:, output_parameters:, additional_properties: nil)
|
|
43
|
+
def initialize(provider:, integration:, name:, label:, description:, input_parameters:, output_parameters:, toolkit_version:, additional_properties: nil)
|
|
41
44
|
@provider = provider
|
|
42
45
|
@integration = integration
|
|
43
46
|
@name = name
|
|
@@ -45,8 +48,9 @@ module Vellum
|
|
|
45
48
|
@description = description
|
|
46
49
|
@input_parameters = input_parameters
|
|
47
50
|
@output_parameters = output_parameters
|
|
51
|
+
@toolkit_version = toolkit_version
|
|
48
52
|
@additional_properties = additional_properties
|
|
49
|
-
@_field_set = { "provider": provider, "integration": integration, "name": name, "label": label, "description": description, "input_parameters": input_parameters, "output_parameters": output_parameters }
|
|
53
|
+
@_field_set = { "provider": provider, "integration": integration, "name": name, "label": label, "description": description, "input_parameters": input_parameters, "output_parameters": output_parameters, "toolkit_version": toolkit_version }
|
|
50
54
|
end
|
|
51
55
|
# Deserialize a JSON object to an instance of ComposioToolDefinition
|
|
52
56
|
#
|
|
@@ -67,6 +71,7 @@ module Vellum
|
|
|
67
71
|
description = parsed_json["description"]
|
|
68
72
|
input_parameters = parsed_json["input_parameters"]
|
|
69
73
|
output_parameters = parsed_json["output_parameters"]
|
|
74
|
+
toolkit_version = parsed_json["toolkit_version"]
|
|
70
75
|
new(
|
|
71
76
|
provider: provider,
|
|
72
77
|
integration: integration,
|
|
@@ -75,6 +80,7 @@ module Vellum
|
|
|
75
80
|
description: description,
|
|
76
81
|
input_parameters: input_parameters,
|
|
77
82
|
output_parameters: output_parameters,
|
|
83
|
+
toolkit_version: toolkit_version,
|
|
78
84
|
additional_properties: struct
|
|
79
85
|
)
|
|
80
86
|
end
|
|
@@ -98,6 +104,7 @@ module Vellum
|
|
|
98
104
|
obj.description.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
|
99
105
|
obj.input_parameters.is_a?(Hash) != false || raise("Passed value for field obj.input_parameters is not the expected type, validation failed.")
|
|
100
106
|
obj.output_parameters.is_a?(Hash) != false || raise("Passed value for field obj.output_parameters is not the expected type, validation failed.")
|
|
107
|
+
obj.toolkit_version.is_a?(String) != false || raise("Passed value for field obj.toolkit_version is not the expected type, validation failed.")
|
|
101
108
|
end
|
|
102
109
|
end
|
|
103
110
|
end
|
|
@@ -15,6 +15,8 @@ module Vellum
|
|
|
15
15
|
attr_reader :label
|
|
16
16
|
# @return [String]
|
|
17
17
|
attr_reader :description
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_reader :toolkit_version
|
|
18
20
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
19
21
|
attr_reader :additional_properties
|
|
20
22
|
# @return [Object]
|
|
@@ -28,16 +30,18 @@ module Vellum
|
|
|
28
30
|
# @param name [String]
|
|
29
31
|
# @param label [String]
|
|
30
32
|
# @param description [String]
|
|
33
|
+
# @param toolkit_version [String]
|
|
31
34
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
32
35
|
# @return [Vellum::SlimComposioToolDefinition]
|
|
33
|
-
def initialize(provider:, integration:, name:, label:, description:, additional_properties: nil)
|
|
36
|
+
def initialize(provider:, integration:, name:, label:, description:, toolkit_version:, additional_properties: nil)
|
|
34
37
|
@provider = provider
|
|
35
38
|
@integration = integration
|
|
36
39
|
@name = name
|
|
37
40
|
@label = label
|
|
38
41
|
@description = description
|
|
42
|
+
@toolkit_version = toolkit_version
|
|
39
43
|
@additional_properties = additional_properties
|
|
40
|
-
@_field_set = { "provider": provider, "integration": integration, "name": name, "label": label, "description": description }
|
|
44
|
+
@_field_set = { "provider": provider, "integration": integration, "name": name, "label": label, "description": description, "toolkit_version": toolkit_version }
|
|
41
45
|
end
|
|
42
46
|
# Deserialize a JSON object to an instance of SlimComposioToolDefinition
|
|
43
47
|
#
|
|
@@ -56,12 +60,14 @@ module Vellum
|
|
|
56
60
|
name = parsed_json["name"]
|
|
57
61
|
label = parsed_json["label"]
|
|
58
62
|
description = parsed_json["description"]
|
|
63
|
+
toolkit_version = parsed_json["toolkit_version"]
|
|
59
64
|
new(
|
|
60
65
|
provider: provider,
|
|
61
66
|
integration: integration,
|
|
62
67
|
name: name,
|
|
63
68
|
label: label,
|
|
64
69
|
description: description,
|
|
70
|
+
toolkit_version: toolkit_version,
|
|
65
71
|
additional_properties: struct
|
|
66
72
|
)
|
|
67
73
|
end
|
|
@@ -83,6 +89,7 @@ module Vellum
|
|
|
83
89
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
|
84
90
|
obj.label.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
|
|
85
91
|
obj.description.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
|
92
|
+
obj.toolkit_version.is_a?(String) != false || raise("Passed value for field obj.toolkit_version is not the expected type, validation failed.")
|
|
86
93
|
end
|
|
87
94
|
end
|
|
88
95
|
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: 1.12.
|
|
4
|
+
version: 1.12.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vellum
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|