vellum_ai 1.13.4 → 1.13.6

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: c2e4dfef64f6542d09b27adf7ba423b06b211efe0491c6c3a89d48e867d77b4c
4
- data.tar.gz: d8e85ccf32a13de4d1030bbd2fa608efc6c5c83d321010f6e2d2b6ef555b648a
3
+ metadata.gz: 4a07b71f6b033bebd37a042b85b018301f560bc42ab0f4f1f0949ecef3474fa8
4
+ data.tar.gz: a5a463085952c4500bf6726dddd7c3b00720acbaed57105b76b569ca132a46bd
5
5
  SHA512:
6
- metadata.gz: ee65dc3d5d92a6edba6c211f2b5dfc9050aabb93be985168d09c4d9c65a490dd8f76ad84ac26f35fad96d152cb0456aa720abb935519c7aa8ff37016cea66e3b
7
- data.tar.gz: 76a3206dda7a743446164e41b2687c3a9b7d1d0216bb37ae541f331b7c1b2fd034b9729bfc8f3ac94136d19422802bd6db7080e834a3179b5869b59b8c2ee2e5
6
+ metadata.gz: 5726db9880ebbc82bbf5cc03a89753c8e23ca302276f2d8f2672ec453baad1a4d5e02539942c99b6089365bec70d49631bab1a29a3fb27056b5d67caf006911c
7
+ data.tar.gz: ff0ee3367f4440e5ee80840dce803fde7b085e3bd5c7012501b67a5d316d3585572427f5ded0be058071c3b55f405d064d9646ff8416c1291aede189207693f2
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.4' }
59
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.13.6' }
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.4' }
110
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.13.6' }
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,8 @@ end
69
69
  # * :provider (String)
70
70
  # * :arguments (Hash{String => Object})
71
71
  # * :toolkit_version (String)
72
+ # * :integration (String)
73
+ # * :tool (String)
72
74
  # @param request_options [Vellum::RequestOptions]
73
75
  # @return [Vellum::COMPONENTS_SCHEMAS_COMPOSIO_EXECUTE_TOOL_RESPONSE]
74
76
  # @example
@@ -240,6 +242,8 @@ end
240
242
  # * :provider (String)
241
243
  # * :arguments (Hash{String => Object})
242
244
  # * :toolkit_version (String)
245
+ # * :integration (String)
246
+ # * :tool (String)
243
247
  # @param request_options [Vellum::RequestOptions]
244
248
  # @return [Vellum::COMPONENTS_SCHEMAS_COMPOSIO_EXECUTE_TOOL_RESPONSE]
245
249
  # @example
@@ -2,10 +2,12 @@
2
2
 
3
3
  module Vellum
4
4
  # * `API_KEY` - API Key
5
+ # * `GOOGLE_SERVICE_ACCOUNT` - Google Service Account
5
6
  # * `OAUTH2` - OAuth2
6
7
  class AuthTypeEnum
7
8
 
8
9
  API_KEY = "API_KEY"
10
+ GOOGLE_SERVICE_ACCOUNT = "GOOGLE_SERVICE_ACCOUNT"
9
11
  OAUTH_2 = "OAUTH2"
10
12
 
11
13
  end
@@ -11,6 +11,10 @@ module Vellum
11
11
  attr_reader :arguments
12
12
  # @return [String]
13
13
  attr_reader :toolkit_version
14
+ # @return [String]
15
+ attr_reader :integration
16
+ # @return [String]
17
+ attr_reader :tool
14
18
  # @return [OpenStruct] Additional properties unmapped to the current class definition
15
19
  attr_reader :additional_properties
16
20
  # @return [Object]
@@ -22,14 +26,18 @@ module Vellum
22
26
  # @param provider [String]
23
27
  # @param arguments [Hash{String => Object}]
24
28
  # @param toolkit_version [String]
29
+ # @param integration [String]
30
+ # @param tool [String]
25
31
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
32
  # @return [Vellum::ComposioExecuteToolRequest]
27
- def initialize(provider:, arguments:, toolkit_version: OMIT, additional_properties: nil)
33
+ def initialize(provider:, arguments:, toolkit_version: OMIT, integration: OMIT, tool: OMIT, additional_properties: nil)
28
34
  @provider = provider
29
35
  @arguments = arguments
30
36
  @toolkit_version = toolkit_version if toolkit_version != OMIT
37
+ @integration = integration if integration != OMIT
38
+ @tool = tool if tool != OMIT
31
39
  @additional_properties = additional_properties
32
- @_field_set = { "provider": provider, "arguments": arguments, "toolkit_version": toolkit_version }.reject do | _k, v |
40
+ @_field_set = { "provider": provider, "arguments": arguments, "toolkit_version": toolkit_version, "integration": integration, "tool": tool }.reject do | _k, v |
33
41
  v == OMIT
34
42
  end
35
43
  end
@@ -43,10 +51,14 @@ end
43
51
  provider = parsed_json["provider"]
44
52
  arguments = parsed_json["arguments"]
45
53
  toolkit_version = parsed_json["toolkit_version"]
