vellum_ai 1.12.8 → 1.12.10

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: b6a953a7702b28aab863ccaf35e88067ef64ed8db2950e7eb4fd5cdb99f514fa
4
- data.tar.gz: 9f0d8fac0c83117591ce2efe47fcacf619b23c64581d0d79a9f02e697d4a8224
3
+ metadata.gz: ae78f900913e3723580e9ee1179cd0e70f2dd12bb180214d1b8f72d87ae3a420
4
+ data.tar.gz: 2e0541b5b250c957c05ca36c9c6374c192f0fb3098b28d3628a0ca8efa987324
5
5
  SHA512:
6
- metadata.gz: 9eb3e33d21c65466cec0ab1fe80eebf75b34150f2a913ae6a4dbd5f12b62da9ee44c88924112a5581d8f68301e3ff3dd2c5d4061b069c3764b81bee5f27b99a5
7
- data.tar.gz: 424731f10763c04bdc54002db5a80f9c457b2bd8c38a20fa3057a54547a85659198a9b155a5665b1f1f75433d194120fd666543ba460c6c1d88155ab53193e62
6
+ metadata.gz: 6029a1ae20600f5f8dfc15cc7126aa37dc5c4064580a0d26ca9e1ee599cac5a9ea5df8fccfc45efa49de0c7313ac5630d359ab971462d372c0bd6e992290dfa3
7
+ data.tar.gz: e6907f7cb7e53c4b7c4715c58b12c5a7d7af1dec8a86b61f11a56aa502de1af03e72425c05f5c1499b63cfcfe6a51de729c497f024ae99f2ccab2ec5f86d5522
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Vellum.
3
+ Copyright (c) 2026 Vellum.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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.8' }
59
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.12.10' }
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.8' }
110
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.12.10' }
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_response"
71
72
  require_relative "vellum_ai/types/code_execution_node_array_result"
72
73
  require_relative "vellum_ai/types/code_execution_node_chat_history_result"
73
74
  require_relative "vellum_ai/types/code_execution_node_error_result"
@@ -0,0 +1,79 @@
1
+ # frozen_string_literal: true
2
+ require_relative "workflow_result_event_state"
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module Vellum
7
+ # Response serializer for workflow execution status check.
8
+ class CheckWorkflowExecutionStatusResponse
9
+ # @return [Vellum::WorkflowResultEventState]
10
+ attr_reader :status
11
+ # @return [Hash{String => Object}]
12
+ attr_reader :outputs
13
+ # @return [String]
14
+ attr_reader :execution_id
15
+ # @return [String]
16
+ attr_reader :execution_detail_url
17
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
18
+ attr_reader :additional_properties
19
+ # @return [Object]
20
+ attr_reader :_field_set
21
+ protected :_field_set
22
+
23
+ OMIT = Object.new
24
+
25
+ # @param status [Vellum::WorkflowResultEventState]
26
+ # @param outputs [Hash{String => Object}]
27
+ # @param execution_id [String]
28
+ # @param execution_detail_url [String]
29
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
30
+ # @return [Vellum::CheckWorkflowExecutionStatusResponse]
31
+ def initialize(status:, outputs: OMIT, execution_id:, execution_detail_url: OMIT, additional_properties: nil)
32
+ @status = status
33
+ @outputs = outputs if outputs != OMIT
34
+ @execution_id = execution_id
35
+ @execution_detail_url = execution_detail_url if execution_detail_url != OMIT
36
+ @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 |
38
+ v == OMIT
39
+ end
40
+ end
41
+ # Deserialize a JSON object to an instance of CheckWorkflowExecutionStatusResponse
42
+ #
43
+ # @param json_object [String]
44
+ # @return [Vellum::CheckWorkflowExecutionStatusResponse]
45
+ def self.from_json(json_object:)
46
+ struct = JSON.parse(json_object, object_class: OpenStruct)
47
+ parsed_json = JSON.parse(json_object)
48
+ status = parsed_json["status"]
49
+ outputs = parsed_json["outputs"]
50
+ execution_id = parsed_json["execution_id"]
51
+ execution_detail_url = parsed_json["execution_detail_url"]
52
+ new(
53
+ status: status,
54
+ outputs: outputs,
55
+ execution_id: execution_id,
56
+ execution_detail_url: execution_detail_url,
57
+ additional_properties: struct
58
+ )
59
+ end
60
+ # Serialize an instance of CheckWorkflowExecutionStatusResponse to a JSON object
61
+ #
62
+ # @return [String]
63
+ def to_json
64
+ @_field_set&.to_json
65
+ end
66
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
67
+ # hash and check each fields type against the current object's property
68
+ # definitions.
69
+ #
70
+ # @param obj [Object]
71
+ # @return [Void]
72
+ def self.validate_raw(obj:)
73
+ obj.status.is_a?(Vellum::WorkflowResultEventState) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
74
+ obj.outputs&.is_a?(Hash) != false || raise("Passed value for field obj.outputs is not the expected type, validation failed.")
75
+ obj.execution_id.is_a?(String) != false || raise("Passed value for field obj.execution_id is not the expected type, validation failed.")
76
+ 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
+ end
78
+ end
79
+ end
@@ -45,6 +45,7 @@ module Vellum
45
45
  # * `BITBUCKET` - Bitbucket
