vellum_ai 0.14.82 → 0.14.84

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: 6e00ca20f1383ae38173743feb367ee21e43d2fd83a784b7a6dee2b433e679c5
4
- data.tar.gz: 43a2001f0dc78332b09afca513ed514c3381aafe39dccfd71d9a07cdc4278a90
3
+ metadata.gz: b7ce4d9257371f1dc0ac362ac96354a79ef4ca0d4c8144f782650b47cbbf3094
4
+ data.tar.gz: 87991e357dea5cc332a27c7cbd5704412472229abdc60af0c1ebc561039c1db6
5
5
  SHA512:
6
- metadata.gz: 5fcb61109e27ab32952687bb360421f95cc9e4c196e32b8ab5027ca01b2cb3171936c53fde65000db8df80bb5c4bdd1b9947ac0c9d0023820bbe28c936a9df44
7
- data.tar.gz: 80208911fffc9ffb87b008fb59e4d57c5f061666649767a1ce442c49a680e97ca33460c13f567e926aac720d83f3efb2ac0a06c7b841983aa30c7cf2e666f074
6
+ metadata.gz: '084b5a3dc6f8000a4738d90fee7d84084a37b0dc598f27fbd0692c07105736afc8ec9601358e7e39daf23fa1cb80bc1f773205dd9b74103609e1c53c3c13a253'
7
+ data.tar.gz: e0102d8177b4bc6bf45513a7b4f374ffcd98ffc718eb3b41c2728c836c229315173717ffb772c3409962fe909a30884546653225ac49ddaed34c2323696ca4b3
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.82' }
53
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '0.14.84' }
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.82' }
99
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '0.14.84' }
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
data/lib/types_export.rb CHANGED
@@ -191,6 +191,8 @@ require_relative "vellum_ai/types/generate_stream_result"
191
191
  require_relative "vellum_ai/types/generate_stream_result_data"
192
192
  require_relative "vellum_ai/types/google_vertex_ai_vectorizer_config"
193
193
  require_relative "vellum_ai/types/google_vertex_ai_vectorizer_config_request"
194
+ require_relative "vellum_ai/types/google_vertex_ai_vectorizer_gemini_embedding_001"
195
+ require_relative "vellum_ai/types/google_vertex_ai_vectorizer_gemini_embedding_001_request"
194
196
  require_relative "vellum_ai/types/google_vertex_ai_vectorizer_text_embedding_004"
195
197
  require_relative "vellum_ai/types/google_vertex_ai_vectorizer_text_embedding_004_request"
196
198
  require_relative "vellum_ai/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002"
@@ -129,6 +129,8 @@ end
129
129
  # file's file name.
130
130
  # @param status [Vellum::DOCUMENT_STATUS] The current status of the document
131
131
  # * `ACTIVE` - Active
132
+ # @param keywords [Array<String>] A list of keywords that'll be associated with the document. Used as part of
133
+ # keyword search.
132
134
  # @param metadata [Hash{String => Object}] A JSON object containing any metadata associated with the document that you'd
133
135
  # like to filter upon later.
134
136
  # @param request_options [Vellum::RequestOptions]
@@ -140,7 +142,7 @@ end
140
142
  # api_key: "YOUR_API_KEY"
141
143
  # )
142
144
  # api.documents.partial_update(id: "id")
143
- def partial_update(id:, label: nil, status: nil, metadata: nil, request_options: nil)
145
+ def partial_update(id:, label: nil, status: nil, keywords: nil, metadata: nil, request_options: nil)
144
146
  response = @request_client.conn.patch do | req |
145
147
  unless request_options&.timeout_in_seconds.nil?
146
148
  req.options.timeout = request_options.timeout_in_seconds
@@ -152,7 +154,7 @@ end
152
154
  unless request_options.nil? || request_options&.additional_query_parameters.nil?
153
155
  req.params = { **(request_options&.additional_query_parameters || {}) }.compact
154
156
  end
