vellum_ai 1.1.3 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 841d875870666fa871285accb4516134253fa0d7b5043e32a87e60ec633e8c39
4
- data.tar.gz: b52d5b47500d3750fde0e21c56a4e984077a7878e95fc8e292689a559b2fc2eb
3
+ metadata.gz: b703097da19e97cd72c95ef383b16596d27aaf7262de9f359f112635d7e7da86
4
+ data.tar.gz: b7c5b99bec2b8e6c6b19d408bde402a291ecaae4f31ff4e6ad22bf24b803a9b7
5
5
  SHA512:
6
- metadata.gz: 41daeb1d91830eb951a97a16129330a56fea9c3fcef1cbdd6eafbb9da954955fd82689d761536a5403e9952021c8b3d7faa9f225d33f4c2528e373fba5161b0a
7
- data.tar.gz: cf9e25869295d2e4f9ed65543a9de22745db4b03f3bced8163a4479ab7b2b7ec81550a027ac94d4fdeddd457f5bb38a4968626c0a670d96157ee0a7f745d5542
6
+ metadata.gz: dc69b039a4fc3631d392d6ca38d31bea1876150d02ee7d6fc3b06d2f84a90cee8b8840e690c4fdaa9b492c6cf9463e7a0fe57f8f0946e30cbe63da778b056a81
7
+ data.tar.gz: a65514f1e473e6506159f522946d7e131060d130b40bb238745523553e9dae6ae708fab315c73b73ba0a71c16239be8eb302ba111172e4b6d4afa0c61fd2cf46
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.1.3' }
59
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.1.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.1.3' }
110
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.1.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
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+ require "date"
2
3
  require "ostruct"
3
4
  require "json"
4
5
 
@@ -9,6 +10,8 @@ module Vellum
9
10
  attr_reader :id
10
11
  # @return [String] The unique name of the ML Model.
11
12
  attr_reader :name
13
+ # @return [DateTime]
14
+ attr_reader :introduced_on
12
15
  # @return [OpenStruct] Additional properties unmapped to the current class definition
13
16
  attr_reader :additional_properties
14
17
  # @return [Object]
@@ -19,13 +22,15 @@ module Vellum
19
22
 
20
23
  # @param id [String]
21
24
  # @param name [String] The unique name of the ML Model.
25
+ # @param introduced_on [DateTime]
22
26
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
23
27
  # @return [Vellum::MlModelRead]
24
- def initialize(id:, name:, additional_properties: nil)
28
+ def initialize(id:, name:, introduced_on:, additional_properties: nil)
25
29
  @id = id
26
30
  @name = name
31
+ @introduced_on = introduced_on
27
32
  @additional_properties = additional_properties
28
- @_field_set = { "id": id, "name": name }
33
+ @_field_set = { "id": id, "name": name, "introduced_on": introduced_on }
29
34
  end
30
35
  # Deserialize a JSON object to an instance of MlModelRead
31
36
  #
@@ -36,9 +41,15 @@ module Vellum
36
41
  parsed_json = JSON.parse(json_object)
37
42
  id = parsed_json["id"]
38
43
  name = parsed_json["name"]
44
+ introduced_on = unless parsed_json["introduced_on"].nil?
45
+ DateTime.parse(parsed_json["introduced_on"])
46
+ else
47
+ nil
48
+ end
39
49
  new(
40
50
  id: id,
41
51
  name: name,
52
+ introduced_on: introduced_on,
42
53
  additional_properties: struct
43
54
  )
44
55
  end
@@ -57,6 +68,7 @@ module Vellum
57
68
  def self.validate_raw(obj:)
58
69
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
59
70
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
71
+ obj.introduced_on.is_a?(DateTime) != false || raise("Passed value for field obj.introduced_on is not the expected type, validation failed.")
60
72
  end
61
73
  end
62
74
  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.1.3
4
+ version: 1.1.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-08-09 00:00:00.000000000 Z
11
+ date: 2025-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday