ragie_ruby_sdk 1.0.16 → 1.0.18

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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -5
  3. data/docs/CodeInterpreterOutput.md +28 -0
  4. data/docs/CodeInterpreterOutputLogs.md +20 -0
  5. data/docs/FileSearchOutput.md +26 -0
  6. data/docs/FileSearchResult.md +26 -0
  7. data/docs/FinalAnswerStepsInner.md +4 -0
  8. data/docs/QueryDetails.md +24 -0
  9. data/docs/Reasoning.md +1 -1
  10. data/docs/ReasoningOutput.md +28 -0
  11. data/docs/ReasoningSummary.md +20 -0
  12. data/docs/ReasoningText.md +20 -0
  13. data/docs/Response.md +4 -4
  14. data/docs/ResponseOutputInner.md +40 -0
  15. data/docs/{ResponseOutput.md → ResponseOutputMessage.md} +2 -2
  16. data/docs/SearchEffort.md +15 -0
  17. data/docs/SearchStep.md +1 -1
  18. data/docs/SearchStepWithQueryDetails.md +28 -0
  19. data/lib/ragie_ruby_sdk/models/code_interpreter_output.rb +389 -0
  20. data/lib/ragie_ruby_sdk/models/code_interpreter_output_logs.rb +283 -0
  21. data/lib/ragie_ruby_sdk/models/file_search_output.rb +368 -0
  22. data/lib/ragie_ruby_sdk/models/file_search_result.rb +348 -0
  23. data/lib/ragie_ruby_sdk/models/final_answer_steps_inner.rb +1 -0
  24. data/lib/ragie_ruby_sdk/models/query_details.rb +341 -0
  25. data/lib/ragie_ruby_sdk/models/reasoning.rb +1 -2
  26. data/lib/ragie_ruby_sdk/models/reasoning_output.rb +391 -0
  27. data/lib/ragie_ruby_sdk/models/reasoning_summary.rb +283 -0
  28. data/lib/ragie_ruby_sdk/models/reasoning_text.rb +283 -0
  29. data/lib/ragie_ruby_sdk/models/response.rb +4 -7
  30. data/lib/ragie_ruby_sdk/models/response_output_inner.rb +105 -0
  31. data/lib/ragie_ruby_sdk/models/{response_output.rb → response_output_message.rb} +3 -3
  32. data/lib/ragie_ruby_sdk/models/search_effort.rb +41 -0
  33. data/lib/ragie_ruby_sdk/models/search_step.rb +3 -3
  34. data/lib/ragie_ruby_sdk/models/search_step_with_query_details.rb +358 -0
  35. data/lib/ragie_ruby_sdk/version.rb +1 -1
  36. data/lib/ragie_ruby_sdk.rb +12 -1
  37. data/spec/models/code_interpreter_output_logs_spec.rb +46 -0
  38. data/spec/models/code_interpreter_output_spec.rb +74 -0
  39. data/spec/models/file_search_output_spec.rb +68 -0
  40. data/spec/models/file_search_result_spec.rb +60 -0
  41. data/spec/models/query_details_spec.rb +54 -0
  42. data/spec/models/reasoning_output_spec.rb +74 -0
  43. data/spec/models/reasoning_summary_spec.rb +46 -0
  44. data/spec/models/reasoning_text_spec.rb +46 -0
  45. data/spec/models/response_output_inner_spec.rb +21 -0
  46. data/spec/models/{response_output_spec.rb → response_output_message_spec.rb} +6 -6
  47. data/spec/models/search_effort_spec.rb +30 -0
  48. data/spec/models/search_step_spec.rb +1 -1
  49. data/spec/models/search_step_with_query_details_spec.rb +70 -0
  50. metadata +49 -5