155
- req.body = { **(request_options&.additional_body_parameters || {}), label: label, status: status, metadata: metadata }.compact
157
+ req.body = { **(request_options&.additional_body_parameters || {}), label: label, status: status, keywords: keywords, metadata: metadata }.compact
156
158
  req.url "#{@request_client.get_url(environment: Default, request_options: request_options)}/v1/documents/#{id}"
157
159
  end
158
160
  Vellum::DocumentRead.from_json(json_object: response.body)
@@ -320,6 +322,8 @@ end
320
322
  # file's file name.
321
323
  # @param status [Vellum::DOCUMENT_STATUS] The current status of the document
322
324
  # * `ACTIVE` - Active
325
+ # @param keywords [Array<String>] A list of keywords that'll be associated with the document. Used as part of
326
+ # keyword search.
323
327
  # @param metadata [Hash{String => Object}] A JSON object containing any metadata associated with the document that you'd
324
328
  # like to filter upon later.
325
329
  # @param request_options [Vellum::RequestOptions]
@@ -331,7 +335,7 @@ end
331
335
  # api_key: "YOUR_API_KEY"
332
336
  # )
333
337
  # api.documents.partial_update(id: "id")
334
- def partial_update(id:, label: nil, status: nil, metadata: nil, request_options: nil)
338
+ def partial_update(id:, label: nil, status: nil, keywords: nil, metadata: nil, request_options: nil)
335
339
  Async do
336
340
  response = @request_client.conn.patch do | req |
337
341
  unless request_options&.timeout_in_seconds.nil?
@@ -344,7 +348,7 @@ end
344
348
  unless request_options.nil? || request_options&.additional_query_parameters.nil?
345
349
  req.params = { **(request_options&.additional_query_parameters || {}) }.compact
346
350
  end
347
- req.body = { **(request_options&.additional_body_parameters || {}), label: label, status: status, metadata: metadata }.compact
351
+ req.body = { **(request_options&.additional_body_parameters || {}), label: label, status: status, keywords: keywords, metadata: metadata }.compact
348
352
  req.url "#{@request_client.get_url(environment: Default, request_options: request_options)}/v1/documents/#{id}"
349
353
  end
350
354
  Vellum::DocumentRead.from_json(json_object: response.body)
@@ -7,6 +7,8 @@ module Vellum
7
7
  class ContainerImageBuildConfig
8
8
  # @return [Array<Vellum::CodeExecutionPackage>]
9
9
  attr_reader :packages
10
+ # @return [String]
11
+ attr_reader :user_script
10
12
  # @return [OpenStruct] Additional properties unmapped to the current class definition
11
13
  attr_reader :additional_properties
12
14
  # @return [Object]
@@ -16,12 +18,16 @@ module Vellum
16
18
  OMIT = Object.new
17
19
 
18
20
  # @param packages [Array<Vellum::CodeExecutionPackage>]
21
+ # @param user_script [String]
19
22
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
20
23
  # @return [Vellum::ContainerImageBuildConfig]
21
- def initialize(packages:, additional_properties: nil)
24
+ def initialize(packages:, user_script: OMIT, additional_properties: nil)
22
25
  @packages = packages
26
+ @user_script = user_script if user_script != OMIT
23
27
  @additional_properties = additional_properties
24
- @_field_set = { "packages": packages }
28
+ @_field_set = { "packages": packages, "user_script": user_script }.reject do | _k, v |
29
+ v == OMIT
30
+ end
25
31
  end
26
32
  # Deserialize a JSON object to an instance of ContainerImageBuildConfig
27
33
  #
@@ -34,7 +40,12 @@ module Vellum
34
40
  item = item.to_json
35
41
  Vellum::CodeExecutionPackage.from_json(json_object: item)
36
42
  end
37
- new(packages: packages, additional_properties: struct)
43
+ user_script = parsed_json["user_script"]
44
+ new(
45
+ packages: packages,
46
+ user_script: user_script,
47
+ additional_properties: struct
48
+ )
38
49
  end
39
50
  # Serialize an instance of ContainerImageBuildConfig to a JSON object
40
51
  #
@@ -50,6 +61,7 @@ end
50
61
  # @return [Void]
51
62
  def self.validate_raw(obj:)
