vellum_ai 1.6.0 → 1.6.1
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/paginated_slim_tool_definition_list.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 452b17d924d70003e27ea34105803a9bbceeb6c6d8b3ee2401b72b184cd5dd75
|
4
|
+
data.tar.gz: 02e7b9c4defaa6f6b63413a51308314dc02ba9ebd516b0ecd83f82b2103332ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6eeae9a38ef6929f1bc2fb01a4144ef1668894643fc06c743172cb926ab34f9d9889b9f01fcb2195e09979b0303efe53f356703bc61eae541892050d6c302a70
|
7
|
+
data.tar.gz: 94415f2dff176aa808d3f355ca38b13b0152237f5b3b1ad2b146ec38317288b1d0a407fa17e0970617f5964633a53d6067963906b520389b066c3cd07d2df7d1
|
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.6.
|
59
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.6.1' }
|
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.6.
|
110
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.6.1' }
|
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
|
@@ -27,11 +27,11 @@ module Vellum
|
|
27
27
|
# @param results [Array<Vellum::COMPONENTS_SCHEMAS_SLIM_COMPOSIO_TOOL_DEFINITION>]
|
28
28
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
29
29
|
# @return [Vellum::PaginatedSlimToolDefinitionList]
|
30
|
-
def initialize(count
|
31
|
-
@count = count
|
30
|
+
def initialize(count:, next_: OMIT, previous: OMIT, results:, additional_properties: nil)
|
31
|
+
@count = count
|
32
32
|
@next_ = next_ if next_ != OMIT
|
33
33
|
@previous = previous if previous != OMIT
|
34
|
-
@results = results
|
34
|
+
@results = results
|
35
35
|
@additional_properties = additional_properties
|
36
36
|
@_field_set = { "count": count, "next": next_, "previous": previous, "results": results }.reject do | _k, v |
|
37
37
|
v == OMIT
|
@@ -72,10 +72,10 @@ end
|
|
72
72
|
# @param obj [Object]
|
73
73
|
# @return [Void]
|
74
74
|
def self.validate_raw(obj:)
|
75
|
-
obj.count
|
75
|
+
obj.count.is_a?(Integer) != false || raise("Passed value for field obj.count is not the expected type, validation failed.")
|
76
76
|
obj.next_&.is_a?(String) != false || raise("Passed value for field obj.next_ is not the expected type, validation failed.")
|
77
77
|
obj.previous&.is_a?(String) != false || raise("Passed value for field obj.previous is not the expected type, validation failed.")
|
78
|
-
obj.results
|
78
|
+
obj.results.is_a?(Array) != false || raise("Passed value for field obj.results is not the expected type, validation failed.")
|
79
79
|
end
|
80
80
|
end
|
81
81
|
end
|