vellum_ai 1.7.7 → 1.7.9

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: '07982d77e7f136a32ea72c81afb77958cf23df82f8df772fa9936c2937488f51'
4
- data.tar.gz: 387fa8dccc86b03fd25bcd42f50aa52f6eb902621171b93852085b0f40f78a8c
3
+ metadata.gz: 674198798addd50b596182de656830fc19f2fa554602e7ddff3f4804717736cb
4
+ data.tar.gz: f6d534db4961f1a90b723f0aa86c3efc1f1b042c0f2789021e1dab2104487322
5
5
  SHA512:
6
- metadata.gz: e252ac5bffcc8e18a7f85ce7aaf8fa1b7ccd7fa3db709f20b05cecabbc01f5dff339dc82b4f46526fd90f0c04ae32168a3046c25c4c51560f4c178a47be07869
7
- data.tar.gz: abf0770425dd5b9a838b3beeba1990f65e32daa9ed0d10240145300b8436f859876ed95c29fef05526c2d1c63a8fdb67bce7402d4ba31988d4df5ea106c8160f
6
+ metadata.gz: e1a7eea83e660438e11adeff75226dafd41c88fb29c0b1d727420676a3cb83f89d12afeb4d869c687a07037632df50643742ade9c48ed74ea85112b68300a881
7
+ data.tar.gz: 7a723ce2352db7a98b08f47076edfd905fd78e5a9488aa7a9f6249b91d5a713f7850ee5f79cfe66b7f6951bee4b06d24cc973a1df53bd42b37b2c0baad689c72
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.7.7' }
59
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.7.9' }
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.7.7' }
110
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.7.9' }
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
@@ -94,7 +94,7 @@ module Vellum
94
94
  req.params = { **(request_options&.additional_query_parameters || {}) }.compact
95
95
  end
96
96
  req.body = { **(request_options&.additional_body_parameters || {}), ml_model: ml_model, input_values: input_values, input_variables: input_variables, parameters: parameters, settings: settings, blocks: blocks, functions: functions, expand_meta: expand_meta }.compact
97
- req.url "#{@request_client.get_url(environment: Default, request_options: request_options)}/v1/ad-hoc/execute-prompt"
97
+ req.url "#{@request_client.get_url(environment: Predict, request_options: request_options)}/v1/ad-hoc/execute-prompt"
98
98
  end
99
99
  Vellum::AdHocExecutePromptEvent.from_json(json_object: response.body)
100
100
  end
@@ -182,7 +182,7 @@ end
182
182
  req.params = { **(request_options&.additional_query_parameters || {}) }.compact
183
183
  end
184
184
  req.body = { **(request_options&.additional_body_parameters || {}), ml_model: ml_model, input_values: input_values, input_variables: input_variables, parameters: parameters, settings: settings, blocks: blocks, functions: functions, expand_meta: expand_meta }.compact
185
- req.url "#{@request_client.get_url(environment: Default, request_options: request_options)}/v1/ad-hoc/execute-prompt"
185
+ req.url "#{@request_client.get_url(environment: Predict, request_options: request_options)}/v1/ad-hoc/execute-prompt"
186
186
  end
187
187
  Vellum::AdHocExecutePromptEvent.from_json(json_object: response.body)
188
188
  end
@@ -62,6 +62,8 @@ end
62
62
  # List all integration tools for a given provider and integration.
63
63
  #
64
64
  # @param integration_provider [String] The integration provider name
65
+ # @param important [Boolean] Whether to filter the tools by important
66
+ # @param include_deprecated [Boolean] Whether to include deprecated tools
65
67
  # @param integration_name [String] The Vellum Integration name
66
68
  # @param limit [Integer] Number of results to return per page.
67
69
  # @param offset [Integer] The initial index from which to return the results.
@@ -75,7 +77,7 @@ end
75
77
  # api_key: "YOUR_API_KEY"
76
78
  # )
77
79
  # api.integration_providers.list_integration_tools(integration_provider: "integration_provider")
78
- def list_integration_tools(integration_provider:, integration_name: nil, limit: nil, offset: nil, search: nil, request_options: nil)
80
+ def list_integration_tools(integration_provider:, important: nil, include_deprecated: nil, integration_name: nil, limit: nil, offset: nil, search: nil, request_options: nil)
79
81
  response = @request_client.conn.get do | req |
80
82
  unless request_options&.timeout_in_seconds.nil?
81
83
  req.options.timeout = request_options.timeout_in_seconds
@@ -89,7 +91,7 @@ end
89
91
  req.headers["X-API-Version"] = "2025-07-30"
90
92
  end
91
93
  req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
92
- req.params = { **(request_options&.additional_query_parameters || {}), "integration_name": integration_name, "limit": limit, "offset": offset, "search": search }.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
93
95
  unless request_options.nil? || request_options&.additional_body_parameters.nil?
94
96
  req.body = { **(request_options&.additional_body_parameters || {}) }.compact
95
97
  end
@@ -155,6 +157,8 @@ end
155
157
  # List all integration tools for a given provider and integration.
156
158
  #
157
159
  # @param integration_provider [String] The integration provider name
160
+ # @param important [Boolean] Whether to filter the tools by important
161
+ # @param include_deprecated [Boolean] Whether to include deprecated tools
158
162
  # @param integration_name [String] The Vellum Integration name
159
163
  # @param limit [Integer] Number of results to return per page.
160
164
  # @param offset [Integer] The initial index from which to return the results.
@@ -168,7 +172,7 @@ end
168
172
  # api_key: "YOUR_API_KEY"
169
173
  # )
170
174
  # api.integration_providers.list_integration_tools(integration_provider: "integration_provider")
171
- def list_integration_tools(integration_provider:, integration_name: nil, limit: nil, offset: nil, search: nil, request_options: nil)
175
+ def list_integration_tools(integration_provider:, important: nil, include_deprecated: nil, integration_name: nil, limit: nil, offset: nil, search: nil, request_options: nil)
172
176
  Async do
173
177
  response = @request_client.conn.get do | req |
174
178
  unless request_options&.timeout_in_seconds.nil?
@@ -183,7 +187,7 @@ end
183
187
  req.headers["X-API-Version"] = "2025-07-30"
184
188
  end
185
189
  req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
186
- req.params = { **(request_options&.additional_query_parameters || {}), "integration_name": integration_name, "limit": limit, "offset": offset, "search": search }.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
187
191
  unless request_options.nil? || request_options&.additional_body_parameters.nil?
188
192
  req.body = { **(request_options&.additional_body_parameters || {}) }.compact
189
193
  end
@@ -12,6 +12,7 @@ module Vellum
12
12
  # * `GOOGLE_CALENDAR` - Google Calendar
13
13
  # * `GOOGLE_DRIVE` - Google Drive
14
14
  # * `GMAIL` - Gmail
15
+ # * `AIRTABLE` - Airtable
15
16
  class IntegrationName
16
17
 
17
18
  SLACK = "SLACK"
@@ -25,6 +26,7 @@ module Vellum
25
26
  GOOGLE_CALENDAR = "GOOGLE_CALENDAR"
26
27
  GOOGLE_DRIVE = "GOOGLE_DRIVE"
27
28
  GMAIL = "GMAIL"
29
+ AIRTABLE = "AIRTABLE"
28
30
 
29
31
  end
30
32
  end
@@ -9,6 +9,8 @@ module Vellum
9
9
  attr_reader :workflow_definition
10
10
  # @return [Hash{String => Object}]
11
11
  attr_reader :outputs
12
+ # @return [Hash{String => Object}]
13
+ attr_reader :final_state
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 workflow_definition [Vellum::VellumCodeResourceDefinition]
21
23
  # @param outputs [Hash{String => Object}]
24
+ # @param final_state [Hash{String => Object}]
22
25
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
23
26
  # @return [Vellum::WorkflowExecutionFulfilledBody]
24
- def initialize(workflow_definition:, outputs:, additional_properties: nil)
27
+ def initialize(workflow_definition:, outputs:, final_state: OMIT, additional_properties: nil)
25
28
  @workflow_definition = workflow_definition
26
29
  @outputs = outputs
30
+ @final_state = final_state if final_state != OMIT
27
31
  @additional_properties = additional_properties
28
- @_field_set = { "workflow_definition": workflow_definition, "outputs": outputs }
32
+ @_field_set = { "workflow_definition": workflow_definition, "outputs": outputs, "final_state": final_state }.reject do | _k, v |
33
+ v == OMIT
34
+ end
29
35
  end
30
36
  # Deserialize a JSON object to an instance of WorkflowExecutionFulfilledBody
31
37
  #
@@ -41,9 +47,11 @@ module Vellum
41
47
  workflow_definition = nil
42
48
  end
43
49
  outputs = parsed_json["outputs"]
50
+ final_state = parsed_json["final_state"]
44
51
  new(
45
52
  workflow_definition: workflow_definition,
46
53
  outputs: outputs,
54
+ final_state: final_state,
47
55
  additional_properties: struct
48
56
  )
49
57
  end
@@ -62,6 +70,7 @@ module Vellum
62
70
  def self.validate_raw(obj:)
63
71
  Vellum::VellumCodeResourceDefinition.validate_raw(obj: obj.workflow_definition)
64
72
  obj.outputs.is_a?(Hash) != false || raise("Passed value for field obj.outputs is not the expected type, validation failed.")
73
+ obj.final_state&.is_a?(Hash) != false || raise("Passed value for field obj.final_state is not the expected type, validation failed.")
65
74
  end
66
75
  end
67
76
  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.7.7
4
+ version: 1.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vellum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-10-09 00:00:00.000000000 Z
11
+ date: 2025-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday