vellum_ai 1.0.5 → 1.0.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 +4 -4
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +0 -4
- data/lib/vellum_ai/types/organization_read.rb +6 -12
- metadata +2 -6
- data/lib/vellum_ai/types/name_enum.rb +0 -14
- data/lib/vellum_ai/types/organization_limit_config.rb +0 -101
- data/lib/vellum_ai/types/quota.rb +0 -71
- data/lib/vellum_ai/types/vembda_service_tier_enum.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f843fc332ca4969c268aeb227b39670203eddeaec614950fd4c3b24dd228aeb
|
4
|
+
data.tar.gz: a1ad16d1230bb7e15e5700698dd0ef5aa8572e2cae27f85eb1309f1a302569b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2314b176ea6bc209606b6e1167f38b3c0e4659946a86ba9bee807222cf39c406686da1463f7270f1ca24aacc3c998343c7da978975096360e747726de99637ac
|
7
|
+
data.tar.gz: 618cd74b81cafc232e57106b15e6965ab1b5324ef91a9931442e3954b1f34072974c5ccff6391243c29be37fffe852aae7899093025145886bceb5473257ad04
|
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.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.0.
|
110
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.0.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
@@ -242,7 +242,6 @@ 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"
|
246
245
|
require_relative "vellum_ai/types/named_scenario_input_chat_history_variable_value_request"
|
247
246
|
require_relative "vellum_ai/types/named_scenario_input_json_variable_value_request"
|
248
247
|
require_relative "vellum_ai/types/named_scenario_input_string_variable_value_request"
|
@@ -307,7 +306,6 @@ require_relative "vellum_ai/types/number_vellum_value"
|
|
307
306
|
require_relative "vellum_ai/types/number_vellum_value_request"
|
308
307
|
require_relative "vellum_ai/types/open_ai_vectorizer_config"
|
309
308
|
require_relative "vellum_ai/types/open_ai_vectorizer_config_request"
|
310
|
-
require_relative "vellum_ai/types/organization_limit_config"
|
311
309
|
require_relative "vellum_ai/types/organization_read"
|
312
310
|
require_relative "vellum_ai/types/paginated_container_image_read_list"
|
313
311
|
require_relative "vellum_ai/types/paginated_deployment_release_tag_read_list"
|
@@ -357,7 +355,6 @@ require_relative "vellum_ai/types/prompt_request_input"
|
|
357
355
|
require_relative "vellum_ai/types/prompt_settings"
|
358
356
|
require_relative "vellum_ai/types/prompt_version_build_config_sandbox"
|
359
357
|
require_relative "vellum_ai/types/components_schemas_prompt_version_build_config_sandbox"
|
360
|
-
require_relative "vellum_ai/types/quota"
|
361
358
|
require_relative "vellum_ai/types/raw_prompt_execution_overrides_request"
|
362
359
|
require_relative "vellum_ai/types/reducto_chunker_config"
|
363
360
|
require_relative "vellum_ai/types/reducto_chunker_config_request"
|
@@ -543,7 +540,6 @@ require_relative "vellum_ai/types/workflow_execution_paused_event"
|
|
543
540
|
require_relative "vellum_ai/types/workflow_execution_resumed_event"
|
544
541
|
require_relative "vellum_ai/types/workflow_execution_snapshotted_event"
|
545
542
|
require_relative "vellum_ai/types/vellum_workflow_execution_event"
|
546
|
-
require_relative "vellum_ai/types/vembda_service_tier_enum"
|
547
543
|
require_relative "vellum_ai/types/workflow_deployment_event_executions_response"
|
548
544
|
require_relative "vellum_ai/types/workflow_deployment_history_item"
|
549
545
|
require_relative "vellum_ai/types/workflow_deployment_read"
|
@@ -1,6 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
require_relative "new_member_join_behavior_enum"
|
3
|
-
require_relative "organization_limit_config"
|
4
3
|
require "ostruct"
|
5
4
|
require "json"
|
6
5
|
|
@@ -14,7 +13,7 @@ module Vellum
|
|
14
13
|
attr_reader :allow_staff_access
|
15
14
|
# @return [Vellum::NewMemberJoinBehaviorEnum]
|
16
15
|
attr_reader :new_member_join_behavior
|
17
|
-
# @return [
|
16
|
+
# @return [Hash{String => Object}]
|
18
17
|
attr_reader :limit_config
|
19
18
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
20
19
|
attr_reader :additional_properties
|
@@ -28,15 +27,15 @@ module Vellum
|
|
28
27
|
# @param name [String]
|
29
28
|
# @param allow_staff_access [Boolean]
|
30
29
|
# @param new_member_join_behavior [Vellum::NewMemberJoinBehaviorEnum]
|
31
|
-
# @param limit_config [
|
30
|
+
# @param limit_config [Hash{String => Object}]
|
32
31
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
33
32
|
# @return [Vellum::OrganizationRead]
|
34
|
-
def initialize(id:, name:, allow_staff_access: OMIT, new_member_join_behavior:, limit_config
|
33
|
+
def initialize(id:, name:, allow_staff_access: OMIT, new_member_join_behavior:, limit_config: OMIT, additional_properties: nil)
|
35
34
|
@id = id
|
36
35
|
@name = name
|
37
36
|
@allow_staff_access = allow_staff_access if allow_staff_access != OMIT
|
38
37
|
@new_member_join_behavior = new_member_join_behavior
|
39
|
-
@limit_config = limit_config
|
38
|
+
@limit_config = limit_config if limit_config != OMIT
|
40
39
|
@additional_properties = additional_properties
|
41
40
|
@_field_set = { "id": id, "name": name, "allow_staff_access": allow_staff_access, "new_member_join_behavior": new_member_join_behavior, "limit_config": limit_config }.reject do | _k, v |
|
42
41
|
v == OMIT
|
@@ -53,12 +52,7 @@ end
|
|
53
52
|
name = parsed_json["name"]
|
54
53
|
allow_staff_access = parsed_json["allow_staff_access"]
|
55
54
|
new_member_join_behavior = parsed_json["new_member_join_behavior"]
|
56
|
-
|
57
|
-
limit_config = parsed_json["limit_config"].to_json
|
58
|
-
limit_config = Vellum::OrganizationLimitConfig.from_json(json_object: limit_config)
|
59
|
-
else
|
60
|
-
limit_config = nil
|
61
|
-
end
|
55
|
+
limit_config = parsed_json["limit_config"]
|
62
56
|
new(
|
63
57
|
id: id,
|
64
58
|
name: name,
|
@@ -85,7 +79,7 @@ end
|
|
85
79
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
86
80
|
obj.allow_staff_access&.is_a?(Boolean) != false || raise("Passed value for field obj.allow_staff_access is not the expected type, validation failed.")
|
87
81
|
obj.new_member_join_behavior.is_a?(Vellum::NewMemberJoinBehaviorEnum) != false || raise("Passed value for field obj.new_member_join_behavior is not the expected type, validation failed.")
|
88
|
-
|
82
|
+
obj.limit_config&.is_a?(Hash) != false || raise("Passed value for field obj.limit_config is not the expected type, validation failed.")
|
89
83
|
end
|
90
84
|
end
|
91
85
|
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.6
|
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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -367,7 +367,6 @@ 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
|
371
370
|
- lib/vellum_ai/types/named_scenario_input_chat_history_variable_value_request.rb
|
372
371
|
- lib/vellum_ai/types/named_scenario_input_json_variable_value_request.rb
|
373
372
|
- lib/vellum_ai/types/named_scenario_input_request.rb
|
@@ -439,7 +438,6 @@ files:
|
|
439
438
|
- lib/vellum_ai/types/open_ai_vectorizer_text_embedding_3_small_request.rb
|
440
439
|
- lib/vellum_ai/types/open_ai_vectorizer_text_embedding_ada_002.rb
|
441
440
|
- lib/vellum_ai/types/open_ai_vectorizer_text_embedding_ada_002_request.rb
|
442
|
-
- lib/vellum_ai/types/organization_limit_config.rb
|
443
441
|
- lib/vellum_ai/types/organization_read.rb
|
444
442
|
- lib/vellum_ai/types/paginated_container_image_read_list.rb
|
445
443
|
- lib/vellum_ai/types/paginated_deployment_release_tag_read_list.rb
|
@@ -480,7 +478,6 @@ files:
|
|
480
478
|
- lib/vellum_ai/types/prompt_request_string_input.rb
|
481
479
|
- lib/vellum_ai/types/prompt_settings.rb
|
482
480
|
- lib/vellum_ai/types/prompt_version_build_config_sandbox.rb
|
483
|
-
- lib/vellum_ai/types/quota.rb
|
484
481
|
- lib/vellum_ai/types/raw_prompt_execution_overrides_request.rb
|
485
482
|
- lib/vellum_ai/types/reducto_chunker_config.rb
|
486
483
|
- lib/vellum_ai/types/reducto_chunker_config_request.rb
|
@@ -678,7 +675,6 @@ files:
|
|
678
675
|
- lib/vellum_ai/types/vellum_variable_extensions.rb
|
679
676
|
- lib/vellum_ai/types/vellum_variable_type.rb
|
680
677
|
- lib/vellum_ai/types/vellum_workflow_execution_event.rb
|
681
|
-
- lib/vellum_ai/types/vembda_service_tier_enum.rb
|
682
678
|
- lib/vellum_ai/types/workflow_deployment_event_executions_response.rb
|
683
679
|
- lib/vellum_ai/types/workflow_deployment_history_item.rb
|
684
680
|
- lib/vellum_ai/types/workflow_deployment_parent_context.rb
|
@@ -1,14 +0,0 @@
|
|
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,101 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
require_relative "vembda_service_tier_enum"
|
3
|
-
require_relative "quota"
|
4
|
-
require "ostruct"
|
5
|
-
require "json"
|
6
|
-
|
7
|
-
module Vellum
|
8
|
-
class OrganizationLimitConfig
|
9
|
-
# @return [Vellum::VembdaServiceTierEnum]
|
10
|
-
attr_reader :vembda_service_tier
|
11
|
-
# @return [Vellum::Quota]
|
12
|
-
attr_reader :prompt_executions_quota
|
13
|
-
# @return [Vellum::Quota]
|
14
|
-
attr_reader :workflow_executions_quota
|
15
|
-
# @return [Vellum::Quota]
|
16
|
-
attr_reader :workflow_runtime_seconds_quota
|
17
|
-
# @return [Integer]
|
18
|
-
attr_reader :max_workflow_runtime_seconds
|
19
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
20
|
-
attr_reader :additional_properties
|
21
|
-
# @return [Object]
|
22
|
-
attr_reader :_field_set
|
23
|
-
protected :_field_set
|
24
|
-
|
25
|
-
OMIT = Object.new
|
26
|
-
|
27
|
-
# @param vembda_service_tier [Vellum::VembdaServiceTierEnum]
|
28
|
-
# @param prompt_executions_quota [Vellum::Quota]
|
29
|
-
# @param workflow_executions_quota [Vellum::Quota]
|
30
|
-
# @param workflow_runtime_seconds_quota [Vellum::Quota]
|
31
|
-
# @param max_workflow_runtime_seconds [Integer]
|
32
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
33
|
-
# @return [Vellum::OrganizationLimitConfig]
|
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)
|
35
|
-
@vembda_service_tier = vembda_service_tier if vembda_service_tier != OMIT
|
36
|
-
@prompt_executions_quota = prompt_executions_quota if prompt_executions_quota != OMIT
|
37
|
-
@workflow_executions_quota = workflow_executions_quota if workflow_executions_quota != OMIT
|
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
|
40
|
-
@additional_properties = additional_properties
|
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 |
|
42
|
-
v == OMIT
|
43
|
-
end
|
44
|
-
end
|
45
|
-
# Deserialize a JSON object to an instance of OrganizationLimitConfig
|
46
|
-
#
|
47
|
-
# @param json_object [String]
|
48
|
-
# @return [Vellum::OrganizationLimitConfig]
|
49
|
-
def self.from_json(json_object:)
|
50
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
51
|
-
parsed_json = JSON.parse(json_object)
|
52
|
-
vembda_service_tier = parsed_json["vembda_service_tier"]
|
53
|
-
unless parsed_json["prompt_executions_quota"].nil?
|
54
|
-
prompt_executions_quota = parsed_json["prompt_executions_quota"].to_json
|
55
|
-
prompt_executions_quota = Vellum::Quota.from_json(json_object: prompt_executions_quota)
|
56
|
-
else
|
57
|
-
prompt_executions_quota = nil
|
58
|
-
end
|
59
|
-
unless parsed_json["workflow_executions_quota"].nil?
|
60
|
-
workflow_executions_quota = parsed_json["workflow_executions_quota"].to_json
|
61
|
-
workflow_executions_quota = Vellum::Quota.from_json(json_object: workflow_executions_quota)
|
62
|
-
else
|
63
|
-
workflow_executions_quota = nil
|
64
|
-
end
|
65
|
-
unless parsed_json["workflow_runtime_seconds_quota"].nil?
|
66
|
-
workflow_runtime_seconds_quota = parsed_json["workflow_runtime_seconds_quota"].to_json
|
67
|
-
workflow_runtime_seconds_quota = Vellum::Quota.from_json(json_object: workflow_runtime_seconds_quota)
|
68
|
-
else
|
69
|
-
workflow_runtime_seconds_quota = nil
|
70
|
-
end
|
71
|
-
max_workflow_runtime_seconds = parsed_json["max_workflow_runtime_seconds"]
|
72
|
-
new(
|
73
|
-
vembda_service_tier: vembda_service_tier,
|
74
|
-
prompt_executions_quota: prompt_executions_quota,
|
75
|
-
workflow_executions_quota: workflow_executions_quota,
|
76
|
-
workflow_runtime_seconds_quota: workflow_runtime_seconds_quota,
|
77
|
-
max_workflow_runtime_seconds: max_workflow_runtime_seconds,
|
78
|
-
additional_properties: struct
|
79
|
-
)
|
80
|
-
end
|
81
|
-
# Serialize an instance of OrganizationLimitConfig to a JSON object
|
82
|
-
#
|
83
|
-
# @return [String]
|
84
|
-
def to_json
|
85
|
-
@_field_set&.to_json
|
86
|
-
end
|
87
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
88
|
-
# hash and check each fields type against the current object's property
|
89
|
-
# definitions.
|
90
|
-
#
|
91
|
-
# @param obj [Object]
|
92
|
-
# @return [Void]
|
93
|
-
def self.validate_raw(obj:)
|
94
|
-
obj.vembda_service_tier&.is_a?(Vellum::VembdaServiceTierEnum) != false || raise("Passed value for field obj.vembda_service_tier is not the expected type, validation failed.")
|
95
|
-
obj.prompt_executions_quota.nil? || Vellum::Quota.validate_raw(obj: obj.prompt_executions_quota)
|
96
|
-
obj.workflow_executions_quota.nil? || Vellum::Quota.validate_raw(obj: obj.workflow_executions_quota)
|
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.")
|
99
|
-
end
|
100
|
-
end
|
101
|
-
end
|
@@ -1,71 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
require_relative "name_enum"
|
3
|
-
require "ostruct"
|
4
|
-
require "json"
|
5
|
-
|
6
|
-
module Vellum
|
7
|
-
class Quota
|
8
|
-
# @return [Vellum::NameEnum]
|
9
|
-
attr_reader :name
|
10
|
-
# @return [Integer]
|
11
|
-
attr_reader :value
|
12
|
-
# @return [Integer]
|
13
|
-
attr_reader :period_seconds
|
14
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
15
|
-
attr_reader :additional_properties
|
16
|
-
# @return [Object]
|
17
|
-
attr_reader :_field_set
|
18
|
-
protected :_field_set
|
19
|
-
|
20
|
-
OMIT = Object.new
|
21
|
-
|
22
|
-
# @param name [Vellum::NameEnum]
|
23
|
-
# @param value [Integer]
|
24
|
-
# @param period_seconds [Integer]
|
25
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
26
|
-
# @return [Vellum::Quota]
|
27
|
-
def initialize(name:, value: OMIT, period_seconds: OMIT, additional_properties: nil)
|
28
|
-
@name = name
|
29
|
-
@value = value if value != OMIT
|
30
|
-
@period_seconds = period_seconds if period_seconds != OMIT
|
31
|
-
@additional_properties = additional_properties
|
32
|
-
@_field_set = { "name": name, "value": value, "period_seconds": period_seconds }.reject do | _k, v |
|
33
|
-
v == OMIT
|
34
|
-
end
|
35
|
-
end
|
36
|
-
# Deserialize a JSON object to an instance of Quota
|
37
|
-
#
|
38
|
-
# @param json_object [String]
|
39
|
-
# @return [Vellum::Quota]
|
40
|
-
def self.from_json(json_object:)
|
41
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
42
|
-
parsed_json = JSON.parse(json_object)
|
43
|
-
name = parsed_json["name"]
|
44
|
-
value = parsed_json["value"]
|
45
|
-
period_seconds = parsed_json["period_seconds"]
|
46
|
-
new(
|
47
|
-
name: name,
|
48
|
-
value: value,
|
49
|
-
period_seconds: period_seconds,
|
50
|
-
additional_properties: struct
|
51
|
-
)
|
52
|
-
end
|
53
|
-
# Serialize an instance of Quota to a JSON object
|
54
|
-
#
|
55
|
-
# @return [String]
|
56
|
-
def to_json
|
57
|
-
@_field_set&.to_json
|
58
|
-
end
|
59
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
60
|
-
# hash and check each fields type against the current object's property
|
61
|
-
# definitions.
|
62
|
-
#
|
63
|
-
# @param obj [Object]
|
64
|
-
# @return [Void]
|
65
|
-
def self.validate_raw(obj:)
|
66
|
-
obj.name.is_a?(Vellum::NameEnum) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
67
|
-
obj.value&.is_a?(Integer) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
|
68
|
-
obj.period_seconds&.is_a?(Integer) != false || raise("Passed value for field obj.period_seconds is not the expected type, validation failed.")
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|