ragie_ruby_sdk 1.0.16 → 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.
Files changed (48) 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/ReasoningOutput.md +28 -0
  10. data/docs/ReasoningSummary.md +20 -0
  11. data/docs/ReasoningText.md +20 -0
  12. data/docs/Response.md +1 -1
  13. data/docs/ResponseOutputInner.md +40 -0
  14. data/docs/{ResponseOutput.md → ResponseOutputMessage.md} +2 -2
  15. data/docs/SearchEffort.md +15 -0
  16. data/docs/SearchStep.md +1 -1
  17. data/docs/SearchStepWithQueryDetails.md +24 -0
  18. data/lib/ragie_ruby_sdk/models/code_interpreter_output.rb +389 -0
  19. data/lib/ragie_ruby_sdk/models/code_interpreter_output_logs.rb +283 -0
  20. data/lib/ragie_ruby_sdk/models/file_search_output.rb +368 -0
  21. data/lib/ragie_ruby_sdk/models/file_search_result.rb +348 -0
  22. data/lib/ragie_ruby_sdk/models/final_answer_steps_inner.rb +1 -0
  23. data/lib/ragie_ruby_sdk/models/query_details.rb +341 -0
  24. data/lib/ragie_ruby_sdk/models/reasoning_output.rb +391 -0
  25. data/lib/ragie_ruby_sdk/models/reasoning_summary.rb +283 -0
  26. data/lib/ragie_ruby_sdk/models/reasoning_text.rb +283 -0
  27. data/lib/ragie_ruby_sdk/models/response.rb +1 -1
  28. data/lib/ragie_ruby_sdk/models/response_output_inner.rb +105 -0
  29. data/lib/ragie_ruby_sdk/models/{response_output.rb → response_output_message.rb} +3 -3
  30. data/lib/ragie_ruby_sdk/models/search_effort.rb +41 -0
  31. data/lib/ragie_ruby_sdk/models/search_step.rb +3 -3
  32. data/lib/ragie_ruby_sdk/models/search_step_with_query_details.rb +306 -0
  33. data/lib/ragie_ruby_sdk/version.rb +1 -1
  34. data/lib/ragie_ruby_sdk.rb +12 -1
  35. data/spec/models/code_interpreter_output_logs_spec.rb +46 -0
  36. data/spec/models/code_interpreter_output_spec.rb +74 -0
  37. data/spec/models/file_search_output_spec.rb +68 -0
  38. data/spec/models/file_search_result_spec.rb +60 -0
  39. data/spec/models/query_details_spec.rb +54 -0
  40. data/spec/models/reasoning_output_spec.rb +74 -0
  41. data/spec/models/reasoning_summary_spec.rb +46 -0
  42. data/spec/models/reasoning_text_spec.rb +46 -0
  43. data/spec/models/response_output_inner_spec.rb +21 -0
  44. data/spec/models/{response_output_spec.rb → response_output_message_spec.rb} +6 -6
  45. data/spec/models/search_effort_spec.rb +30 -0
  46. data/spec/models/search_step_spec.rb +1 -1
  47. data/spec/models/search_step_with_query_details_spec.rb +58 -0
  48. metadata +49 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4670e0e080e4f52c9da25a8b4944e47b4374df52c13b3ae0ec2a30a177d082ec
4
- data.tar.gz: 05bf09d2c59c93e357ec1a294055b6ce28a5f6ace9b91060304f4ba0412e181f
3
+ metadata.gz: cfe3b2c480ab35d9b6d15864337fc784d9b643beb15b5c7c68ebea233b3a8751
4
+ data.tar.gz: 2e4ced50df79622c78e0cfe6d6d02261ccc8053ca27098b5f713d0d3eba538df
5
5
  SHA512:
6
- metadata.gz: b9e5c8c5da161485ab75e995a0594616896141d662ff75cfd526b00dc6760c0c76358329492417b318d558f3bc64891a4a8b0ed040461bb90910d6ea22672599
7
- data.tar.gz: 8b277c80c3e8c51c7d5c6401c51ee1bd0461bc39c7e31a54bbb534fc73c70c1619dab4af46ac5932abc9118893c018867e3829282b8e8c02ab39026ef2dea1c3
6
+ metadata.gz: 5257c810502691db0ff9859d2e00373ea666bfdd4c45efd36050395d696511b631cf789a06decc9808862ccad597c1043d48fe632326ade4be1ba144ae73db0c
7
+ data.tar.gz: 0fb5cb55e4f833c2afa6ede62547fd2bd2d196424ccdcf390c80a246d6556b1eccf845d817baf7ae777b5b4ea3cff0fb01c04c7dee8e44de01a804b9d2140dd6
data/README.md CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 1.0.0
10
- - Package version: 1.0.15
10
+ - Package version: 1.0.16
11
11
  - Generator version: 7.17.0-SNAPSHOT
12
12
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
13
 
@@ -24,16 +24,16 @@ gem build ragie_ruby_sdk.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ragie_ruby_sdk-1.0.15.gem
27
+ gem install ./ragie_ruby_sdk-1.0.16.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ragie_ruby_sdk-1.0.15.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ragie_ruby_sdk-1.0.16.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'ragie_ruby_sdk', '~> 1.0.15'
36
+ gem 'ragie_ruby_sdk', '~> 1.0.16'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -174,6 +174,8 @@ Class | Method | HTTP request | Description
174
174
  - [RagieRubySdk::BodyUpdateDocumentFile](docs/BodyUpdateDocumentFile.md)
175
175
  - [RagieRubySdk::BucketData](docs/BucketData.md)
176
176
  - [RagieRubySdk::CodeInterpreterEvidence](docs/CodeInterpreterEvidence.md)
177
+ - [RagieRubySdk::CodeInterpreterOutput](docs/CodeInterpreterOutput.md)
178
+ - [RagieRubySdk::CodeInterpreterOutputLogs](docs/CodeInterpreterOutputLogs.md)
177
179
  - [RagieRubySdk::CodeStep](docs/CodeStep.md)
178
180
  - [RagieRubySdk::ConfluenceData](docs/ConfluenceData.md)
179
181
  - [RagieRubySdk::Connection](docs/Connection.md)
@@ -226,6 +228,8 @@ Class | Method | HTTP request | Description
226
228
  - [RagieRubySdk::EntityList](docs/EntityList.md)
227
229
  - [RagieRubySdk::ErrorMessage](docs/ErrorMessage.md)
228
230
  - [RagieRubySdk::EvaluatedAnswerStep](docs/EvaluatedAnswerStep.md)
231
+ - [RagieRubySdk::FileSearchOutput](docs/FileSearchOutput.md)
232
+ - [RagieRubySdk::FileSearchResult](docs/FileSearchResult.md)
229
233
  - [RagieRubySdk::FinalAnswer](docs/FinalAnswer.md)
230
234
  - [RagieRubySdk::FinalAnswerEvidenceInner](docs/FinalAnswerEvidenceInner.md)
231
235
  - [RagieRubySdk::FinalAnswerStepsInner](docs/FinalAnswerStepsInner.md)
@@ -278,22 +282,29 @@ Class | Method | HTTP request | Description
278
282
  - [RagieRubySdk::PublicIntercomConnection](docs/PublicIntercomConnection.md)
279
283
  - [RagieRubySdk::PublicS3CompatibleConnection](docs/PublicS3CompatibleConnection.md)
280
284
  - [RagieRubySdk::PublicZendeskConnection](docs/PublicZendeskConnection.md)
285
+ - [RagieRubySdk::QueryDetails](docs/QueryDetails.md)
281
286
  - [RagieRubySdk::RagieApiSchemaResponseUsage](docs/RagieApiSchemaResponseUsage.md)
282
287
  - [RagieRubySdk::RagieEvidence](docs/RagieEvidence.md)
283
288
  - [RagieRubySdk::Reasoning](docs/Reasoning.md)
289
+ - [RagieRubySdk::ReasoningOutput](docs/ReasoningOutput.md)
290
+ - [RagieRubySdk::ReasoningSummary](docs/ReasoningSummary.md)
291
+ - [RagieRubySdk::ReasoningText](docs/ReasoningText.md)
284
292
  - [RagieRubySdk::Request](docs/Request.md)
285
293
  - [RagieRubySdk::Response](docs/Response.md)
286
294
  - [RagieRubySdk::ResponseContent](docs/ResponseContent.md)
287
295
  - [RagieRubySdk::ResponseOK](docs/ResponseOK.md)
288
- - [RagieRubySdk::ResponseOutput](docs/ResponseOutput.md)
296
+ - [RagieRubySdk::ResponseOutputInner](docs/ResponseOutputInner.md)
297
+ - [RagieRubySdk::ResponseOutputMessage](docs/ResponseOutputMessage.md)
289
298
  - [RagieRubySdk::ResponsePatchdocumentmetadata](docs/ResponsePatchdocumentmetadata.md)
290
299
  - [RagieRubySdk::Retrieval](docs/Retrieval.md)
291
300
  - [RagieRubySdk::RetrieveParams](docs/RetrieveParams.md)
292
301
  - [RagieRubySdk::S3CompatibleCredentials](docs/S3CompatibleCredentials.md)
293
302
  - [RagieRubySdk::ScoredChunk](docs/ScoredChunk.md)
294
303
  - [RagieRubySdk::Search](docs/Search.md)
304
+ - [RagieRubySdk::SearchEffort](docs/SearchEffort.md)
295
305
  - [RagieRubySdk::SearchResultLink](docs/SearchResultLink.md)
296
306
  - [RagieRubySdk::SearchStep](docs/SearchStep.md)
307
+ - [RagieRubySdk::SearchStepWithQueryDetails](docs/SearchStepWithQueryDetails.md)
297
308
  - [RagieRubySdk::SetConnectionEnabledPayload](docs/SetConnectionEnabledPayload.md)
298
309
  - [RagieRubySdk::SharepointData](docs/SharepointData.md)
299
310
  - [RagieRubySdk::SharepointFileData](docs/SharepointFileData.md)