@@ -0,0 +1,358 @@
1
+ =begin
2
+ #Ragie API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.17.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module RagieRubySdk
17
+ class SearchStepWithQueryDetails
18
+ attr_accessor :type
19
+
20
+ attr_accessor :think
21
+
22
+ attr_accessor :current_question
23
+
24
+ # The search request to be made.
25
+ attr_accessor :search
26
+
27
+ attr_accessor :query_details
28
+
29
+ # A log of the search results you found.
30
+ attr_accessor :search_log
31
+
32
+ class EnumAttributeValidator
33
+ attr_reader :datatype
34
+ attr_reader :allowable_values
35
+
36
+ def initialize(datatype, allowable_values)
37
+ @allowable_values = allowable_values.map do |value|
38
+ case datatype.to_s
39
+ when /Integer/i
40
+ value.to_i
41
+ when /Float/i
42
+ value.to_f
43
+ else
44
+ value
45
+ end
46
+ end
47
+ end
48
+
49
+ def valid?(value)
50
+ !value || allowable_values.include?(value)
51
+ end
52
+ end
53
+
54
+ # Attribute mapping from ruby-style variable name to JSON key.
55
+ def self.attribute_map
56
+ {
57
+ :'type' => :'type',
58
+ :'think' => :'think',
59
+ :'current_question' => :'current_question',
60
+ :'search' => :'search',
61
+ :'query_details' => :'query_details',
62
+ :'search_log' => :'search_log'
63
+ }
64
+ end
65
+
66
+ # Returns attribute mapping this model knows about
67
+ def self.acceptable_attribute_map
68
+ attribute_map
69
+ end
70
+
71
+ # Returns all the JSON keys this model knows about
72
+ def self.acceptable_attributes
73
+ acceptable_attribute_map.values
74
+ end
75
+
76
+ # Attribute type mapping.
77
+ def self.openapi_types
78
+ {
79
+ :'type' => :'String',
80
+ :'think' => :'String',
81
+ :'current_question' => :'String',
82
+ :'search' => :'Search',
83
+ :'query_details' => :'Array<QueryDetails>',
84
+ :'search_log' => :'String'
85
+ }
86
+ end
87
+
88
+ # List of attributes with nullable: true
89
+ def self.openapi_nullable
90
+ Set.new([
91
+ ])
92
+ end
93
+
94
+ # Initializes the object
95
+ # @param [Hash] attributes Model attributes in the form of hash
96
+ def initialize(attributes = {})
97
+ if (!attributes.is_a?(Hash))
98
+ fail ArgumentError, "The input argument (attributes) must be a hash in `RagieRubySdk::SearchStepWithQueryDetails` initialize method"
99
+ end
100
+
101
+ # check to see if the attribute exists and convert string to symbol for hash key
102
+ acceptable_attribute_map = self.class.acceptable_attribute_map
103
+ attributes = attributes.each_with_object({}) { |(k, v), h|
104
+ if (!acceptable_attribute_map.key?(k.to_sym))
105
+ fail ArgumentError, "`#{k}` is not a valid attribute in `RagieRubySdk::SearchStepWithQueryDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
106
+ end
107
+ h[k.to_sym] = v
108
+ }
109
+
110
+ if attributes.key?(:'type')
111
+ self.type = attributes[:'type']
112
+ else
113
+ self.type = 'search'
114
+ end
115
+
116
+ if attributes.key?(:'think')
117
+ self.think = attributes[:'think']
118
+ else
119
+ self.think = nil
120
+ end
121
+
122
+ if attributes.key?(:'current_question')
123
+ self.current_question = attributes[:'current_question']
124
+ else
125
+ self.current_question = nil
126
+ end
127
+
128
+ if attributes.key?(:'search')
129
+ self.search = attributes[:'search']
130
+ else
131
+ self.search = nil
132
+ end
133
+
134
+ if attributes.key?(:'query_details')
135
+ if (value = attributes[:'query_details']).is_a?(Array)
136
+ self.query_details = value
137
+ end
138
+ end
139
+
140
+ if attributes.key?(:'search_log')
141
+ self.search_log = attributes[:'search_log']
142
+ else
143
+ self.search_log = ''
144
+ end
145
+ end
146
+
147
+ # Show invalid properties with the reasons. Usually used together with valid?
148
+ # @return Array for valid properties with the reasons
149
+ def list_invalid_properties
150
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
151
+ invalid_properties = Array.new
152
+ if @think.nil?
153
+ invalid_properties.push('invalid value for "think", think cannot be nil.')
154
+ end
155
+
156
+ if @current_question.nil?
157
+ invalid_properties.push('invalid value for "current_question", current_question cannot be nil.')
158
+ end
159
+
160
+ if @search.nil?
161
+ invalid_properties.push('invalid value for "search", search cannot be nil.')
162
+ end
163
+
164
+ invalid_properties
165
+ end
166
+
167
+ # Check to see if the all the properties in the model are valid
168
+ # @return true if the model is valid
169
+ def valid?
170
+ warn '[DEPRECATED] the `valid?` method is obsolete'
171
+ type_validator = EnumAttributeValidator.new('String', ["search"])
172
+ return false unless type_validator.valid?(@type)
173
+ return false if @think.nil?
174
+ return false if @current_question.nil?
175
+ return false if @search.nil?
176
+ true
177
+ end
178
+
179
+ # Custom attribute writer method checking allowed values (enum).
180
+ # @param [Object] type Object to be assigned
181
+ def type=(type)
182
+ validator = EnumAttributeValidator.new('String', ["search"])
183
+ unless validator.valid?(type)
184
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
185
+ end
186
+ @type = type
187
+ end
188
+
189
+ # Custom attribute writer method with validation
190
+ # @param [Object] think Value to be assigned
191
+ def think=(think)
192
+ if think.nil?
193
+ fail ArgumentError, 'think cannot be nil'
194
+ end
195
+
196
+ @think = think
197
+ end
198
+
199
+ # Custom attribute writer method with validation
200
+ # @param [Object] current_question Value to be assigned
201
+ def current_question=(current_question)
202
+ if current_question.nil?
203
+ fail ArgumentError, 'current_question cannot be nil'
204
+ end
205
+
206
+ @current_question = current_question
207
+ end
208
+
209
+ # Custom attribute writer method with validation
210
+ # @param [Object] search Value to be assigned
211
+ def search=(search)
212
+ if search.nil?
213
+ fail ArgumentError, 'search cannot be nil'
214
+ end
215
+
216
+ @search = search
217
+ end
218
+
219
+ # Checks equality by comparing each attribute.
220
+ # @param [Object] Object to be compared
221
+ def ==(o)
222
+ return true if self.equal?(o)
223
+ self.class == o.class &&
224
+ type == o.type &&
225
+ think == o.think &&
226
+ current_question == o.current_question &&
227
+ search == o.search &&
228
+ query_details == o.query_details &&
229
+ search_log == o.search_log
230
+ end
231
+
232
+ # @see the `==` method
233
+ # @param [Object] Object to be compared
234
+ def eql?(o)
235
+ self == o
236
+ end
237
+
238
+ # Calculates hash code according to all attributes.
239
+ # @return [Integer] Hash code
240
+ def hash
241
+ [type, think, current_question, search, query_details, search_log].hash
242
+ end
243
+
244
+ # Builds the object from hash
245
+ # @param [Hash] attributes Model attributes in the form of hash
246
+ # @return [Object] Returns the model itself
247
+ def self.build_from_hash(attributes)
248
+ return nil unless attributes.is_a?(Hash)
249
+ attributes = attributes.transform_keys(&:to_sym)
250
+ transformed_hash = {}
251
+ openapi_types.each_pair do |key, type|
252
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
253
+ transformed_hash["#{key}"] = nil
254
+ elsif type =~ /\AArray<(.*)>/i
255
+ # check to ensure the input is an array given that the attribute
256
+ # is documented as an array but the input is not
257
+ if attributes[attribute_map[key]].is_a?(Array)
258
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
259
+ end
260
+ elsif !attributes[attribute_map[key]].nil?
261
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
262
+ end
263
+ end
264
+ new(transformed_hash)
265
+ end
266
+
267
+ # Deserializes the data based on type
268
+ # @param string type Data type
269
+ # @param string value Value to be deserialized
270
+ # @return [Object] Deserialized data
271
+ def self._deserialize(type, value)
272
+ case type.to_sym
273
+ when :Time
274
+ Time.parse(value)
275
+ when :Date
276
+ Date.parse(value)
277
+ when :String
278
+ value.to_s
279
+ when :Integer
280
+ value.to_i
281
+ when :Float
282
+ value.to_f
283
+ when :Boolean
284
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
285
+ true
286
+ else
287
+ false
288
+ end
289
+ when :Object
290
+ # generic object (usually a Hash), return directly
291
+ value
292
+ when /\AArray<(?<inner_type>.+)>\z/
293
+ inner_type = Regexp.last_match[:inner_type]
294
+ value.map { |v| _deserialize(inner_type, v) }
295
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
296
+ k_type = Regexp.last_match[:k_type]
297
+ v_type = Regexp.last_match[:v_type]
298
+ {}.tap do |hash|
299
+ value.each do |k, v|
300
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
301
+ end
302
+ end
303
+ else # model
304
+ # models (e.g. Pet) or oneOf
305
+ klass = RagieRubySdk.const_get(type)
306
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
307
+ end
308
+ end
309
+
310
+ # Returns the string representation of the object
311
+ # @return [String] String presentation of the object
312
+ def to_s
313
+ to_hash.to_s
314
+ end
315
+
316
+ # to_body is an alias to to_hash (backward compatibility)
317
+ # @return [Hash] Returns the object in the form of hash
318
+ def to_body
319
+ to_hash
320
+ end
321
+
322
+ # Returns the object in the form of hash
323
+ # @return [Hash] Returns the object in the form of hash
324
+ def to_hash
325
+ hash = {}
326
+ self.class.attribute_map.each_pair do |attr, param|
327
+ value = self.send(attr)
328
+ if value.nil?
329
+ is_nullable = self.class.openapi_nullable.include?(attr)
330
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
331
+ end
332
+
333
+ hash[param] = _to_hash(value)
334
+ end
335
+ hash
336
+ end
337
+
338
+ # Outputs non-array value in the form of hash
339
+ # For object, use to_hash. Otherwise, just return the value
340
+ # @param [Object] value Any valid value
341
+ # @return [Hash] Returns the value in the form of hash
342
+ def _to_hash(value)
343
+ if value.is_a?(Array)
344
+ value.compact.map { |v| _to_hash(v) }
345
+ elsif value.is_a?(Hash)
346
+ {}.tap do |hash|
347
+ value.each { |k, v| hash[k] = _to_hash(v) }
348
+ end
349
+ elsif value.respond_to? :to_hash
350
+ value.to_hash
351
+ else
352
+ value
353
+ end
354
+ end
355
+
356
+ end
357
+
358
+ end
@@ -11,5 +11,5 @@ Generator version: 7.17.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module RagieRubySdk
14
- VERSION = '1.0.16'
14
+ VERSION = '1.0.18'
15
15
  end
