ragie_ruby_sdk 1.0.15 → 1.0.17
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/README.md +20 -5
- data/docs/BetaApi.md +140 -0
- data/docs/CodeInterpreterOutput.md +28 -0
- data/docs/CodeInterpreterOutputLogs.md +20 -0
- data/docs/FileSearchOutput.md +26 -0
- data/docs/FileSearchResult.md +26 -0
- data/docs/FinalAnswerStepsInner.md +4 -0
- data/docs/PartitionsApi.md +140 -0
- data/docs/QueryDetails.md +24 -0
- data/docs/ReasoningOutput.md +28 -0
- data/docs/ReasoningSummary.md +20 -0
- data/docs/ReasoningText.md +20 -0
- data/docs/Response.md +1 -1
- data/docs/ResponseOutputInner.md +40 -0
- data/docs/{ResponseOutput.md → ResponseOutputMessage.md} +2 -2
- data/docs/SearchEffort.md +15 -0
- data/docs/SearchStep.md +1 -1
- data/docs/SearchStepWithQueryDetails.md +24 -0
- data/lib/ragie_ruby_sdk/api/beta_api.rb +126 -0
- data/lib/ragie_ruby_sdk/api/partitions_api.rb +126 -0
- data/lib/ragie_ruby_sdk/models/code_interpreter_output.rb +389 -0
- data/lib/ragie_ruby_sdk/models/code_interpreter_output_logs.rb +283 -0
- data/lib/ragie_ruby_sdk/models/file_search_output.rb +368 -0
- data/lib/ragie_ruby_sdk/models/file_search_result.rb +348 -0
- data/lib/ragie_ruby_sdk/models/final_answer_steps_inner.rb +1 -0
- data/lib/ragie_ruby_sdk/models/metadata_value.rb +1 -0
- data/lib/ragie_ruby_sdk/models/query_details.rb +341 -0
- data/lib/ragie_ruby_sdk/models/reasoning_output.rb +391 -0
- data/lib/ragie_ruby_sdk/models/reasoning_summary.rb +283 -0
- data/lib/ragie_ruby_sdk/models/reasoning_text.rb +283 -0
- data/lib/ragie_ruby_sdk/models/response.rb +1 -1
- data/lib/ragie_ruby_sdk/models/response_output_inner.rb +105 -0
- data/lib/ragie_ruby_sdk/models/{response_output.rb → response_output_message.rb} +3 -3
- data/lib/ragie_ruby_sdk/models/search_effort.rb +41 -0
- data/lib/ragie_ruby_sdk/models/search_step.rb +3 -3
- data/lib/ragie_ruby_sdk/models/search_step_with_query_details.rb +306 -0
- data/lib/ragie_ruby_sdk/version.rb +1 -1
- data/lib/ragie_ruby_sdk.rb +12 -1
- data/spec/api/beta_api_spec.rb +24 -0
- data/spec/api/partitions_api_spec.rb +24 -0
- data/spec/models/code_interpreter_output_logs_spec.rb +46 -0
- data/spec/models/code_interpreter_output_spec.rb +74 -0
- data/spec/models/file_search_output_spec.rb +68 -0
- data/spec/models/file_search_result_spec.rb +60 -0
- data/spec/models/query_details_spec.rb +54 -0
- data/spec/models/reasoning_output_spec.rb +74 -0
- data/spec/models/reasoning_summary_spec.rb +46 -0
- data/spec/models/reasoning_text_spec.rb +46 -0
- data/spec/models/response_output_inner_spec.rb +21 -0
- data/spec/models/{response_output_spec.rb → response_output_message_spec.rb} +6 -6
- data/spec/models/search_effort_spec.rb +30 -0
- data/spec/models/search_step_spec.rb +1 -1
- data/spec/models/search_step_with_query_details_spec.rb +58 -0
- metadata +49 -5
|
@@ -0,0 +1,306 @@
|
|
|
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
|
+
# The search request to be made.
|
|
21
|
+
attr_accessor :search
|
|
22
|
+
|
|
23
|
+
attr_accessor :query_details
|
|
24
|
+
|
|
25
|
+
# A log of the search results you found.
|
|
26
|
+
attr_accessor :search_log
|
|
27
|
+
|
|
28
|
+
class EnumAttributeValidator
|
|
29
|
+
attr_reader :datatype
|
|
30
|
+
attr_reader :allowable_values
|
|
31
|
+
|
|
32
|
+
def initialize(datatype, allowable_values)
|
|
33
|
+
@allowable_values = allowable_values.map do |value|
|
|
34
|
+
case datatype.to_s
|
|
35
|
+
when /Integer/i
|
|
36
|
+
value.to_i
|
|
37
|
+
when /Float/i
|
|
38
|
+
value.to_f
|
|
39
|
+
else
|
|
40
|
+
value
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def valid?(value)
|
|
46
|
+
!value || allowable_values.include?(value)
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
51
|
+
def self.attribute_map
|
|
52
|
+
{
|
|
53
|
+
:'type' => :'type',
|
|
54
|
+
:'search' => :'search',
|
|
55
|
+
:'query_details' => :'query_details',
|
|
56
|
+
:'search_log' => :'search_log'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Returns attribute mapping this model knows about
|
|
61
|
+
def self.acceptable_attribute_map
|
|
62
|
+
attribute_map
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Returns all the JSON keys this model knows about
|
|
66
|
+
def self.acceptable_attributes
|
|
67
|
+
acceptable_attribute_map.values
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Attribute type mapping.
|
|
71
|
+
def self.openapi_types
|
|
72
|
+
{
|
|
73
|
+
:'type' => :'String',
|
|
74
|
+
:'search' => :'Search',
|
|
75
|
+
:'query_details' => :'Array<QueryDetails>',
|
|
76
|
+
:'search_log' => :'String'
|
|
77
|
+
}
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# List of attributes with nullable: true
|
|
81
|
+
def self.openapi_nullable
|
|
82
|
+
Set.new([
|
|
83
|
+
])
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Initializes the object
|
|
87
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
88
|
+
def initialize(attributes = {})
|
|
89
|
+
if (!attributes.is_a?(Hash))
|
|
90
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `RagieRubySdk::SearchStepWithQueryDetails` initialize method"
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
94
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
95
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
96
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
97
|
+
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
|
|
98
|
+
end
|
|
99
|
+
h[k.to_sym] = v
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'type')
|
|
103
|
+
self.type = attributes[:'type']
|
|
104
|
+
else
|
|
105
|
+
self.type = 'search'
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'search')
|
|
109
|
+
self.search = attributes[:'search']
|
|
110
|
+
else
|
|
111
|
+
self.search = nil
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'query_details')
|
|
115
|
+
if (value = attributes[:'query_details']).is_a?(Array)
|
|
116
|
+
self.query_details = value
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'search_log')
|
|
121
|
+
self.search_log = attributes[:'search_log']
|
|
122
|
+
else
|
|
123
|
+
self.search_log = ''
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
128
|
+
# @return Array for valid properties with the reasons
|
|
129
|
+
def list_invalid_properties
|
|
130
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
131
|
+
invalid_properties = Array.new
|
|
132
|
+
if @search.nil?
|
|
133
|
+
invalid_properties.push('invalid value for "search", search cannot be nil.')
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
invalid_properties
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Check to see if the all the properties in the model are valid
|
|
140
|
+
# @return true if the model is valid
|
|
141
|
+
def valid?
|
|
142
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
143
|
+
type_validator = EnumAttributeValidator.new('String', ["search"])
|
|
144
|
+
return false unless type_validator.valid?(@type)
|
|
145
|
+
return false if @search.nil?
|
|
146
|
+
true
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
150
|
+
# @param [Object] type Object to be assigned
|
|
151
|
+
def type=(type)
|
|
152
|
+
validator = EnumAttributeValidator.new('String', ["search"])
|
|
153
|
+
unless validator.valid?(type)
|
|
154
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
155
|
+
end
|
|
156
|
+
@type = type
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Custom attribute writer method with validation
|
|
160
|
+
# @param [Object] search Value to be assigned
|
|
161
|
+
def search=(search)
|
|
162
|
+
if search.nil?
|
|
163
|
+
fail ArgumentError, 'search cannot be nil'
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
@search = search
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Checks equality by comparing each attribute.
|
|
170
|
+
# @param [Object] Object to be compared
|
|
171
|
+
def ==(o)
|
|
172
|
+
return true if self.equal?(o)
|
|
173
|
+
self.class == o.class &&
|
|
174
|
+
type == o.type &&
|
|
175
|
+
search == o.search &&
|
|
176
|
+
query_details == o.query_details &&
|
|
177
|
+
search_log == o.search_log
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# @see the `==` method
|
|
181
|
+
# @param [Object] Object to be compared
|
|
182
|
+
def eql?(o)
|
|
183
|
+
self == o
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Calculates hash code according to all attributes.
|
|
187
|
+
# @return [Integer] Hash code
|
|
188
|
+
def hash
|
|
189
|
+
[type, search, query_details, search_log].hash
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Builds the object from hash
|
|
193
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
194
|
+
# @return [Object] Returns the model itself
|
|
195
|
+
def self.build_from_hash(attributes)
|
|
196
|
+
return nil unless attributes.is_a?(Hash)
|
|
197
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
198
|
+
transformed_hash = {}
|
|
199
|
+
openapi_types.each_pair do |key, type|
|
|
200
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
201
|
+
transformed_hash["#{key}"] = nil
|
|
202
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
203
|
+
# check to ensure the input is an array given that the attribute
|
|
204
|
+
# is documented as an array but the input is not
|
|
205
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
206
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
207
|
+
end
|
|
208
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
209
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
new(transformed_hash)
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Deserializes the data based on type
|
|
216
|
+
# @param string type Data type
|
|
217
|
+
# @param string value Value to be deserialized
|
|
218
|
+
# @return [Object] Deserialized data
|
|
219
|
+
def self._deserialize(type, value)
|
|
220
|
+
case type.to_sym
|
|
221
|
+
when :Time
|
|
222
|
+
Time.parse(value)
|
|
223
|
+
when :Date
|
|
224
|
+
Date.parse(value)
|
|
225
|
+
when :String
|
|
226
|
+
value.to_s
|
|
227
|
+
when :Integer
|
|
228
|
+
value.to_i
|
|
229
|
+
when :Float
|
|
230
|
+
value.to_f
|
|
231
|
+
when :Boolean
|
|
232
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
233
|
+
true
|
|
234
|
+
else
|
|
235
|
+
false
|
|
236
|
+
end
|
|
237
|
+
when :Object
|
|
238
|
+
# generic object (usually a Hash), return directly
|
|
239
|
+
value
|
|
240
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
241
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
242
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
243
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
244
|
+
k_type = Regexp.last_match[:k_type]
|
|
245
|
+
v_type = Regexp.last_match[:v_type]
|
|
246
|
+
{}.tap do |hash|
|
|
247
|
+
value.each do |k, v|
|
|
248
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
else # model
|
|
252
|
+
# models (e.g. Pet) or oneOf
|
|
253
|
+
klass = RagieRubySdk.const_get(type)
|
|
254
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# Returns the string representation of the object
|
|
259
|
+
# @return [String] String presentation of the object
|
|
260
|
+
def to_s
|
|
261
|
+
to_hash.to_s
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
265
|
+
# @return [Hash] Returns the object in the form of hash
|
|
266
|
+
def to_body
|
|
267
|
+
to_hash
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# Returns the object in the form of hash
|
|
271
|
+
# @return [Hash] Returns the object in the form of hash
|
|
272
|
+
def to_hash
|
|
273
|
+
hash = {}
|
|
274
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
275
|
+
value = self.send(attr)
|
|
276
|
+
if value.nil?
|
|
277
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
278
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
hash[param] = _to_hash(value)
|
|
282
|
+
end
|
|
283
|
+
hash
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# Outputs non-array value in the form of hash
|
|
287
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
288
|
+
# @param [Object] value Any valid value
|
|
289
|
+
# @return [Hash] Returns the value in the form of hash
|
|
290
|
+
def _to_hash(value)
|
|
291
|
+
if value.is_a?(Array)
|
|
292
|
+
value.compact.map { |v| _to_hash(v) }
|
|
293
|
+
elsif value.is_a?(Hash)
|
|
294
|
+
{}.tap do |hash|
|
|
295
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
296
|
+
end
|
|
297
|
+
elsif value.respond_to? :to_hash
|
|
298
|
+
value.to_hash
|
|
299
|
+
else
|
|
300
|
+
value
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
end
|
data/lib/ragie_ruby_sdk.rb
CHANGED
|
@@ -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/
|
|
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'
|
data/spec/api/beta_api_spec.rb
CHANGED
|
@@ -81,6 +81,30 @@ describe 'BetaApi' do
|
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
+
# unit tests for disable_mcp_partitions_partition_id_mcp_delete
|
|
85
|
+
# Disable Mcp
|
|
86
|
+
# Disables context-aware descriptions for a partition. This will stop automatically generating descriptions for the partition.
|
|
87
|
+
# @param partition_id
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @return [Object]
|
|
90
|
+
describe 'disable_mcp_partitions_partition_id_mcp_delete test' do
|
|
91
|
+
it 'should work' do
|
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# unit tests for enable_mcp_partitions_partition_id_mcp_post
|
|
97
|
+
# Enable Mcp
|
|
98
|
+
# Enables context-aware descriptions for a partition. This will allow the automatically generate a desccription for based on the documents in the partition.
|
|
99
|
+
# @param partition_id
|
|
100
|
+
# @param [Hash] opts the optional parameters
|
|
101
|
+
# @return [Object]
|
|
102
|
+
describe 'enable_mcp_partitions_partition_id_mcp_post test' do
|
|
103
|
+
it 'should work' do
|
|
104
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
84
108
|
# unit tests for list_authenticators
|
|
85
109
|
# List Authenticators
|
|
86
110
|
# List all authenticators sorted by created_at in descending order. Results are paginated with a max limit of 100. When more authenticators are available, a `cursor` will be provided. Use the `cursor` parameter to retrieve the subsequent page.
|
|
@@ -56,6 +56,30 @@ describe 'PartitionsApi' do
|
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
+
# unit tests for disable_mcp_partitions_partition_id_mcp_delete
|
|
60
|
+
# Disable Mcp
|
|
61
|
+
# Disables context-aware descriptions for a partition. This will stop automatically generating descriptions for the partition.
|
|
62
|
+
# @param partition_id
|
|
63
|
+
# @param [Hash] opts the optional parameters
|
|
64
|
+
# @return [Object]
|
|
65
|
+
describe 'disable_mcp_partitions_partition_id_mcp_delete test' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# unit tests for enable_mcp_partitions_partition_id_mcp_post
|
|
72
|
+
# Enable Mcp
|
|
73
|
+
# Enables context-aware descriptions for a partition. This will allow the automatically generate a desccription for based on the documents in the partition.
|
|
74
|
+
# @param partition_id
|
|
75
|
+
# @param [Hash] opts the optional parameters
|
|
76
|
+
# @return [Object]
|
|
77
|
+
describe 'enable_mcp_partitions_partition_id_mcp_post test' do
|
|
78
|
+
it 'should work' do
|
|
79
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
59
83
|
# unit tests for get_partition_partitions_partition_id_get
|
|
60
84
|
# Get Partition
|
|
61
85
|
# Get a partition by its ID. Includes usage information such as the number of documents and pages hosted and processed. The partition's limits are also included.
|
|
@@ -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
|