52
63
  obj.packages.is_a?(Array) != false || raise("Passed value for field obj.packages is not the expected type, validation failed.")
64
+ obj.user_script&.is_a?(String) != false || raise("Passed value for field obj.user_script is not the expected type, validation failed.")
53
65
  end
54
66
  end
55
67
  end
@@ -22,6 +22,9 @@ module Vellum
22
22
  # @return [Vellum::DOCUMENT_STATUS] The current status of the document
23
23
  # * `ACTIVE` - Active
24
24
  attr_reader :status
25
+ # @return [Array<String>] A list of keywords that'll be associated with the document. Used as part of
26
+ # keyword search.
27
+ attr_reader :keywords
25
28
  # @return [String]
26
29
  attr_reader :original_file_url
27
30
  # @return [Array<Vellum::DocumentDocumentToDocumentIndex>]
@@ -45,24 +48,27 @@ module Vellum
45
48
  # @param processing_state [Vellum::DocumentProcessingState]
46
49
  # @param status [Vellum::DOCUMENT_STATUS] The current status of the document
47
50
  # * `ACTIVE` - Active
51
+ # @param keywords [Array<String>] A list of keywords that'll be associated with the document. Used as part of
52
+ # keyword search.
48
53
  # @param original_file_url [String]
49
54
  # @param document_to_document_indexes [Array<Vellum::DocumentDocumentToDocumentIndex>]
50
55
  # @param metadata [Hash{String => Object}] A previously supplied JSON object containing metadata that can be filtered on
51
56
  # when searching.
52
57
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
53
58
  # @return [Vellum::DocumentRead]
54
- def initialize(id:, external_id: OMIT, last_uploaded_at:, label:, processing_state:, status: OMIT, original_file_url: OMIT, document_to_document_indexes:, metadata: OMIT, additional_properties: nil)
59
+ def initialize(id:, external_id: OMIT, last_uploaded_at:, label:, processing_state:, status: OMIT, keywords: OMIT, original_file_url: OMIT, document_to_document_indexes:, metadata: OMIT, additional_properties: nil)
55
60
  @id = id
56
61
  @external_id = external_id if external_id != OMIT
57
62
  @last_uploaded_at = last_uploaded_at
58
63
  @label = label
59
64
  @processing_state = processing_state
60
65
  @status = status if status != OMIT
66
+ @keywords = keywords if keywords != OMIT
61
67
  @original_file_url = original_file_url if original_file_url != OMIT
62
68
  @document_to_document_indexes = document_to_document_indexes
63
69
  @metadata = metadata if metadata != OMIT
64
70
  @additional_properties = additional_properties
65
- @_field_set = { "id": id, "external_id": external_id, "last_uploaded_at": last_uploaded_at, "label": label, "processing_state": processing_state, "status": status, "original_file_url": original_file_url, "document_to_document_indexes": document_to_document_indexes, "metadata": metadata }.reject do | _k, v |
71
+ @_field_set = { "id": id, "external_id": external_id, "last_uploaded_at": last_uploaded_at, "label": label, "processing_state": processing_state, "status": status, "keywords": keywords, "original_file_url": original_file_url, "document_to_document_indexes": document_to_document_indexes, "metadata": metadata }.reject do | _k, v |
66
72
  v == OMIT
67
73
  end
68
74
  end
@@ -83,6 +89,7 @@ end
83
89
  label = parsed_json["label"]
84
90
  processing_state = parsed_json["processing_state"]
85
91
  status = parsed_json["status"]
92
+ keywords = parsed_json["keywords"]
86
93
  original_file_url = parsed_json["original_file_url"]
87
94
  document_to_document_indexes = parsed_json["document_to_document_indexes"]&.map do | item |
88
95
  item = item.to_json
@@ -96,6 +103,7 @@ end
96
103
  label: label,
97
104
  processing_state: processing_state,
98
105
  status: status,
106
+ keywords: keywords,
99
107
  original_file_url: original_file_url,
100
108
  document_to_document_indexes: document_to_document_indexes,
101
109
  metadata: metadata,
@@ -121,6 +129,7 @@ end
121
129
  obj.label.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
122
130
  obj.processing_state.is_a?(Vellum::DocumentProcessingState) != false || raise("Passed value for field obj.processing_state is not the expected type, validation failed.")
123
131
  obj.status&.is_a?(String) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
132
+ obj.keywords&.is_a?(Array) != false || raise("Passed value for field obj.keywords is not the expected type, validation failed.")
124
133
  obj.original_file_url&.is_a?(String) != false || raise("Passed value for field obj.original_file_url is not the expected type, validation failed.")
125
134
  obj.document_to_document_indexes.is_a?(Array) != false || raise("Passed value for field obj.document_to_document_indexes is not the expected type, validation failed.")
126
135
  obj.metadata&.is_a?(Hash) != false || raise("Passed value for field obj.metadata is not the expected type, validation failed.")
@@ -12,7 +12,7 @@ module Vellum
12
12
  attr_reader :name
13
13
  # @return [String]
14
14
  attr_reader :type
15
- # @return [Array<Vellum::StringVellumValue>]
15
+ # @return [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 [Array<Vellum::StringVellumValue>]
28
+ # @param value [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,10 +46,12 @@ module Vellum
46
46
  id = parsed_json["id"]
47
47
  name = parsed_json["name"]
48
48
  type = parsed_json["type"]