@@ -42,6 +42,8 @@ require 'ragie_ruby_sdk/models/body_create_document'
42
42
  require 'ragie_ruby_sdk/models/body_update_document_file'
43
43
  require 'ragie_ruby_sdk/models/bucket_data'
44
44
  require 'ragie_ruby_sdk/models/code_interpreter_evidence'
45
+ require 'ragie_ruby_sdk/models/code_interpreter_output'
46
+ require 'ragie_ruby_sdk/models/code_interpreter_output_logs'
45
47
  require 'ragie_ruby_sdk/models/code_step'
46
48
  require 'ragie_ruby_sdk/models/confluence_data'
47
49
  require 'ragie_ruby_sdk/models/connection'
@@ -94,6 +96,8 @@ require 'ragie_ruby_sdk/models/entity_extracted_webhook_payload'
94
96
  require 'ragie_ruby_sdk/models/entity_list'
95
97
  require 'ragie_ruby_sdk/models/error_message'
96
98
  require 'ragie_ruby_sdk/models/evaluated_answer_step'
99
+ require 'ragie_ruby_sdk/models/file_search_output'
100
+ require 'ragie_ruby_sdk/models/file_search_result'
97
101
  require 'ragie_ruby_sdk/models/final_answer'
98
102
  require 'ragie_ruby_sdk/models/final_answer_evidence_inner'