46
46
  # * `BOX` - Box
47
47
  # * `BREVO` - Brevo
48
+ # * `BREX` - Brex
48
49
  # * `BROWSERBASE_TOOL` - Browserbase Tool
49
50
  # * `CAL` - Cal
50
51
  # * `CANVAS` - Canvas
@@ -145,6 +146,7 @@ module Vellum
145
146
  BITBUCKET = "BITBUCKET"
146
147
  BOX = "BOX"
147
148
  BREVO = "BREVO"
149
+ BREX = "BREX"
148
150
  BROWSERBASE_TOOL = "BROWSERBASE_TOOL"
149
151
  CAL = "CAL"
150
152
  CANVAS = "CANVAS"
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  require_relative "../../requests"
3
3
  require_relative "../types/workflow_resolved_state"
4
+ require_relative "../types/check_workflow_execution_status_response"
4
5
  require_relative "../types/workflow_push_deployment_config_request"
5
6
  require_relative "../types/dataset_row_push_request"
6
7
  require_relative "../types/workflow_push_response"
@@ -11,6 +12,7 @@ require "async"
11
12
  require "async"
12
13
  require "async"
13
14
  require "async"
15
+ require "async"
14
16
  require_relative "../../requests"
15
17
 
16
18
  module Vellum
@@ -98,6 +100,44 @@ end
98
100
  end
99
101
  Vellum::WorkflowResolvedState.from_json(json_object: response.body)
100
102
  end
103
+ # Checks if a workflow execution is currently executing (not fulfilled, not
104
+ # rejected, and has no end time).
105
+ # Uses the ClickHouse Prime summary materialized view.
106
+ #
107
+ # @param execution_id [String]
108
+ # @param request_options [Vellum::RequestOptions]
109
+ # @return [Vellum::CheckWorkflowExecutionStatusResponse]
110
+ # @example
111
+ # api = Vellum::Client.new(
112
+ # base_url: "https://api.example.com",
113
+ # environment: Vellum::Environment::PRODUCTION,
114
+ # api_key: "YOUR_API_KEY"
115
+ # )
116
+ # api.workflows.workflow_execution_status(execution_id: "execution_id")
117
+ def workflow_execution_status(execution_id:, request_options: nil)
118
+ response = @request_client.conn.get do | req |
119
+ unless request_options&.timeout_in_seconds.nil?
120
+ req.options.timeout = request_options.timeout_in_seconds
121
+ end
122
+ unless request_options&.api_key.nil?
123
+ req.headers["X-API-KEY"] = request_options.api_key
124
+ end
125
+ unless request_options&.api_version.nil?
126
+ req.headers["X-API-Version"] = request_options.api_version
127
+ else
128
+ req.headers["X-API-Version"] = "2025-07-30"
129
+ end
130
+ req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
131
+ unless request_options.nil? || request_options&.additional_query_parameters.nil?
132
+ req.params = { **(request_options&.additional_query_parameters || {}) }.compact
133
+ end
134
+ unless request_options.nil? || request_options&.additional_body_parameters.nil?
135
+ req.body = { **(request_options&.additional_body_parameters || {}) }.compact
136
+ end
137
+ req.url "#{@request_client.get_url(environment: Predict, request_options: request_options)}/v1/workflows/executions/#{execution_id}/status"
138
+ end
139
+ Vellum::CheckWorkflowExecutionStatusResponse.from_json(json_object: response.body)
140
+ end
101
141
  # @param exec_config [String] The execution configuration of the workflow. If not provided, it will be derived
102
142
  # from the artifact.
103
143
  # @param workflow_sandbox_id [String]
@@ -274,6 +314,46 @@ end
274
314
  Vellum::WorkflowResolvedState.from_json(json_object: response.body)
275
315
  end
276
316
  end
317
+ # Checks if a workflow execution is currently executing (not fulfilled, not
318
+ # rejected, and has no end time).
319
+ # Uses the ClickHouse Prime summary materialized view.
320
+ #
321
+ # @param execution_id [String]
322
+ # @param request_options [Vellum::RequestOptions]
323
+ # @return [Vellum::CheckWorkflowExecutionStatusResponse]
324
+ # @example
325
+ # api = Vellum::Client.new(
326
+ # base_url: "https://api.example.com",
327
+ # environment: Vellum::Environment::PRODUCTION,
328
+ # api_key: "YOUR_API_KEY"
329
+ # )
330
+ # api.workflows.workflow_execution_status(execution_id: "execution_id")
331
+ def workflow_execution_status(execution_id:, request_options: nil)
332
+ Async do
333
+ response = @request_client.conn.get do | req |
334
+ unless request_options&.timeout_in_seconds.nil?
335
+ req.options.timeout = request_options.timeout_in_seconds
336
+ end
337
+ unless request_options&.api_key.nil?
338
+ req.headers["X-API-KEY"] = request_options.api_key
339
+ end
340
+ unless request_options&.api_version.nil?
341
+ req.headers["X-API-Version"] = request_options.api_version
342
+ else
343
+ req.headers["X-API-Version"] = "2025-07-30"
344
+ end
345
+ req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
346
+ unless request_options.nil? || request_options&.additional_query_parameters.nil?
347
+ req.params = { **(request_options&.additional_query_parameters || {}) }.compact
348
+ end
349
+ unless request_options.nil? || request_options&.additional_body_parameters.nil?
350
+ req.body = { **(request_options&.additional_body_parameters || {}) }.compact
351
+ end
352
+ req.url "#{@request_client.get_url(environment: Predict, request_options: request_options)}/v1/workflows/executions/#{execution_id}/status"
353
+ end
354
+ Vellum::CheckWorkflowExecutionStatusResponse.from_json(json_object: response.body)
355
+ end
356
+ end
277
357
  # @param exec_config [String] The execution configuration of the workflow. If not provided, it will be derived
278
358
  # from the artifact.
279
359
  # @param workflow_sandbox_id [String]
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.8
4
+ version: 1.12.10
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-05 00:00:00.000000000 Z
11
+ date: 2026-01-07 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_response.rb
206
207
  - lib/vellum_ai/types/code_execution_node_array_result.rb
207
208
  - lib/vellum_ai/types/code_execution_node_chat_history_result.rb
208
209
  - lib/vellum_ai/types/code_execution_node_error_result.rb