@@ -0,0 +1,28 @@
1
+ # RagieRubySdk::CodeInterpreterOutput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | The unique ID of the code interpreter tool call. | |
8
+ | **code** | **String** | The code executed by the code interpreter. | |
9
+ | **container_id** | **String** | The ID of the container used to run the code. | |
10
+ | **outputs** | [**Array<CodeInterpreterOutputLogs>**](CodeInterpreterOutputLogs.md) | The outputs generated by the code interpreter, such as logs or images. | |
11
+ | **type** | **String** | | [optional][default to 'code_interpreter_output'] |
12
+ | **status** | **String** | | [optional][default to 'completed'] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'ragie_ruby_sdk'
18
+
19
+ instance = RagieRubySdk::CodeInterpreterOutput.new(
20
+ id: null,
21
+ code: null,
22
+ container_id: null,
23
+ outputs: null,
24
+ type: null,
25
+ status: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,20 @@
1
+ # RagieRubySdk::CodeInterpreterOutputLogs
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **logs** | **String** | The logs output from the code interpreter. | |
8
+ | **type** | **String** | | [optional][default to 'logs'] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ragie_ruby_sdk'
14
+
15
+ instance = RagieRubySdk::CodeInterpreterOutputLogs.new(
16
+ logs: null,
17
+ type: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,26 @@
1
+ # RagieRubySdk::FileSearchOutput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **queries** | **Array<String>** | The queries used to search for files. | |
9
+ | **status** | **String** | | [optional][default to 'searching'] |
10
+ | **type** | **String** | | |
11
+ | **results** | [**Array<FileSearchResult>**](FileSearchResult.md) | The results of the file search tool call. | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ragie_ruby_sdk'
17
+
18
+ instance = RagieRubySdk::FileSearchOutput.new(
19
+ id: null,
20
+ queries: null,
21
+ status: null,
22
+ type: null,
23
+ results: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,26 @@
1
+ # RagieRubySdk::FileSearchResult
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **file_id** | **String** | The unique ID of the document. | |
8
+ | **filename** | **String** | The name of the document. | |
9
+ | **score** | **Float** | The relevance score of the chunk - a value between 0 and 1. | |
10
+ | **text** | **String** | The text content of the chunk. | |
11
+ | **attributes** | **Hash<String, Object>** | The attributes of the chunk. | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ragie_ruby_sdk'
17
+
18
+ instance = RagieRubySdk::FileSearchResult.new(
19
+ file_id: null,
20
+ filename: null,
21
+ score: null,
22
+ text: null,
23
+ attributes: null
24
+ )
25
+ ```
26
+
@@ -10,6 +10,8 @@
10
10
  | **other_resolved_question_ids** | **Array<String>** | A list of questions ids that are no longer relevant to the current answer referenced by their IDs. | [optional] |
11
11
  | **answer** | [**Answer**](Answer.md) | | |
12
12
  | **search** | [**Search**](Search.md) | The search request to be made. | |
13
+ | **query_details** | [**Array<QueryDetails>**](QueryDetails.md) | | [optional] |
14
+ | **search_log** | **String** | A log of the search results you found. | [optional][default to ''] |
13
15
  | **questions_to_answer** | **Array<String>** | The questions that need to be answered to answer the original question. | [optional] |
14
16
  | **code_issue** | **String** | The natural language description of the code issue you need to solve. | |
15
17
  | **code** | **String** | The code you generated to solve the code issue. | [optional][default to ''] |
@@ -30,6 +32,8 @@ instance = RagieRubySdk::FinalAnswerStepsInner.new(
30
32
  other_resolved_question_ids: null,
31
33
  answer: null,
32
34
  search: null,
35
+ query_details: null,
36
+ search_log: null,
33
37
  questions_to_answer: null,
34
38
  code_issue: null,
35
39
  code: null,
@@ -0,0 +1,24 @@
1
+ # RagieRubySdk::QueryDetails
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **query** | **String** | | |
8
+ | **search_effort** | [**SearchEffort**](SearchEffort.md) | | |
9
+ | **metadata_filter** | **Hash<String, Object>** | | |
10
+ | **search_results** | [**Array<RagieEvidence>**](RagieEvidence.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ragie_ruby_sdk'
16
+
17
+ instance = RagieRubySdk::QueryDetails.new(
18
+ query: null,
19
+ search_effort: null,
20
+ metadata_filter: null,
21
+ search_results: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,28 @@
1
+ # RagieRubySdk::ReasoningOutput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | The unique ID of the reasoning output. | |
8
+ | **summary** | [**Array<ReasoningSummary>**](ReasoningSummary.md) | The summary of the reasoning. | |
9
+ | **type** | **String** | | [optional][default to 'reasoning'] |
10
+ | **content** | [**Array<ReasoningText>**](ReasoningText.md) | The content of the reasoning. | |
11
+ | **encrypted_content** | **String** | The encrypted content of the reasoning output. | |
12
+ | **status** | **String** | | [optional][default to 'completed'] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'ragie_ruby_sdk'
18
+
19
+ instance = RagieRubySdk::ReasoningOutput.new(
20
+ id: null,
21
+ summary: null,
22
+ type: null,
23
+ content: null,
24
+ encrypted_content: null,
25
+ status: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,20 @@
1
+ # RagieRubySdk::ReasoningSummary
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **summary** | **String** | The summary of the reasoning. | |
8
+ | **type** | **String** | | [optional][default to 'summary'] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ragie_ruby_sdk'
14
+
15
+ instance = RagieRubySdk::ReasoningSummary.new(
16
+ summary: null,
17
+ type: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # RagieRubySdk::ReasoningText
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **text** | **String** | The text of the reasoning. | |
8
+ | **type** | **String** | | [optional][default to 'reasoning_text'] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ragie_ruby_sdk'
14
+
15
+ instance = RagieRubySdk::ReasoningText.new(
16
+ text: null,
17
+ type: null
18
+ )
19
+ ```
20
+
data/docs/Response.md CHANGED
@@ -13,7 +13,7 @@
13
13
  | **instructions** | **String** | | [optional] |
14
14
  | **max_output_tokens** | **Object** | | [optional] |
15
15
  | **model** | **String** | | [optional][default to 'deep-search'] |
16
- | **output** | [**Array<ResponseOutput>**](ResponseOutput.md) | | |
16
+ | **output** | [**Array<ResponseOutputInner>**](ResponseOutputInner.md) | | |
17
17
  | **output_parsed** | [**FinalAnswer**](FinalAnswer.md) | | [optional] |
18
18
  | **tools** | [**Array<Tool>**](Tool.md) | | |
19
19
  | **reasoning** | [**Reasoning**](Reasoning.md) | | |
@@ -0,0 +1,40 @@
1
+ # RagieRubySdk::ResponseOutputInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | | [default to 'message'] |
8
+ | **id** | **String** | | |
9
+ | **role** | **String** | | [optional][default to 'assistant'] |
10
+ | **content** | [**Array<ReasoningText>**](ReasoningText.md) | The content of the reasoning. | |
11
+ | **summary** | [**Array<ReasoningSummary>**](ReasoningSummary.md) | The summary of the reasoning. | |
12
+ | **encrypted_content** | **String** | The encrypted content of the reasoning output. | |
13
+ | **status** | **String** | | [optional][default to 'searching'] |
14
+ | **code** | **String** | The code executed by the code interpreter. | |
15
+ | **container_id** | **String** | The ID of the container used to run the code. | |
16
+ | **outputs** | [**Array<CodeInterpreterOutputLogs>**](CodeInterpreterOutputLogs.md) | The outputs generated by the code interpreter, such as logs or images. | |
17
+ | **queries** | **Array<String>** | The queries used to search for files. | |
18
+ | **results** | [**Array<FileSearchResult>**](FileSearchResult.md) | The results of the file search tool call. | |
19
+
20
+ ## Example
21
+
22
+ ```ruby
23
+ require 'ragie_ruby_sdk'
24
+
25
+ instance = RagieRubySdk::ResponseOutputInner.new(
26
+ type: null,
27
+ id: null,
28
+ role: null,
29
+ content: null,
30
+ summary: null,
31
+ encrypted_content: null,
32
+ status: null,
33
+ code: null,
34
+ container_id: null,
35
+ outputs: null,
36
+ queries: null,
37
+ results: null
38
+ )
39
+ ```
40
+
@@ -1,4 +1,4 @@
1
- # RagieRubySdk::ResponseOutput
1
+ # RagieRubySdk::ResponseOutputMessage
2
2
 
3
3
  ## Properties
4
4
 
@@ -14,7 +14,7 @@
14
14
  ```ruby
15
15
  require 'ragie_ruby_sdk'
16
16
 
17
- instance = RagieRubySdk::ResponseOutput.new(
17
+ instance = RagieRubySdk::ResponseOutputMessage.new(
18
18
  type: null,
19
19
  id: null,
20
20
  role: null,
@@ -0,0 +1,15 @@
1
+ # RagieRubySdk::SearchEffort
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'ragie_ruby_sdk'
12
+
13
+ instance = RagieRubySdk::SearchEffort.new()
14
+ ```
15
+
data/docs/SearchStep.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **type** | **String** | | [optional][default to 'search'] |
7
+ | **type** | **String** | | [optional][default to 'base_search'] |
8
8
  | **think** | **String** | | |
9
9
  | **current_question** | **String** | | |
10
10
  | **search** | [**Search**](Search.md) | The search request to be made. | |
@@ -0,0 +1,24 @@
1
+ # RagieRubySdk::SearchStepWithQueryDetails
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | | [optional][default to 'search'] |
8
+ | **search** | [**Search**](Search.md) | The search request to be made. | |
9
+ | **query_details** | [**Array<QueryDetails>**](QueryDetails.md) | | [optional] |
10
+ | **search_log** | **String** | A log of the search results you found. | [optional][default to ''] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ragie_ruby_sdk'
16
+
17
+ instance = RagieRubySdk::SearchStepWithQueryDetails.new(
18
+ type: null,
19
+ search: null,
20
+ query_details: null,
21
+ search_log: null
22
+ )
23
+ ```
24
+