99
103
  require 'ragie_ruby_sdk/models/final_answer_steps_inner'
@@ -146,22 +150,29 @@ require 'ragie_ruby_sdk/models/public_gcs_connection'
146
150
  require 'ragie_ruby_sdk/models/public_intercom_connection'
147
151
  require 'ragie_ruby_sdk/models/public_s3_compatible_connection'
148
152
  require 'ragie_ruby_sdk/models/public_zendesk_connection'
153
+ require 'ragie_ruby_sdk/models/query_details'
149
154
  require 'ragie_ruby_sdk/models/ragie_api_schema_response_usage'
150
155
  require 'ragie_ruby_sdk/models/ragie_evidence'
151
156
  require 'ragie_ruby_sdk/models/reasoning'
157
+ require 'ragie_ruby_sdk/models/reasoning_output'
158
+ require 'ragie_ruby_sdk/models/reasoning_summary'
159
+ require 'ragie_ruby_sdk/models/reasoning_text'
152
160
  require 'ragie_ruby_sdk/models/request'
153
161
  require 'ragie_ruby_sdk/models/response'
154
162
  require 'ragie_ruby_sdk/models/response_content'
155
163
  require 'ragie_ruby_sdk/models/response_ok'
156
- require 'ragie_ruby_sdk/models/response_output'
164
+ require 'ragie_ruby_sdk/models/response_output_inner'
165
+ require 'ragie_ruby_sdk/models/response_output_message'
157
166
  require 'ragie_ruby_sdk/models/response_patchdocumentmetadata'
