vellum_ai 0.14.84 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81f7c9756166ab0688718b64ba1aa21a9e074b3291119a4191a50c4067134da7
|
4
|
+
data.tar.gz: 0130dee05746c3483e9554779d97188891e22efdbf1a1165daaa64fa69b4a66d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
-
|
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
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
-
|
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
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
-
|
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,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vellum_ai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.86
|
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-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|