vellum_ai 1.0.3 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15998f3a3ff3c389235c5e0f79916d02f3492eee4902db68b3e2990cf7d59e34
4
- data.tar.gz: '079305de85aabb9d4402ac53823d77a8dab1968e73015be26a536ff3e0582817'
3
+ metadata.gz: 5f8d645a8ebbc2a9e19b5674642169b1d3908407191b0ea572dc9ef449f50ea2
4
+ data.tar.gz: a6c5951ce5d6a97dd8bf8db730a3bf5a424e60566476e0eca36efb88d0066092
5
5
  SHA512:
6
- metadata.gz: 492d7bbd620f76adc89c17d19cfc4d7fe201cda59f4d2b22a52beda63eede8955f1b45b110f06ce7fc499c40063ef5673340034e037727e3d5d027ebbf145063
7
- data.tar.gz: b746e10b09d25ef1a34b37d9f002c2eb925f9df683815c11b40561e1eadfa2335dec59cf213ea8dc6cdffaa4140ac502b0c5b955338bf746f8456ee9797e3ed2
6
+ metadata.gz: f6012cdba3b47ec2971e8668efc76c45fcb587a0983f6c26377f3c0e2af4b6414ef51a29eef1e6c95a8f4c6ee955424e7024b118690e7c0bd307892570a069e6
7
+ data.tar.gz: 76720fff0904ae2e1dcaf8afba6c1c4b2e933cbeb314f7ef46c3bc5efc2421aaf6d624ca9e1e3aeb893359e0237fc3a20d6494911c9de3b76c1a4eacf39f77b0
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.0.3' }
59
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.0.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.0.3' }
110
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.0.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
@@ -242,6 +242,7 @@ require_relative "vellum_ai/types/metric_definition_execution"
242
242
  require_relative "vellum_ai/types/metric_definition_history_item"
243
243
  require_relative "vellum_ai/types/metric_definition_input"
244
244
  require_relative "vellum_ai/types/metric_node_result"
245
+ require_relative "vellum_ai/types/name_enum"
245
246
  require_relative "vellum_ai/types/named_scenario_input_chat_history_variable_value_request"
246
247
  require_relative "vellum_ai/types/named_scenario_input_json_variable_value_request"
247
248
  require_relative "vellum_ai/types/named_scenario_input_string_variable_value_request"
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Vellum
4
+ # * `workflow_executions` - WORKFLOW_EXECUTIONS
5
+ # * `prompt_executions` - PROMPT_EXECUTIONS
6
+ # * `workflow_runtime_seconds` - WORKFLOW_RUNTIME_SECONDS
7
+ class NameEnum
8
+
9
+ WORKFLOW_EXECUTIONS = "workflow_executions"
10
+ PROMPT_EXECUTIONS = "prompt_executions"
11
+ WORKFLOW_RUNTIME_SECONDS = "workflow_runtime_seconds"
12
+
13
+ end
14
+ end
@@ -14,6 +14,8 @@ module Vellum
14
14
  attr_reader :workflow_executions_quota
15
15
  # @return [Vellum::Quota]
16
16
  attr_reader :workflow_runtime_seconds_quota
17
+ # @return [Integer]
18
+ attr_reader :max_workflow_runtime_seconds
17
19
  # @return [OpenStruct] Additional properties unmapped to the current class definition
18
20
  attr_reader :additional_properties
19
21
  # @return [Object]
@@ -26,15 +28,17 @@ module Vellum
26
28
  # @param prompt_executions_quota [Vellum::Quota]
27
29
  # @param workflow_executions_quota [Vellum::Quota]
28
30
  # @param workflow_runtime_seconds_quota [Vellum::Quota]
31
+ # @param max_workflow_runtime_seconds [Integer]
29
32
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
30
33
  # @return [Vellum::OrganizationLimitConfig]
31
- def initialize(vembda_service_tier: OMIT, prompt_executions_quota: OMIT, workflow_executions_quota: OMIT, workflow_runtime_seconds_quota: OMIT, additional_properties: nil)
34
+ def initialize(vembda_service_tier: OMIT, prompt_executions_quota: OMIT, workflow_executions_quota: OMIT, workflow_runtime_seconds_quota: OMIT, max_workflow_runtime_seconds: OMIT, additional_properties: nil)
32
35
  @vembda_service_tier = vembda_service_tier if vembda_service_tier != OMIT
33
36
  @prompt_executions_quota = prompt_executions_quota if prompt_executions_quota != OMIT
34
37
  @workflow_executions_quota = workflow_executions_quota if workflow_executions_quota != OMIT
35
38
  @workflow_runtime_seconds_quota = workflow_runtime_seconds_quota if workflow_runtime_seconds_quota != OMIT
39
+ @max_workflow_runtime_seconds = max_workflow_runtime_seconds if max_workflow_runtime_seconds != OMIT
36
40
  @additional_properties = additional_properties
37
- @_field_set = { "vembda_service_tier": vembda_service_tier, "prompt_executions_quota": prompt_executions_quota, "workflow_executions_quota": workflow_executions_quota, "workflow_runtime_seconds_quota": workflow_runtime_seconds_quota }.reject do | _k, v |
41
+ @_field_set = { "vembda_service_tier": vembda_service_tier, "prompt_executions_quota": prompt_executions_quota, "workflow_executions_quota": workflow_executions_quota, "workflow_runtime_seconds_quota": workflow_runtime_seconds_quota, "max_workflow_runtime_seconds": max_workflow_runtime_seconds }.reject do | _k, v |
38
42
  v == OMIT
39
43
  end
40
44
  end
@@ -64,11 +68,13 @@ end
64
68
  else
65
69
  workflow_runtime_seconds_quota = nil
66
70
  end
71
+ max_workflow_runtime_seconds = parsed_json["max_workflow_runtime_seconds"]
67
72
  new(
68
73
  vembda_service_tier: vembda_service_tier,
69
74
  prompt_executions_quota: prompt_executions_quota,
70
75
  workflow_executions_quota: workflow_executions_quota,
71
76
  workflow_runtime_seconds_quota: workflow_runtime_seconds_quota,
77
+ max_workflow_runtime_seconds: max_workflow_runtime_seconds,
72
78
  additional_properties: struct
73
79
  )
74
80
  end
@@ -89,6 +95,7 @@ end
89
95
  obj.prompt_executions_quota.nil? || Vellum::Quota.validate_raw(obj: obj.prompt_executions_quota)
90
96
  obj.workflow_executions_quota.nil? || Vellum::Quota.validate_raw(obj: obj.workflow_executions_quota)
91
97
  obj.workflow_runtime_seconds_quota.nil? || Vellum::Quota.validate_raw(obj: obj.workflow_runtime_seconds_quota)
98
+ obj.max_workflow_runtime_seconds&.is_a?(Integer) != false || raise("Passed value for field obj.max_workflow_runtime_seconds is not the expected type, validation failed.")
92
99
  end
93
100
  end
94
101
  end
@@ -1,10 +1,11 @@
1
1
  # frozen_string_literal: true
2
+ require_relative "name_enum"
2
3
  require "ostruct"
3
4
  require "json"
4
5
 
5
6
  module Vellum
6
7
  class Quota
7
- # @return [String]
8
+ # @return [Vellum::NameEnum]
8
9
  attr_reader :name
9
10
  # @return [Integer]
10
11
  attr_reader :value
@@ -18,7 +19,7 @@ module Vellum
18
19
 
19
20
  OMIT = Object.new
20
21
 
21
- # @param name [String]
22
+ # @param name [Vellum::NameEnum]
22
23
  # @param value [Integer]
23
24
  # @param period_seconds [Integer]
24
25
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
@@ -62,7 +63,7 @@ end
62
63
  # @param obj [Object]
63
64
  # @return [Void]
64
65
  def self.validate_raw(obj:)
65
- obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
66
+ obj.name.is_a?(Vellum::NameEnum) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
66
67
  obj.value&.is_a?(Integer) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
67
68
  obj.period_seconds&.is_a?(Integer) != false || raise("Passed value for field obj.period_seconds is not the expected type, validation failed.")
68
69
  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.0.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vellum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-07-18 00:00:00.000000000 Z
11
+ date: 2025-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -367,6 +367,7 @@ files:
367
367
  - lib/vellum_ai/types/ml_model_read.rb
368
368
  - lib/vellum_ai/types/ml_model_usage.rb
369
369
  - lib/vellum_ai/types/ml_model_usage_wrapper.rb
370
+ - lib/vellum_ai/types/name_enum.rb
370
371
  - lib/vellum_ai/types/named_scenario_input_chat_history_variable_value_request.rb
371
372
  - lib/vellum_ai/types/named_scenario_input_json_variable_value_request.rb
372
373
  - lib/vellum_ai/types/named_scenario_input_request.rb