158
167
  require 'ragie_ruby_sdk/models/retrieval'
159
168
  require 'ragie_ruby_sdk/models/retrieve_params'
160
169
  require 'ragie_ruby_sdk/models/s3_compatible_credentials'
161
170
  require 'ragie_ruby_sdk/models/scored_chunk'
162
171
  require 'ragie_ruby_sdk/models/search'
172
+ require 'ragie_ruby_sdk/models/search_effort'
163
173
  require 'ragie_ruby_sdk/models/search_result_link'
164
174
  require 'ragie_ruby_sdk/models/search_step'
175
+ require 'ragie_ruby_sdk/models/search_step_with_query_details'
165
176
  require 'ragie_ruby_sdk/models/set_connection_enabled_payload'
166
177
  require 'ragie_ruby_sdk/models/sharepoint_data'
167
178
  require 'ragie_ruby_sdk/models/sharepoint_file_data'
@@ -0,0 +1,46 @@
1
+ =begin
2
+ #Ragie API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.17.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for RagieRubySdk::CodeInterpreterOutputLogs
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe RagieRubySdk::CodeInterpreterOutputLogs do
21
+ #let(:instance) { RagieRubySdk::CodeInterpreterOutputLogs.new }
22
+
23
+ describe 'test an instance of CodeInterpreterOutputLogs' do
24
+ it 'should create an instance of CodeInterpreterOutputLogs' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(RagieRubySdk::CodeInterpreterOutputLogs)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "logs"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "type"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["logs"])
40
+ # validator.allowable_values.each do |value|
41
+ # expect { instance.type = value }.not_to raise_error
42
+ # end
43
+ end
44
+ end
45
+
46
+ end
@@ -0,0 +1,74 @@
1
+ =begin
2
+ #Ragie API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.17.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for RagieRubySdk::CodeInterpreterOutput
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe RagieRubySdk::CodeInterpreterOutput do
21
+ #let(:instance) { RagieRubySdk::CodeInterpreterOutput.new }
22
+
23
+ describe 'test an instance of CodeInterpreterOutput' do
24
+ it 'should create an instance of CodeInterpreterOutput' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(RagieRubySdk::CodeInterpreterOutput)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "code"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "container_id"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "outputs"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "type"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["code_interpreter_output"])
58
+ # validator.allowable_values.each do |value|
59
+ # expect { instance.type = value }.not_to raise_error
60
+ # end
61
+ end
62
+ end
63
+
64
+ describe 'test attribute "status"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
67
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["in_progress", "interpreting", "completed", "incomplete", "failed"])
68
+ # validator.allowable_values.each do |value|
69
+ # expect { instance.status = value }.not_to raise_error
70
+ # end
71
+ end
72
+ end
73
+
74
+ end
@@ -0,0 +1,68 @@
1
+ =begin
2
+ #Ragie API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.17.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for RagieRubySdk::FileSearchOutput
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe RagieRubySdk::FileSearchOutput do
21
+ #let(:instance) { RagieRubySdk::FileSearchOutput.new }
22
+
23
+ describe 'test an instance of FileSearchOutput' do
24
+ it 'should create an instance of FileSearchOutput' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(RagieRubySdk::FileSearchOutput)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "queries"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "status"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["in_progress", "searching", "incomplete", "completed", "failed"])
46
+ # validator.allowable_values.each do |value|
47
+ # expect { instance.status = value }.not_to raise_error
48
+ # end
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "type"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["file_search_call"])
56
+ # validator.allowable_values.each do |value|
57
+ # expect { instance.type = value }.not_to raise_error
58
+ # end
59
+ end
60
+ end
61
+
62
+ describe 'test attribute "results"' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
65
+ end
66
+ end
67
+
68
+ end
@@ -0,0 +1,60 @@
1
+ =begin
2
+ #Ragie API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.17.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for RagieRubySdk::FileSearchResult
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe RagieRubySdk::FileSearchResult do
21
+ #let(:instance) { RagieRubySdk::FileSearchResult.new }
22
+
23
+ describe 'test an instance of FileSearchResult' do
24
+ it 'should create an instance of FileSearchResult' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(RagieRubySdk::FileSearchResult)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "file_id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "filename"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "score"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "text"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "attributes"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ end