vellum_ai 0.14.85 → 0.14.86

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: 75df70d8ec75358bfe64ebbd67a06bd5f73c2d5aabc5b919894ad98a16165396
4
- data.tar.gz: 2aa3819d91ab0ec07b4e75cfd58d6beb1d24431324ff5143e5e5288e4cdbdc17
3
+ metadata.gz: 81f7c9756166ab0688718b64ba1aa21a9e074b3291119a4191a50c4067134da7
4
+ data.tar.gz: 0130dee05746c3483e9554779d97188891e22efdbf1a1165daaa64fa69b4a66d
5
5
  SHA512:
6
- metadata.gz: f9110c23cbfec251fee1640ddfc087fbc76d3ba97c2e6c7b7c3a1cb308231d927135959a696648ce52b874a43ccc593ee4031ee2df040fb78e0e7802a3e1834b
7
- data.tar.gz: 84651d44058024d3d02a6f17a6a516ba2570b7a9fbe434b8ccfbc2af4ca006346667888a38f2f7e06cc21fd19c8c832e01f6bea2a1e880da2bd25d16f8dc2b8f
6
+ metadata.gz: a361af3e5dbfcb1ebfde70d2bfeaa3ba596263e2b7f3f4e584e399dcde561bb9c2aefcda159b2d4d3115ade6cebc35518a952744738d0c6e908efc5207d680a3
7
+ data.tar.gz: c5cbf8e64495a3c8c22c7eefe59808e98e2455405bf8d950cec78d487bc3f46fd96b6ff4d2b7b8d0272ffffd1128d7dfe2844368762aa42fec97dd9fc4fbf90d
data/lib/requests.rb CHANGED
@@ -50,7 +50,7 @@ end
50
50
  end
51
51
  # @return [Hash{String => String}]
52
52
  def get_headers
53
- headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '0.14.85' }
53
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '0.14.86' }
54
54
  headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
55
55
  headers
56
56
  end
@@ -96,7 +96,7 @@ end
96
96
  end
97
97
  # @return [Hash{String => String}]
98
98
  def get_headers
99
- headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '0.14.85' }
99
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '0.14.86' }
100
100
  headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
101
101
  headers
102
102
  end
@@ -12,7 +12,7 @@ module Vellum
12
12
  attr_reader :name
13
13
  # @return [String]
14
14
  attr_reader :type
15
- # @return [Vellum::StringVellumValue]
15
+ # @return [Array<Vellum::StringVellumValue>]
16
16
  attr_reader :value
17
17
  # @return [OpenStruct] Additional properties unmapped to the current class definition
18
18
  attr_reader :additional_properties
@@ -25,7 +25,7 @@ module Vellum
25
25
  # @param id [String] The variable's uniquely identifying internal id.
26
26
  # @param name [String]
27
27
  # @param type [String]
28
- # @param value [Vellum::StringVellumValue]
28
+ # @param value [Array<Vellum::StringVellumValue>]
29
29
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
30
30
  # @return [Vellum::ExecutionThinkingVellumValue]
31
31
  def initialize(id:, name:, type:, value:, additional_properties: nil)
@@ -46,12 +46,10 @@ module Vellum
46
46
  id = parsed_json["id"]
47
47
  name = parsed_json["name"]
48
48
  type = parsed_json["type"]