54
+ integration = parsed_json["integration"]
55
+ tool = parsed_json["tool"]
46
56
  new(
47
57
  provider: provider,
48
58
  arguments: arguments,
49
59
  toolkit_version: toolkit_version,
60
+ integration: integration,
61
+ tool: tool,
50
62
  additional_properties: struct
51
63
  )
52
64
  end
@@ -66,6 +78,8 @@ end
66
78
  obj.provider.is_a?(String) != false || raise("Passed value for field obj.provider is not the expected type, validation failed.")
67
79
  obj.arguments.is_a?(Hash) != false || raise("Passed value for field obj.arguments is not the expected type, validation failed.")
68
80
  obj.toolkit_version&.is_a?(String) != false || raise("Passed value for field obj.toolkit_version is not the expected type, validation failed.")
81
+ obj.integration&.is_a?(String) != false || raise("Passed value for field obj.integration is not the expected type, validation failed.")
82
+ obj.tool&.is_a?(String) != false || raise("Passed value for field obj.tool is not the expected type, validation failed.")
69
83
  end
70
84
  end
71
85
  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
@@ -29,6 +29,7 @@ module Vellum
29
29
  # * `GMAIL` - Gmail
30
30
  # * `GOOGLE_ADS` - Google Ads
31
31
  # * `GOOGLE_ANALYTICS` - Google Analytics
32
+ # * `GOOGLE_BIGQUERY` - Google BigQuery
32
33
  # * `GOOGLE_DOCS` - Google Docs
33
34
  # * `GOOGLE_PHOTOS` - Google Photos
34
35
  # * `GOOGLE_SEARCH_CONSOLE` - Google Search Console
@@ -131,6 +132,7 @@ module Vellum
131
132
  GMAIL = "GMAIL"
132
133
  GOOGLE_ADS = "GOOGLE_ADS"
133
134
  GOOGLE_ANALYTICS = "GOOGLE_ANALYTICS"
135
+ GOOGLE_BIGQUERY = "GOOGLE_BIGQUERY"
134
136
  GOOGLE_DOCS = "GOOGLE_DOCS"
135
137
  GOOGLE_PHOTOS = "GOOGLE_PHOTOS"
136
138
  GOOGLE_SEARCH_CONSOLE = "GOOGLE_SEARCH_CONSOLE"
@@ -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
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Vellum
4
+ # * `mypy` - Mypy
5
+ # * `zuban` - Zuban
6
+ # * `default` - Default
7
+ class TypeCheckerEnum
8
+
9
+ MYPY = "mypy"
10
+ ZUBAN = "zuban"
11
+ DEFAULT = "default"
12
+
13
+ end
14
+ end
@@ -9,6 +9,8 @@ module Vellum
9
9
  attr_reader :workflow_definition
10
10
  # @return [Hash{String => Object}]
11
11
  attr_reader :inputs
12
+ # @return [Vellum::VellumCodeResourceDefinition]
13
+ attr_reader :trigger
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 inputs [Hash{String => Object}]
24
+ # @param trigger [Vellum::VellumCodeResourceDefinition]
22
25
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
23
26
  # @return [Vellum::WorkflowExecutionInitiatedBody]
24
- def initialize(workflow_definition:, inputs:, additional_properties: nil)
27
+ def initialize(workflow_definition:, inputs:, trigger: OMIT, additional_properties: nil)
25
28
  @workflow_definition = workflow_definition
26
29
  @inputs = inputs
30
+ @trigger = trigger if trigger != OMIT
27
31
  @additional_properties = additional_properties
28
- @_field_set = { "workflow_definition": workflow_definition, "inputs": inputs }
32
+ @_field_set = { "workflow_definition": workflow_definition, "inputs": inputs, "trigger": trigger }.reject do | _k, v |
33
+ v == OMIT
34
+ end
29
35
  end
30
36
  # Deserialize a JSON object to an instance of WorkflowExecutionInitiatedBody
31
37
  #
@@ -41,9 +47,16 @@ module Vellum
41
47
  workflow_definition = nil
42
48
  end
43
49
  inputs = parsed_json["inputs"]
50
+ unless parsed_json["trigger"].nil?
51
+ trigger = parsed_json["trigger"].to_json
52
+ trigger = Vellum::VellumCodeResourceDefinition.from_json(json_object: trigger)
53
+ else
54
+ trigger = nil
55
+ end
44
56
  new(
45
57
  workflow_definition: workflow_definition,
46
58
  inputs: inputs,
59
+ trigger: trigger,
47
60
  additional_properties: struct
48
61
  )
49
62
  end
@@ -62,6 +75,7 @@ module Vellum
62
75
  def self.validate_raw(obj:)
63
76
  Vellum::VellumCodeResourceDefinition.validate_raw(obj: obj.workflow_definition)
64
77
  obj.inputs.is_a?(Hash) != false || raise("Passed value for field obj.inputs is not the expected type, validation failed.")
78
+ obj.trigger.nil? || Vellum::VellumCodeResourceDefinition.validate_raw(obj: obj.trigger)
65
79
  end
66
80
  end
67
81
  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
4
+ version: 1.13.6
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-17 00:00:00.000000000 Z
11
+ date: 2026-01-23 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