vellum_ai 1.0.3 → 1.0.4
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/vellum_ai/types/organization_limit_config.rb +9 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 914999cb008b320b49aaac00eaab0f64d0c5b881e3c5273d23a6e762b4d3482a
|
4
|
+
data.tar.gz: a8432979f6fe3bb8df318f6043ad721a4ba08540940594b91b9007a1acdfa8d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39359c0a6e280f74426a99d07b57351e8247c16d4c69eca46a99a44db7d6196eafbc3603a83a288c7fe43d6fb14b84abd3e3111fe1b91590ac9471bf3ae79fb9
|
7
|
+
data.tar.gz: 06dbdb1cc3914115ad8a6dbe341aba5b98ce54970b54f72f126bf37ee3c16cfb9f046d6fb3a0112ffb4c6e8b9a194ad8b3ef51186938db7f31afc949e7eedf4e
|
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.4' }
|
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.4' }
|
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
|
@@ -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
|
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.4
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|