vellum_ai 1.5.6 → 1.6.0
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/composio_tool_definition.rb +9 -2
- data/lib/vellum_ai/types/named_test_case_audio_variable_value.rb +6 -4
- data/lib/vellum_ai/types/named_test_case_audio_variable_value_request.rb +6 -4
- data/lib/vellum_ai/types/named_test_case_document_variable_value.rb +6 -4
- data/lib/vellum_ai/types/named_test_case_document_variable_value_request.rb +6 -4
- data/lib/vellum_ai/types/named_test_case_image_variable_value.rb +6 -4
- data/lib/vellum_ai/types/named_test_case_image_variable_value_request.rb +6 -4
- data/lib/vellum_ai/types/named_test_case_video_variable_value.rb +6 -4
- data/lib/vellum_ai/types/named_test_case_video_variable_value_request.rb +6 -4
- data/lib/vellum_ai/types/slim_composio_tool_definition.rb +9 -2
- data/lib/vellum_ai/types/test_case_audio_variable_value.rb +3 -3
- data/lib/vellum_ai/types/test_case_document_variable_value.rb +3 -3
- data/lib/vellum_ai/types/test_case_image_variable_value.rb +3 -3
- data/lib/vellum_ai/types/test_case_video_variable_value.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f09af9383b24079d6149b77a9dde5a2bc4f21d16f5c636d3262467116e1da91e
|
4
|
+
data.tar.gz: d31bb8c0afd3e8818228f0259a229ad7170055db286335447f8a633422413a86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43b6072b40b3c0e611b61efa49c0d7bed82b2fe2a21d7e5c3ccf6c53a2b817018b6f2be5fd63edc171f21a1a2a7721a641293dcc905051ec5d16c645f2fa9a88
|
7
|
+
data.tar.gz: 4a0ac1f988bbac1aeece35dadf2ad6d3eff95ef7a9ef94ef3e896dccdfa9dee8a9363fa2162ac2accb9f59406eff1744c6e33bd56b7278d110c916ec0d4ffd9e
|
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.
|
59
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.6.0' }
|
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.
|
110
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.6.0' }
|
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
|
@@ -12,6 +12,8 @@ module Vellum
|
|
12
12
|
attr_reader :integration
|
13
13
|
# @return [String]
|
14
14
|
attr_reader :name
|
15
|
+
# @return [String]
|
16
|
+
attr_reader :label
|
15
17
|
# @return [String]
|
16
18
|
attr_reader :description
|
17
19
|
# @return [Hash{String => Object}]
|
@@ -29,20 +31,22 @@ module Vellum
|
|
29
31
|
# @param provider [String]
|
30
32
|
# @param integration [Vellum::ToolDefinitionIntegration]
|
31
33
|
# @param name [String]
|
34
|
+
# @param label [String]
|
32
35
|
# @param description [String]
|
33
36
|
# @param input_parameters [Hash{String => Object}]
|
34
37
|
# @param output_parameters [Hash{String => Object}]
|
35
38
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
36
39
|
# @return [Vellum::ComposioToolDefinition]
|
37
|
-
def initialize(provider:, integration:, name:, description:, input_parameters:, output_parameters:, additional_properties: nil)
|
40
|
+
def initialize(provider:, integration:, name:, label:, description:, input_parameters:, output_parameters:, additional_properties: nil)
|
38
41
|
@provider = provider
|
39
42
|
@integration = integration
|
40
43
|
@name = name
|
44
|
+
@label = label
|
41
45
|
@description = description
|
42
46
|
@input_parameters = input_parameters
|
43
47
|
@output_parameters = output_parameters
|
44
48
|
@additional_properties = additional_properties
|
45
|
-
@_field_set = { "provider": provider, "integration": integration, "name": name, "description": description, "input_parameters": input_parameters, "output_parameters": output_parameters }
|
49
|
+
@_field_set = { "provider": provider, "integration": integration, "name": name, "label": label, "description": description, "input_parameters": input_parameters, "output_parameters": output_parameters }
|
46
50
|
end
|
47
51
|
# Deserialize a JSON object to an instance of ComposioToolDefinition
|
48
52
|
#
|
@@ -59,6 +63,7 @@ module Vellum
|
|
59
63
|
integration = nil
|
60
64
|
end
|
61
65
|
name = parsed_json["name"]
|
66
|
+
label = parsed_json["label"]
|
62
67
|
description = parsed_json["description"]
|
63
68
|
input_parameters = parsed_json["input_parameters"]
|
64
69
|
output_parameters = parsed_json["output_parameters"]
|
@@ -66,6 +71,7 @@ module Vellum
|
|
66
71
|
provider: provider,
|
67
72
|
integration: integration,
|
68
73
|
name: name,
|
74
|
+
label: label,
|
69
75
|
description: description,
|
70
76
|
input_parameters: input_parameters,
|
71
77
|
output_parameters: output_parameters,
|
@@ -88,6 +94,7 @@ module Vellum
|
|
88
94
|
obj.provider.is_a?(String) != false || raise("Passed value for field obj.provider is not the expected type, validation failed.")
|
89
95
|
Vellum::ToolDefinitionIntegration.validate_raw(obj: obj.integration)
|
90
96
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
97
|
+
obj.label.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
|
91
98
|
obj.description.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
92
99
|
obj.input_parameters.is_a?(Hash) != false || raise("Passed value for field obj.input_parameters is not the expected type, validation failed.")
|
93
100
|
obj.output_parameters.is_a?(Hash) != false || raise("Passed value for field obj.output_parameters is not the expected type, validation failed.")
|
@@ -25,12 +25,14 @@ module Vellum
|
|
25
25
|
# @param name [String]
|
26
26
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
27
27
|
# @return [Vellum::NamedTestCaseAudioVariableValue]
|
28
|
-
def initialize(type:, value
|
28
|
+
def initialize(type:, value: OMIT, name:, additional_properties: nil)
|
29
29
|
@type = type
|
30
|
-
@value = value
|
30
|
+
@value = value if value != OMIT
|
31
31
|
@name = name
|
32
32
|
@additional_properties = additional_properties
|
33
|
-
@_field_set = { "type": type, "value": value, "name": name }
|
33
|
+
@_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
|
34
|
+
v == OMIT
|
35
|
+
end
|
34
36
|
end
|
35
37
|
# Deserialize a JSON object to an instance of NamedTestCaseAudioVariableValue
|
36
38
|
#
|
@@ -68,7 +70,7 @@ module Vellum
|
|
68
70
|
# @return [Void]
|
69
71
|
def self.validate_raw(obj:)
|
70
72
|
obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
71
|
-
Vellum::VellumAudio.validate_raw(obj: obj.value)
|
73
|
+
obj.value.nil? || Vellum::VellumAudio.validate_raw(obj: obj.value)
|
72
74
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
73
75
|
end
|
74
76
|
end
|
@@ -25,12 +25,14 @@ module Vellum
|
|
25
25
|
# @param name [String]
|
26
26
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
27
27
|
# @return [Vellum::NamedTestCaseAudioVariableValueRequest]
|
28
|
-
def initialize(type:, value
|
28
|
+
def initialize(type:, value: OMIT, name:, additional_properties: nil)
|
29
29
|
@type = type
|
30
|
-
@value = value
|
30
|
+
@value = value if value != OMIT
|
31
31
|
@name = name
|
32
32
|
@additional_properties = additional_properties
|
33
|
-
@_field_set = { "type": type, "value": value, "name": name }
|
33
|
+
@_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
|
34
|
+
v == OMIT
|
35
|
+
end
|
34
36
|
end
|
35
37
|
# Deserialize a JSON object to an instance of
|
36
38
|
# NamedTestCaseAudioVariableValueRequest
|
@@ -69,7 +71,7 @@ module Vellum
|
|
69
71
|
# @return [Void]
|
70
72
|
def self.validate_raw(obj:)
|
71
73
|
obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
72
|
-
Vellum::VellumAudioRequest.validate_raw(obj: obj.value)
|
74
|
+
obj.value.nil? || Vellum::VellumAudioRequest.validate_raw(obj: obj.value)
|
73
75
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
74
76
|
end
|
75
77
|
end
|
@@ -24,12 +24,14 @@ module Vellum
|
|
24
24
|
# @param name [String]
|
25
25
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
26
26
|
# @return [Vellum::NamedTestCaseDocumentVariableValue]
|
27
|
-
def initialize(type:, value
|
27
|
+
def initialize(type:, value: OMIT, name:, additional_properties: nil)
|
28
28
|
@type = type
|
29
|
-
@value = value
|
29
|
+
@value = value if value != OMIT
|
30
30
|
@name = name
|
31
31
|
@additional_properties = additional_properties
|
32
|
-
@_field_set = { "type": type, "value": value, "name": name }
|
32
|
+
@_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
|
33
|
+
v == OMIT
|
34
|
+
end
|
33
35
|
end
|
34
36
|
# Deserialize a JSON object to an instance of NamedTestCaseDocumentVariableValue
|
35
37
|
#
|
@@ -67,7 +69,7 @@ module Vellum
|
|
67
69
|
# @return [Void]
|
68
70
|
def self.validate_raw(obj:)
|
69
71
|
obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
70
|
-
Vellum::VellumDocument.validate_raw(obj: obj.value)
|
72
|
+
obj.value.nil? || Vellum::VellumDocument.validate_raw(obj: obj.value)
|
71
73
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
72
74
|
end
|
73
75
|
end
|
@@ -24,12 +24,14 @@ module Vellum
|
|
24
24
|
# @param name [String]
|
25
25
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
26
26
|
# @return [Vellum::NamedTestCaseDocumentVariableValueRequest]
|
27
|
-
def initialize(type:, value
|
27
|
+
def initialize(type:, value: OMIT, name:, additional_properties: nil)
|
28
28
|
@type = type
|
29
|
-
@value = value
|
29
|
+
@value = value if value != OMIT
|
30
30
|
@name = name
|
31
31
|
@additional_properties = additional_properties
|
32
|
-
@_field_set = { "type": type, "value": value, "name": name }
|
32
|
+
@_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
|
33
|
+
v == OMIT
|
34
|
+
end
|
33
35
|
end
|
34
36
|
# Deserialize a JSON object to an instance of
|
35
37
|
# NamedTestCaseDocumentVariableValueRequest
|
@@ -69,7 +71,7 @@ module Vellum
|
|
69
71
|
# @return [Void]
|
70
72
|
def self.validate_raw(obj:)
|
71
73
|
obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
72
|
-
Vellum::VellumDocumentRequest.validate_raw(obj: obj.value)
|
74
|
+
obj.value.nil? || Vellum::VellumDocumentRequest.validate_raw(obj: obj.value)
|
73
75
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
74
76
|
end
|
75
77
|
end
|
@@ -24,12 +24,14 @@ module Vellum
|
|
24
24
|
# @param name [String]
|
25
25
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
26
26
|
# @return [Vellum::NamedTestCaseImageVariableValue]
|
27
|
-
def initialize(type:, value
|
27
|
+
def initialize(type:, value: OMIT, name:, additional_properties: nil)
|
28
28
|
@type = type
|
29
|
-
@value = value
|
29
|
+
@value = value if value != OMIT
|
30
30
|
@name = name
|
31
31
|
@additional_properties = additional_properties
|
32
|
-
@_field_set = { "type": type, "value": value, "name": name }
|
32
|
+
@_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
|
33
|
+
v == OMIT
|
34
|
+
end
|
33
35
|
end
|
34
36
|
# Deserialize a JSON object to an instance of NamedTestCaseImageVariableValue
|
35
37
|
#
|
@@ -67,7 +69,7 @@ module Vellum
|
|
67
69
|
# @return [Void]
|
68
70
|
def self.validate_raw(obj:)
|
69
71
|
obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
70
|
-
Vellum::VellumImage.validate_raw(obj: obj.value)
|
72
|
+
obj.value.nil? || Vellum::VellumImage.validate_raw(obj: obj.value)
|
71
73
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
72
74
|
end
|
73
75
|
end
|
@@ -24,12 +24,14 @@ module Vellum
|
|
24
24
|
# @param name [String]
|
25
25
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
26
26
|
# @return [Vellum::NamedTestCaseImageVariableValueRequest]
|
27
|
-
def initialize(type:, value
|
27
|
+
def initialize(type:, value: OMIT, name:, additional_properties: nil)
|
28
28
|
@type = type
|
29
|
-
@value = value
|
29
|
+
@value = value if value != OMIT
|
30
30
|
@name = name
|
31
31
|
@additional_properties = additional_properties
|
32
|
-
@_field_set = { "type": type, "value": value, "name": name }
|
32
|
+
@_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
|
33
|
+
v == OMIT
|
34
|
+
end
|
33
35
|
end
|
34
36
|
# Deserialize a JSON object to an instance of
|
35
37
|
# NamedTestCaseImageVariableValueRequest
|
@@ -68,7 +70,7 @@ module Vellum
|
|
68
70
|
# @return [Void]
|
69
71
|
def self.validate_raw(obj:)
|
70
72
|
obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
71
|
-
Vellum::VellumImageRequest.validate_raw(obj: obj.value)
|
73
|
+
obj.value.nil? || Vellum::VellumImageRequest.validate_raw(obj: obj.value)
|
72
74
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
73
75
|
end
|
74
76
|
end
|
@@ -24,12 +24,14 @@ module Vellum
|
|
24
24
|
# @param name [String]
|
25
25
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
26
26
|
# @return [Vellum::NamedTestCaseVideoVariableValue]
|
27
|
-
def initialize(type:, value
|
27
|
+
def initialize(type:, value: OMIT, name:, additional_properties: nil)
|
28
28
|
@type = type
|
29
|
-
@value = value
|
29
|
+
@value = value if value != OMIT
|
30
30
|
@name = name
|
31
31
|
@additional_properties = additional_properties
|
32
|
-
@_field_set = { "type": type, "value": value, "name": name }
|
32
|
+
@_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
|
33
|
+
v == OMIT
|
34
|
+
end
|
33
35
|
end
|
34
36
|
# Deserialize a JSON object to an instance of NamedTestCaseVideoVariableValue
|
35
37
|
#
|
@@ -67,7 +69,7 @@ module Vellum
|
|
67
69
|
# @return [Void]
|
68
70
|
def self.validate_raw(obj:)
|
69
71
|
obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
70
|
-
Vellum::VellumVideo.validate_raw(obj: obj.value)
|
72
|
+
obj.value.nil? || Vellum::VellumVideo.validate_raw(obj: obj.value)
|
71
73
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
72
74
|
end
|
73
75
|
end
|
@@ -24,12 +24,14 @@ module Vellum
|
|
24
24
|
# @param name [String]
|
25
25
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
26
26
|
# @return [Vellum::NamedTestCaseVideoVariableValueRequest]
|
27
|
-
def initialize(type:, value
|
27
|
+
def initialize(type:, value: OMIT, name:, additional_properties: nil)
|
28
28
|
@type = type
|
29
|
-
@value = value
|
29
|
+
@value = value if value != OMIT
|
30
30
|
@name = name
|
31
31
|
@additional_properties = additional_properties
|
32
|
-
@_field_set = { "type": type, "value": value, "name": name }
|
32
|
+
@_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
|
33
|
+
v == OMIT
|
34
|
+
end
|
33
35
|
end
|
34
36
|
# Deserialize a JSON object to an instance of
|
35
37
|
# NamedTestCaseVideoVariableValueRequest
|
@@ -68,7 +70,7 @@ module Vellum
|
|
68
70
|
# @return [Void]
|
69
71
|
def self.validate_raw(obj:)
|
70
72
|
obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
71
|
-
Vellum::VellumVideoRequest.validate_raw(obj: obj.value)
|
73
|
+
obj.value.nil? || Vellum::VellumVideoRequest.validate_raw(obj: obj.value)
|
72
74
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
73
75
|
end
|
74
76
|
end
|
@@ -11,6 +11,8 @@ module Vellum
|
|
11
11
|
attr_reader :integration
|
12
12
|
# @return [String]
|
13
13
|
attr_reader :name
|
14
|
+
# @return [String]
|
15
|
+
attr_reader :label
|
14
16
|
# @return [String]
|
15
17
|
attr_reader :description
|
16
18
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
@@ -24,16 +26,18 @@ module Vellum
|
|
24
26
|
# @param provider [String]
|
25
27
|
# @param integration [Vellum::ToolDefinitionIntegration]
|
26
28
|
# @param name [String]
|
29
|
+
# @param label [String]
|
27
30
|
# @param description [String]
|
28
31
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
29
32
|
# @return [Vellum::SlimComposioToolDefinition]
|
30
|
-
def initialize(provider:, integration:, name:, description:, additional_properties: nil)
|
33
|
+
def initialize(provider:, integration:, name:, label:, description:, additional_properties: nil)
|
31
34
|
@provider = provider
|
32
35
|
@integration = integration
|
33
36
|
@name = name
|
37
|
+
@label = label
|
34
38
|
@description = description
|
35
39
|
@additional_properties = additional_properties
|
36
|
-
@_field_set = { "provider": provider, "integration": integration, "name": name, "description": description }
|
40
|
+
@_field_set = { "provider": provider, "integration": integration, "name": name, "label": label, "description": description }
|
37
41
|
end
|
38
42
|
# Deserialize a JSON object to an instance of SlimComposioToolDefinition
|
39
43
|
#
|
@@ -50,11 +54,13 @@ module Vellum
|
|
50
54
|
integration = nil
|
51
55
|
end
|
52
56
|
name = parsed_json["name"]
|
57
|
+
label = parsed_json["label"]
|
53
58
|
description = parsed_json["description"]
|
54
59
|
new(
|
55
60
|
provider: provider,
|
56
61
|
integration: integration,
|
57
62
|
name: name,
|
63
|
+
label: label,
|
58
64
|
description: description,
|
59
65
|
additional_properties: struct
|
60
66
|
)
|
@@ -75,6 +81,7 @@ module Vellum
|
|
75
81
|
obj.provider.is_a?(String) != false || raise("Passed value for field obj.provider is not the expected type, validation failed.")
|
76
82
|
Vellum::ToolDefinitionIntegration.validate_raw(obj: obj.integration)
|
77
83
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
84
|
+
obj.label.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
|
78
85
|
obj.description.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
79
86
|
end
|
80
87
|
end
|
@@ -28,11 +28,11 @@ module Vellum
|
|
28
28
|
# @param value [Vellum::VellumAudio]
|
29
29
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
30
30
|
# @return [Vellum::TestCaseAudioVariableValue]
|
31
|
-
def initialize(variable_id:, name: OMIT, type:, value
|
31
|
+
def initialize(variable_id:, name: OMIT, type:, value: OMIT, additional_properties: nil)
|
32
32
|
@variable_id = variable_id
|
33
33
|
@name = name if name != OMIT
|
34
34
|
@type = type
|
35
|
-
@value = value
|
35
|
+
@value = value if value != OMIT
|
36
36
|
@additional_properties = additional_properties
|
37
37
|
@_field_set = { "variable_id": variable_id, "name": name, "type": type, "value": value }.reject do | _k, v |
|
38
38
|
v == OMIT
|
@@ -78,7 +78,7 @@ end
|
|
78
78
|
obj.variable_id.is_a?(String) != false || raise("Passed value for field obj.variable_id is not the expected type, validation failed.")
|
79
79
|
obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
80
80
|
obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
81
|
-
Vellum::VellumAudio.validate_raw(obj: obj.value)
|
81
|
+
obj.value.nil? || Vellum::VellumAudio.validate_raw(obj: obj.value)
|
82
82
|
end
|
83
83
|
end
|
84
84
|
end
|
@@ -28,11 +28,11 @@ module Vellum
|
|
28
28
|
# @param value [Vellum::VellumDocument]
|
29
29
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
30
30
|
# @return [Vellum::TestCaseDocumentVariableValue]
|
31
|
-
def initialize(variable_id:, name: OMIT, type:, value
|
31
|
+
def initialize(variable_id:, name: OMIT, type:, value: OMIT, additional_properties: nil)
|
32
32
|
@variable_id = variable_id
|
33
33
|
@name = name if name != OMIT
|
34
34
|
@type = type
|
35
|
-
@value = value
|
35
|
+
@value = value if value != OMIT
|
36
36
|
@additional_properties = additional_properties
|
37
37
|
@_field_set = { "variable_id": variable_id, "name": name, "type": type, "value": value }.reject do | _k, v |
|
38
38
|
v == OMIT
|
@@ -78,7 +78,7 @@ end
|
|
78
78
|
obj.variable_id.is_a?(String) != false || raise("Passed value for field obj.variable_id is not the expected type, validation failed.")
|
79
79
|
obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
80
80
|
obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
81
|
-
Vellum::VellumDocument.validate_raw(obj: obj.value)
|
81
|
+
obj.value.nil? || Vellum::VellumDocument.validate_raw(obj: obj.value)
|
82
82
|
end
|
83
83
|
end
|
84
84
|
end
|
@@ -28,11 +28,11 @@ module Vellum
|
|
28
28
|
# @param value [Vellum::VellumImage]
|
29
29
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
30
30
|
# @return [Vellum::TestCaseImageVariableValue]
|
31
|
-
def initialize(variable_id:, name: OMIT, type:, value
|
31
|
+
def initialize(variable_id:, name: OMIT, type:, value: OMIT, additional_properties: nil)
|
32
32
|
@variable_id = variable_id
|
33
33
|
@name = name if name != OMIT
|
34
34
|
@type = type
|
35
|
-
@value = value
|
35
|
+
@value = value if value != OMIT
|
36
36
|
@additional_properties = additional_properties
|
37
37
|
@_field_set = { "variable_id": variable_id, "name": name, "type": type, "value": value }.reject do | _k, v |
|
38
38
|
v == OMIT
|
@@ -78,7 +78,7 @@ end
|
|
78
78
|
obj.variable_id.is_a?(String) != false || raise("Passed value for field obj.variable_id is not the expected type, validation failed.")
|
79
79
|
obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
80
80
|
obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
81
|
-
Vellum::VellumImage.validate_raw(obj: obj.value)
|
81
|
+
obj.value.nil? || Vellum::VellumImage.validate_raw(obj: obj.value)
|
82
82
|
end
|
83
83
|
end
|
84
84
|
end
|
@@ -28,11 +28,11 @@ module Vellum
|
|
28
28
|
# @param value [Vellum::VellumVideo]
|
29
29
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
30
30
|
# @return [Vellum::TestCaseVideoVariableValue]
|
31
|
-
def initialize(variable_id:, name: OMIT, type:, value
|
31
|
+
def initialize(variable_id:, name: OMIT, type:, value: OMIT, additional_properties: nil)
|
32
32
|
@variable_id = variable_id
|
33
33
|
@name = name if name != OMIT
|
34
34
|
@type = type
|
35
|
-
@value = value
|
35
|
+
@value = value if value != OMIT
|
36
36
|
@additional_properties = additional_properties
|
37
37
|
@_field_set = { "variable_id": variable_id, "name": name, "type": type, "value": value }.reject do | _k, v |
|
38
38
|
v == OMIT
|
@@ -78,7 +78,7 @@ end
|
|
78
78
|
obj.variable_id.is_a?(String) != false || raise("Passed value for field obj.variable_id is not the expected type, validation failed.")
|
79
79
|
obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
80
80
|
obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
81
|
-
Vellum::VellumVideo.validate_raw(obj: obj.value)
|
81
|
+
obj.value.nil? || Vellum::VellumVideo.validate_raw(obj: obj.value)
|
82
82
|
end
|
83
83
|
end
|
84
84
|
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.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vellum
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|