49
- unless parsed_json["value"].nil?
50
- value = parsed_json["value"].to_json
51
- value = Vellum::StringVellumValue.from_json(json_object: value)
52
- else
53
- value = nil
54
- end
49
+ value = parsed_json["value"]&.map do | item |
50
+ item = item.to_json
51
+ Vellum::StringVellumValue.from_json(json_object: item)
52
+ end
55
53
  new(
56
54
  id: id,
57
55
  name: name,
@@ -76,7 +74,7 @@ module Vellum
76
74
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
77
75
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
78
76
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
79
- Vellum::StringVellumValue.validate_raw(obj: obj.value)
77
+ obj.value.is_a?(Array) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
80
78
  end
81
79
  end
82
80
  end
@@ -8,7 +8,7 @@ module Vellum
8
8
  class ThinkingVellumValue
9
9
  # @return [String]
10
10
  attr_reader :type
11
- # @return [Vellum::StringVellumValue]
11
+ # @return [Array<Vellum::StringVellumValue>]
12
12
  attr_reader :value
13
13
  # @return [OpenStruct] Additional properties unmapped to the current class definition
14
14
  attr_reader :additional_properties
@@ -19,7 +19,7 @@ module Vellum
19
19
  OMIT = Object.new
20
20
 
21
21
  # @param type [String]
22
- # @param value [Vellum::StringVellumValue]
22
+ # @param value [Array<Vellum::StringVellumValue>]
23
23
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
24
24
  # @return [Vellum::ThinkingVellumValue]
25
25
  def initialize(type:, value:, additional_properties: nil)
@@ -36,12 +36,10 @@ module Vellum
36
36
  struct = JSON.parse(json_object, object_class: OpenStruct)
37
37
  parsed_json = JSON.parse(json_object)
38
38
  type = parsed_json["type"]
39
- unless parsed_json["value"].nil?
40
- value = parsed_json["value"].to_json
41
- value = Vellum::StringVellumValue.from_json(json_object: value)
42
- else
43
- value = nil
44
- end
39
+ value = parsed_json["value"]&.map do | item |
40
+ item = item.to_json
41
+ Vellum::StringVellumValue.from_json(json_object: item)
42
+ end
45
43
  new(
46
44
  type: type,
47
45
  value: value,
@@ -62,7 +60,7 @@ module Vellum
62
60
  # @return [Void]
63
61
  def self.validate_raw(obj:)
64
62
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
65
- Vellum::StringVellumValue.validate_raw(obj: obj.value)
63
+ obj.value.is_a?(Array) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
66
64
  end
67
65
  end
68
66
  end
@@ -8,7 +8,7 @@ module Vellum
8
8
  class ThinkingVellumValueRequest
9
9
  # @return [String]
10
10
  attr_reader :type
11
- # @return [Vellum::StringVellumValueRequest]
11
+ # @return [Array<Vellum::StringVellumValueRequest>]
12
12
  attr_reader :value
13
13
  # @return [OpenStruct] Additional properties unmapped to the current class definition
14
14
  attr_reader :additional_properties
@@ -19,7 +19,7 @@ module Vellum
19
19
  OMIT = Object.new
20
20
 
21
21
  # @param type [String]
22
- # @param value [Vellum::StringVellumValueRequest]
22
+ # @param value [Array<Vellum::StringVellumValueRequest>]
23
23
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
24
24
  # @return [Vellum::ThinkingVellumValueRequest]
25
25
  def initialize(type:, value:, additional_properties: nil)
@@ -36,12 +36,10 @@ module Vellum
36
36
  struct = JSON.parse(json_object, object_class: OpenStruct)
37
37
  parsed_json = JSON.parse(json_object)
38
38
  type = parsed_json["type"]
39
- unless parsed_json["value"].nil?
40
- value = parsed_json["value"].to_json
41
- value = Vellum::StringVellumValueRequest.from_json(json_object: value)
42
- else
43
- value = nil
44
- end
39
+ value = parsed_json["value"]&.map do | item |
40
+ item = item.to_json
41
+ Vellum::StringVellumValueRequest.from_json(json_object: item)
42
+ end
45
43
  new(
46
44
  type: type,
47
45
  value: value,
@@ -62,7 +60,7 @@ module Vellum
62
60
  # @return [Void]
63
61
  def self.validate_raw(obj:)
64
62
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
65
- Vellum::StringVellumValueRequest.validate_raw(obj: obj.value)
63
+ obj.value.is_a?(Array) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
66
64
  end
67
65
  end
68
66
  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: 0.14.85
4
+ version: 0.14.86
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vellum