vellum_ai 1.0.4 → 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 +4 -4
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +1 -0
- data/lib/vellum_ai/types/name_enum.rb +14 -0
- data/lib/vellum_ai/types/quota.rb +4 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f8d645a8ebbc2a9e19b5674642169b1d3908407191b0ea572dc9ef449f50ea2
|
4
|
+
data.tar.gz: a6c5951ce5d6a97dd8bf8db730a3bf5a424e60566476e0eca36efb88d0066092
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
@@ -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 [
|
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 [
|
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?(
|
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.
|
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-
|
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
|