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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f09af9383b24079d6149b77a9dde5a2bc4f21d16f5c636d3262467116e1da91e
4
- data.tar.gz: d31bb8c0afd3e8818228f0259a229ad7170055db286335447f8a633422413a86
3
+ metadata.gz: 452b17d924d70003e27ea34105803a9bbceeb6c6d8b3ee2401b72b184cd5dd75
4
+ data.tar.gz: 02e7b9c4defaa6f6b63413a51308314dc02ba9ebd516b0ecd83f82b2103332ef
5
5
  SHA512:
6
- metadata.gz: 43b6072b40b3c0e611b61efa49c0d7bed82b2fe2a21d7e5c3ccf6c53a2b817018b6f2be5fd63edc171f21a1a2a7721a641293dcc905051ec5d16c645f2fa9a88
7
- data.tar.gz: 4a0ac1f988bbac1aeece35dadf2ad6d3eff95ef7a9ef94ef3e896dccdfa9dee8a9363fa2162ac2accb9f59406eff1744c6e33bd56b7278d110c916ec0d4ffd9e
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.0' }
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.0' }
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: OMIT, next_: OMIT, previous: OMIT, results: OMIT, additional_properties: nil)
31
- @count = count if count != OMIT
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 if results != OMIT
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&.is_a?(Integer) != false || raise("Passed value for field obj.count is not the expected type, validation failed.")
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&.is_a?(Array) != false || raise("Passed value for field obj.results is not the expected type, validation failed.")
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vellum_ai
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vellum