49
- value = parsed_json["value"]&.map do | item |
50
- item = item.to_json
51
- Vellum::StringVellumValue.from_json(json_object: item)
52
- end
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
53
55
  new(
54
56
  id: id,
55
57
  name: name,
@@ -74,7 +76,7 @@ end
74
76
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
75
77
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
76
78
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
77
- obj.value.is_a?(Array) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
79
+ Vellum::StringVellumValue.validate_raw(obj: obj.value)
78
80
  end
79
81
  end
80
82
  end
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+ require_relative "google_vertex_ai_vectorizer_config"
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module Vellum
7
+ class GoogleVertexAiVectorizerGeminiEmbedding001
8
+ # @return [String]
9
+ attr_reader :model_name
10
+ # @return [Vellum::GoogleVertexAiVectorizerConfig]
11
+ attr_reader :config
12
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
13
+ attr_reader :additional_properties
14
+ # @return [Object]
15
+ attr_reader :_field_set
16
+ protected :_field_set
17
+
18
+ OMIT = Object.new
19
+
20
+ # @param model_name [String]
21
+ # @param config [Vellum::GoogleVertexAiVectorizerConfig]
22
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
23
+ # @return [Vellum::GoogleVertexAiVectorizerGeminiEmbedding001]
24
+ def initialize(model_name:, config:, additional_properties: nil)
25
+ @model_name = model_name
26
+ @config = config
27
+ @additional_properties = additional_properties
28
+ @_field_set = { "model_name": model_name, "config": config }
29
+ end
30
+ # Deserialize a JSON object to an instance of
31
+ # GoogleVertexAiVectorizerGeminiEmbedding001
32
+ #
33
+ # @param json_object [String]
34
+ # @return [Vellum::GoogleVertexAiVectorizerGeminiEmbedding001]
35
+ def self.from_json(json_object:)
36
+ struct = JSON.parse(json_object, object_class: OpenStruct)
37
+ parsed_json = JSON.parse(json_object)
38
+ model_name = parsed_json["model_name"]
39
+ unless parsed_json["config"].nil?
40
+ config = parsed_json["config"].to_json
41
+ config = Vellum::GoogleVertexAiVectorizerConfig.from_json(json_object: config)
42
+ else
43
+ config = nil
44
+ end
45
+ new(
46
+ model_name: model_name,
47
+ config: config,
48
+ additional_properties: struct
49
+ )
50
+ end
51
+ # Serialize an instance of GoogleVertexAiVectorizerGeminiEmbedding001 to a JSON
52
+ # object
53
+ #
54
+ # @return [String]
55
+ def to_json
56
+ @_field_set&.to_json
57
+ end
58
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
59
+ # hash and check each fields type against the current object's property
60
+ # definitions.
61
+ #
62
+ # @param obj [Object]
63
+ # @return [Void]
64
+ def self.validate_raw(obj:)
65
+ obj.model_name.is_a?(String) != false || raise("Passed value for field obj.model_name is not the expected type, validation failed.")
66
+ Vellum::GoogleVertexAiVectorizerConfig.validate_raw(obj: obj.config)
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+ require_relative "google_vertex_ai_vectorizer_config_request"
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module Vellum
7
+ class GoogleVertexAiVectorizerGeminiEmbedding001Request
8
+ # @return [String]
9
+ attr_reader :model_name
10
+ # @return [Vellum::GoogleVertexAiVectorizerConfigRequest]
11
+ attr_reader :config
12
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
13
+ attr_reader :additional_properties
14
+ # @return [Object]
15
+ attr_reader :_field_set
16
+ protected :_field_set
17
+
18
+ OMIT = Object.new
19
+
20
+ # @param model_name [String]
21
+ # @param config [Vellum::GoogleVertexAiVectorizerConfigRequest]
22
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
23
+ # @return [Vellum::GoogleVertexAiVectorizerGeminiEmbedding001Request]
24
+ def initialize(model_name:, config:, additional_properties: nil)
25
+ @model_name = model_name
26
+ @config = config
27
+ @additional_properties = additional_properties
28
+ @_field_set = { "model_name": model_name, "config": config }
29
+ end
30
+ # Deserialize a JSON object to an instance of
31
+ # GoogleVertexAiVectorizerGeminiEmbedding001Request
32
+ #
33
+ # @param json_object [String]
34
+ # @return [Vellum::GoogleVertexAiVectorizerGeminiEmbedding001Request]
35
+ def self.from_json(json_object:)
36
+ struct = JSON.parse(json_object, object_class: OpenStruct)
37
+ parsed_json = JSON.parse(json_object)
38
+ model_name = parsed_json["model_name"]
39
+ unless parsed_json["config"].nil?
40
+ config = parsed_json["config"].to_json
41
+ config = Vellum::GoogleVertexAiVectorizerConfigRequest.from_json(json_object: config)
42
+ else
43
+ config = nil
44
+ end
45
+ new(
46
+ model_name: model_name,
47
+ config: config,
48
+ additional_properties: struct
49
+ )
50
+ end
51
+ # Serialize an instance of GoogleVertexAiVectorizerGeminiEmbedding001Request to a
52
+ # JSON object
53
+ #
54
+ # @return [String]
55
+ def to_json
56
+ @_field_set&.to_json
57
+ end
58
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
59
+ # hash and check each fields type against the current object's property
60
+ # definitions.
61
+ #
62
+ # @param obj [Object]
63
+ # @return [Void]
64
+ def self.validate_raw(obj:)
65
+ obj.model_name.is_a?(String) != false || raise("Passed value for field obj.model_name is not the expected type, validation failed.")
66
+ Vellum::GoogleVertexAiVectorizerConfigRequest.validate_raw(obj: obj.config)
67
+ end
68
+ end
69
+ end
@@ -9,6 +9,7 @@ require_relative "basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot
9
9
  require_relative "hkunlp_instructor_xl_vectorizer"
10
10
  require_relative "google_vertex_ai_vectorizer_text_embedding_004"
11
11
  require_relative "google_vertex_ai_vectorizer_text_multilingual_embedding_002"
12
+ require_relative "google_vertex_ai_vectorizer_gemini_embedding_001"
12
13
  require_relative "fast_embed_vectorizer_baai_bge_small_en_v_15"
13
14
 
14
15
  module Vellum
@@ -107,6 +108,16 @@ end
107
108
  return Vellum::GoogleVertexAiVectorizerTextMultilingualEmbedding002.from_json(json_object: struct)
108
109
  else
109
110
  return nil
111
+ end
112
+ rescue StandardError
113
+ # noop
114
+ end
115
+ begin
116
+ Vellum::GoogleVertexAiVectorizerGeminiEmbedding001.validate_raw(obj: struct)
117
+ unless struct.nil?
118
+ return Vellum::GoogleVertexAiVectorizerGeminiEmbedding001.from_json(json_object: struct)
119
+ else
120
+ return nil
110
121
  end
111
122
  rescue StandardError
112
123
  # noop
@@ -175,6 +186,11 @@ end
175
186
  rescue StandardError
176
187
  # noop
177
188
  end
189
+ begin
190
+ return Vellum::GoogleVertexAiVectorizerGeminiEmbedding001.validate_raw(obj: obj)
191
+ rescue StandardError
192
+ # noop
193
+ end
178
194
  begin
179
195
  return Vellum::FastEmbedVectorizerBaaiBgeSmallEnV15.validate_raw(obj: obj)
180
196
  rescue StandardError
@@ -9,6 +9,7 @@ require_relative "basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot
9
9
  require_relative "hkunlp_instructor_xl_vectorizer_request"
10
10
  require_relative "google_vertex_ai_vectorizer_text_embedding_004_request"
11
11
  require_relative "google_vertex_ai_vectorizer_text_multilingual_embedding_002_request"
12
+ require_relative "google_vertex_ai_vectorizer_gemini_embedding_001_request"
12
13
  require_relative "fast_embed_vectorizer_baai_bge_small_en_v_15_request"
13
14
 
14
15
  module Vellum
@@ -107,6 +108,16 @@ end
107
108
  return Vellum::GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.from_json(json_object: struct)
108
109
  else
109
110
  return nil
111
+ end
112
+ rescue StandardError
113
+ # noop
114
+ end
115
+ begin
116
+ Vellum::GoogleVertexAiVectorizerGeminiEmbedding001Request.validate_raw(obj: struct)
117
+ unless struct.nil?
118
+ return Vellum::GoogleVertexAiVectorizerGeminiEmbedding001Request.from_json(json_object: struct)
119
+ else
120
+ return nil
110
121
  end
111
122
  rescue StandardError
112
123
  # noop
@@ -175,6 +186,11 @@ end
175
186
  rescue StandardError
176
187
  # noop
177
188
  end
189
+ begin
190
+ return Vellum::GoogleVertexAiVectorizerGeminiEmbedding001Request.validate_raw(obj: obj)
191
+ rescue StandardError
192
+ # noop
193
+ end
178
194
  begin
179
195
  return Vellum::FastEmbedVectorizerBaaiBgeSmallEnV15Request.validate_raw(obj: obj)
180
196
  rescue StandardError
@@ -8,7 +8,7 @@ module Vellum
8
8
  class ThinkingVellumValue
9
9
  # @return [String]
10
10
  attr_reader :type
11
- # @return [Array<Vellum::StringVellumValue>]
11
+ # @return [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 [Array<Vellum::StringVellumValue>]
22
+ # @param value [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,10 +36,12 @@ 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
- value = parsed_json["value"]&.map do | item |
40
- item = item.to_json
41
- Vellum::StringVellumValue.from_json(json_object: item)
42
- end
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
43
45
  new(
44
46
  type: type,
45
47
  value: value,
@@ -60,7 +62,7 @@ end
60
62
  # @return [Void]
61
63
  def self.validate_raw(obj:)
62
64
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
63
- obj.value.is_a?(Array) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
65
+ Vellum::StringVellumValue.validate_raw(obj: obj.value)
64
66
  end
65
67
  end
66
68
  end
@@ -8,7 +8,7 @@ module Vellum
8
8
  class ThinkingVellumValueRequest
9
9
  # @return [String]
10
10
  attr_reader :type
11
- # @return [Array<Vellum::StringVellumValueRequest>]
11
+ # @return [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 [Array<Vellum::StringVellumValueRequest>]
22
+ # @param value [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,10 +36,12 @@ 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
- value = parsed_json["value"]&.map do | item |
40
- item = item.to_json
41
- Vellum::StringVellumValueRequest.from_json(json_object: item)
42
- end
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
43
45
  new(
44
46
  type: type,
45
47
  value: value,
@@ -60,7 +62,7 @@ end
60
62
  # @return [Void]
61
63
  def self.validate_raw(obj:)
62
64
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
63
- obj.value.is_a?(Array) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
65
+ Vellum::StringVellumValueRequest.validate_raw(obj: obj.value)
64
66
  end
65
67
  end
66
68
  end
@@ -12,6 +12,10 @@ module Vellum
12
12
  attr_reader :description
13
13
  # @return [String]
14
14
  attr_reader :icon_name
15
+ # @return [String]
16
+ attr_reader :ui_image_url
17
+ # @return [String]
18
+ attr_reader :code_image_url
15
19
  # @return [OpenStruct] Additional properties unmapped to the current class definition
16
20
  attr_reader :additional_properties
17
21
  # @return [Object]
@@ -24,15 +28,19 @@ module Vellum
24
28
  # @param label [String]
25
29
  # @param description [String]
26
30
  # @param icon_name [String]
31
+ # @param ui_image_url [String]
32
+ # @param code_image_url [String]
27
33
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
28
34
  # @return [Vellum::WorkflowSandboxExample]
29
- def initialize(id:, label:, description: OMIT, icon_name: OMIT, additional_properties: nil)
35
+ def initialize(id:, label:, description: OMIT, icon_name: OMIT, ui_image_url: OMIT, code_image_url: OMIT, additional_properties: nil)
30
36
  @id = id
31
37
  @label = label
32
38
  @description = description if description != OMIT
33
39
  @icon_name = icon_name if icon_name != OMIT
40
+ @ui_image_url = ui_image_url if ui_image_url != OMIT
41
+ @code_image_url = code_image_url if code_image_url != OMIT
34
42
  @additional_properties = additional_properties
35
- @_field_set = { "id": id, "label": label, "description": description, "icon_name": icon_name }.reject do | _k, v |
43
+ @_field_set = { "id": id, "label": label, "description": description, "icon_name": icon_name, "ui_image_url": ui_image_url, "code_image_url": code_image_url }.reject do | _k, v |
36
44
  v == OMIT
37
45
  end
38
46
  end
@@ -47,11 +55,15 @@ end
47
55
  label = parsed_json["label"]
48
56
  description = parsed_json["description"]
49
57
  icon_name = parsed_json["icon_name"]
58
+ ui_image_url = parsed_json["ui_image_url"]
59
+ code_image_url = parsed_json["code_image_url"]
50
60
  new(
51
61
  id: id,
52
62
  label: label,
53
63
  description: description,
54
64
  icon_name: icon_name,
65
+ ui_image_url: ui_image_url,
66
+ code_image_url: code_image_url,
55
67
  additional_properties: struct
56
68
  )
57
69
  end
@@ -72,6 +84,8 @@ end
72
84
  obj.label.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
73
85
  obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
74
86
  obj.icon_name&.is_a?(String) != false || raise("Passed value for field obj.icon_name is not the expected type, validation failed.")
87
+ obj.ui_image_url&.is_a?(String) != false || raise("Passed value for field obj.ui_image_url is not the expected type, validation failed.")
88
+ obj.code_image_url&.is_a?(String) != false || raise("Passed value for field obj.code_image_url is not the expected type, validation failed.")
75
89
  end
76
90
  end
77
91
  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.82
4
+ version: 0.14.84
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-03 00:00:00.000000000 Z
11
+ date: 2025-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -320,6 +320,8 @@ files:
320
320
  - lib/vellum_ai/types/generate_stream_result_data.rb
321
321
  - lib/vellum_ai/types/google_vertex_ai_vectorizer_config.rb
322
322
  - lib/vellum_ai/types/google_vertex_ai_vectorizer_config_request.rb
323
+ - lib/vellum_ai/types/google_vertex_ai_vectorizer_gemini_embedding_001.rb
324
+ - lib/vellum_ai/types/google_vertex_ai_vectorizer_gemini_embedding_001_request.rb
323
325
  - lib/vellum_ai/types/google_vertex_ai_vectorizer_text_embedding_004.rb
324
326
  - lib/vellum_ai/types/google_vertex_ai_vectorizer_text_embedding_004_request.rb
325
327
  - lib/vellum_ai/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002.rb