ragie_ruby_sdk 1.0.11 → 1.0.13

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 (206) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -4
  3. data/docs/AgentHoppsModelsModelsUsage.md +18 -0
  4. data/docs/Answer.md +20 -0
  5. data/docs/AnswerStep.md +26 -0
  6. data/docs/CodeInterpreterEvidence.md +26 -0
  7. data/docs/CodeStep.md +28 -0
  8. data/docs/EvaluatedAnswerStep.md +30 -0
  9. data/docs/FinalAnswer.md +24 -0
  10. data/docs/FinalAnswerEvidenceInner.md +40 -0
  11. data/docs/FinalAnswerStepsInner.md +42 -0
  12. data/docs/InputTokenDetails.md +18 -0
  13. data/docs/IntercomData.md +3 -1
  14. data/docs/ModelUsage.md +22 -0
  15. data/docs/OutputTokenDetails.md +18 -0
  16. data/docs/PlanStep.md +24 -0
  17. data/docs/RagieApiSchemaResponseUsage.md +26 -0
  18. data/docs/RagieEvidence.md +34 -0
  19. data/docs/Reasoning.md +20 -0
  20. data/docs/Request.md +28 -0
  21. data/docs/Response.md +62 -0
  22. data/docs/ResponseContent.md +22 -0
  23. data/docs/ResponseOutput.md +24 -0
  24. data/docs/ResponsesApi.md +147 -0
  25. data/docs/Search.md +18 -0
  26. data/docs/SearchResultLink.md +20 -0
  27. data/docs/SearchStep.md +24 -0
  28. data/docs/SurrenderStep.md +24 -0
  29. data/docs/Tool.md +20 -0
  30. data/lib/ragie_ruby_sdk/api/responses_api.rb +153 -0
  31. data/lib/ragie_ruby_sdk/models/agent_hopps_models_models_usage.rb +222 -0
  32. data/lib/ragie_ruby_sdk/models/answer.rb +265 -0
  33. data/lib/ragie_ruby_sdk/models/answer_step.rb +346 -0
  34. data/lib/ragie_ruby_sdk/models/code_interpreter_evidence.rb +360 -0
  35. data/lib/ragie_ruby_sdk/models/code_step.rb +359 -0
  36. data/lib/ragie_ruby_sdk/models/evaluated_answer_step.rb +398 -0
  37. data/lib/ragie_ruby_sdk/models/final_answer.rb +319 -0
  38. data/lib/ragie_ruby_sdk/models/final_answer_evidence_inner.rb +103 -0
  39. data/lib/ragie_ruby_sdk/models/final_answer_steps_inner.rb +107 -0
  40. data/lib/ragie_ruby_sdk/models/input_token_details.rb +222 -0
  41. data/lib/ragie_ruby_sdk/models/intercom_data.rb +14 -4
  42. data/lib/ragie_ruby_sdk/models/model_usage.rb +289 -0
  43. data/lib/ragie_ruby_sdk/models/output_token_details.rb +222 -0
  44. data/lib/ragie_ruby_sdk/models/plan_step.rb +336 -0
  45. data/lib/ragie_ruby_sdk/models/ragie_api_schema_response_usage.rb +307 -0
  46. data/lib/ragie_ruby_sdk/models/ragie_evidence.rb +419 -0
  47. data/lib/ragie_ruby_sdk/models/reasoning.rb +271 -0
  48. data/lib/ragie_ruby_sdk/models/request.rb +328 -0
  49. data/lib/ragie_ruby_sdk/models/response.rb +638 -0
  50. data/lib/ragie_ruby_sdk/models/response_content.rb +293 -0
  51. data/lib/ragie_ruby_sdk/models/response_output.rb +333 -0
  52. data/lib/ragie_ruby_sdk/models/search.rb +239 -0
  53. data/lib/ragie_ruby_sdk/models/search_result_link.rb +263 -0
  54. data/lib/ragie_ruby_sdk/models/search_step.rb +334 -0
  55. data/lib/ragie_ruby_sdk/models/surrender_step.rb +334 -0
  56. data/lib/ragie_ruby_sdk/models/tool.rb +289 -0
  57. data/lib/ragie_ruby_sdk/version.rb +1 -1
  58. data/lib/ragie_ruby_sdk.rb +26 -0
  59. data/spec/api/responses_api_spec.rb +59 -0
  60. data/spec/models/access_token_credentials_spec.rb +1 -1
  61. data/spec/models/agent_hopps_models_models_usage_spec.rb +36 -0
  62. data/spec/models/answer_spec.rb +42 -0
  63. data/spec/models/answer_step_spec.rb +64 -0
  64. data/spec/models/async_document_metadata_update_spec.rb +1 -1
  65. data/spec/models/audio_modality_data_spec.rb +1 -1
  66. data/spec/models/authenticator_confluence_connection_spec.rb +1 -1
  67. data/spec/models/authenticator_dropbox_connection_spec.rb +1 -1
  68. data/spec/models/authenticator_gmail_connection_spec.rb +1 -1
  69. data/spec/models/authenticator_google_drive_connection_spec.rb +1 -1
  70. data/spec/models/authenticator_hubspot_connection_spec.rb +1 -1
  71. data/spec/models/authenticator_jira_connection_spec.rb +1 -1
  72. data/spec/models/authenticator_list_spec.rb +1 -1
  73. data/spec/models/authenticator_notion_connection_spec.rb +1 -1
  74. data/spec/models/authenticator_onedrive_connection_spec.rb +1 -1
  75. data/spec/models/authenticator_salesforce_connection_spec.rb +1 -1
  76. data/spec/models/authenticator_sharepoint_connection_spec.rb +1 -1
  77. data/spec/models/authenticator_slack_connection_spec.rb +1 -1
  78. data/spec/models/backblaze_credentials_spec.rb +1 -1
  79. data/spec/models/base_get_authenticator_spec.rb +1 -1
  80. data/spec/models/body_create_document_spec.rb +1 -1
  81. data/spec/models/body_update_document_file_spec.rb +1 -1
  82. data/spec/models/bucket_data_spec.rb +1 -1
  83. data/spec/models/code_interpreter_evidence_spec.rb +64 -0
  84. data/spec/models/code_step_spec.rb +70 -0
  85. data/spec/models/confluence_data_spec.rb +1 -1
  86. data/spec/models/connection_base_spec.rb +1 -1
  87. data/spec/models/connection_limit_exceeded_webhook_payload_spec.rb +1 -1
  88. data/spec/models/connection_limit_exceeded_webhook_spec.rb +1 -1
  89. data/spec/models/connection_limit_params_spec.rb +1 -1
  90. data/spec/models/connection_list_spec.rb +1 -1
  91. data/spec/models/connection_spec.rb +1 -1
  92. data/spec/models/connection_stats_spec.rb +1 -1
  93. data/spec/models/connection_sync_finished_webhook_payload_spec.rb +1 -1
  94. data/spec/models/connection_sync_finished_webhook_spec.rb +1 -1
  95. data/spec/models/connection_sync_progress_webhook_payload_spec.rb +1 -1
  96. data/spec/models/connection_sync_progress_webhook_spec.rb +1 -1
  97. data/spec/models/connection_sync_started_webhook_payload_spec.rb +1 -1
  98. data/spec/models/connection_sync_started_webhook_spec.rb +1 -1
  99. data/spec/models/connector_source_spec.rb +1 -1
  100. data/spec/models/connector_source_type_info_spec.rb +1 -1
  101. data/spec/models/create_authenticator_connection_spec.rb +1 -1
  102. data/spec/models/create_document_from_url_params_spec.rb +1 -1
  103. data/spec/models/create_document_raw_params_spec.rb +1 -1
  104. data/spec/models/create_google_authenticator_spec.rb +1 -1
  105. data/spec/models/create_instruction_params_spec.rb +1 -1
  106. data/spec/models/create_partition_params_spec.rb +1 -1
  107. data/spec/models/delete_connection_payload_spec.rb +1 -1
  108. data/spec/models/document_chunk_detail_spec.rb +1 -1
  109. data/spec/models/document_chunk_list_spec.rb +1 -1
  110. data/spec/models/document_chunk_spec.rb +1 -1
  111. data/spec/models/document_delete_spec.rb +1 -1
  112. data/spec/models/document_delete_webhook_payload_spec.rb +1 -1
  113. data/spec/models/document_delete_webhook_spec.rb +1 -1
  114. data/spec/models/document_file_update_spec.rb +1 -1
  115. data/spec/models/document_get_spec.rb +1 -1
  116. data/spec/models/document_list_spec.rb +1 -1
  117. data/spec/models/document_metadata_update_spec.rb +1 -1
  118. data/spec/models/document_raw_update_spec.rb +1 -1
  119. data/spec/models/document_spec.rb +1 -1
  120. data/spec/models/document_summary_spec.rb +1 -1
  121. data/spec/models/document_update_webhook_payload_spec.rb +1 -1
  122. data/spec/models/document_update_webhook_spec.rb +1 -1
  123. data/spec/models/document_url_update_spec.rb +1 -1
  124. data/spec/models/document_with_content_spec.rb +1 -1
  125. data/spec/models/entity_extracted_webhook_payload_spec.rb +1 -1
  126. data/spec/models/entity_extracted_webhook_spec.rb +1 -1
  127. data/spec/models/entity_list_spec.rb +1 -1
  128. data/spec/models/entity_spec.rb +1 -1
  129. data/spec/models/error_message_spec.rb +1 -1
  130. data/spec/models/evaluated_answer_step_spec.rb +76 -0
  131. data/spec/models/final_answer_evidence_inner_spec.rb +21 -0
  132. data/spec/models/final_answer_spec.rb +54 -0
  133. data/spec/models/final_answer_steps_inner_spec.rb +21 -0
  134. data/spec/models/folder_data_spec.rb +1 -1
  135. data/spec/models/freshdesk_credentials_spec.rb +1 -1
  136. data/spec/models/freshdesk_data_spec.rb +1 -1
  137. data/spec/models/gmail_data_spec.rb +1 -1
  138. data/spec/models/google_folder_data_spec.rb +1 -1
  139. data/spec/models/http_validation_error_spec.rb +1 -1
  140. data/spec/models/hubspot_data_spec.rb +1 -1
  141. data/spec/models/input_token_details_spec.rb +36 -0
  142. data/spec/models/instruction_spec.rb +1 -1
  143. data/spec/models/intercom_credentials_spec.rb +1 -1
  144. data/spec/models/intercom_data_spec.rb +7 -1
  145. data/spec/models/link_spec.rb +1 -1
  146. data/spec/models/list_connector_source_type_info_spec.rb +1 -1
  147. data/spec/models/media_mode_param_spec.rb +1 -1
  148. data/spec/models/mode2_one_of_spec.rb +1 -1
  149. data/spec/models/model_usage_spec.rb +48 -0
  150. data/spec/models/o_auth_credentials_spec.rb +1 -1
  151. data/spec/models/o_auth_refresh_token_credentials_spec.rb +1 -1
  152. data/spec/models/o_auth_url_create_spec.rb +1 -1
  153. data/spec/models/o_auth_url_response_spec.rb +1 -1
  154. data/spec/models/onedrive_data_spec.rb +1 -1
  155. data/spec/models/output_token_details_spec.rb +36 -0
  156. data/spec/models/pagination_spec.rb +1 -1
  157. data/spec/models/partition_detail_spec.rb +1 -1
  158. data/spec/models/partition_limit_exceeded_webhook_payload_spec.rb +1 -1
  159. data/spec/models/partition_limit_exceeded_webhook_spec.rb +1 -1
  160. data/spec/models/partition_limit_params_spec.rb +1 -1
  161. data/spec/models/partition_limit_reset_webhook_payload_spec.rb +1 -1
  162. data/spec/models/partition_limit_reset_webhook_spec.rb +1 -1
  163. data/spec/models/partition_limits_spec.rb +1 -1
  164. data/spec/models/partition_list_spec.rb +1 -1
  165. data/spec/models/partition_spec.rb +1 -1
  166. data/spec/models/partition_stats_spec.rb +1 -1
  167. data/spec/models/patch_document_metadata_params_spec.rb +1 -1
  168. data/spec/models/plan_step_spec.rb +58 -0
  169. data/spec/models/public_backblaze_connection_spec.rb +1 -1
  170. data/spec/models/public_create_connection_spec.rb +1 -1
  171. data/spec/models/public_freshdesk_connection_spec.rb +1 -1
  172. data/spec/models/public_gcs_connection_spec.rb +1 -1
  173. data/spec/models/public_intercom_connection_spec.rb +1 -1
  174. data/spec/models/public_s3_compatible_connection_spec.rb +1 -1
  175. data/spec/models/public_zendesk_connection_spec.rb +1 -1
  176. data/spec/models/ragie_api_schema_response_usage_spec.rb +60 -0
  177. data/spec/models/ragie_evidence_spec.rb +88 -0
  178. data/spec/models/reasoning_spec.rb +46 -0
  179. data/spec/models/request_spec.rb +70 -0
  180. data/spec/models/response_content_spec.rb +52 -0
  181. data/spec/models/response_ok_spec.rb +1 -1
  182. data/spec/models/response_output_spec.rb +62 -0
  183. data/spec/models/response_spec.rb +188 -0
  184. data/spec/models/retrieval_spec.rb +1 -1
  185. data/spec/models/retrieve_params_spec.rb +1 -1
  186. data/spec/models/s3_compatible_credentials_spec.rb +1 -1
  187. data/spec/models/scored_chunk_spec.rb +1 -1
  188. data/spec/models/search_result_link_spec.rb +42 -0
  189. data/spec/models/search_spec.rb +36 -0
  190. data/spec/models/search_step_spec.rb +58 -0
  191. data/spec/models/set_connection_enabled_payload_spec.rb +1 -1
  192. data/spec/models/sharepoint_data_spec.rb +1 -1
  193. data/spec/models/sharepoint_file_data_spec.rb +1 -1
  194. data/spec/models/sharepoint_site_data_spec.rb +1 -1
  195. data/spec/models/slack_data_spec.rb +1 -1
  196. data/spec/models/surrender_step_spec.rb +58 -0
  197. data/spec/models/tool_spec.rb +46 -0
  198. data/spec/models/update_document_from_url_params_spec.rb +1 -1
  199. data/spec/models/update_document_raw_params_spec.rb +1 -1
  200. data/spec/models/update_instruction_params_spec.rb +1 -1
  201. data/spec/models/validation_error_spec.rb +1 -1
  202. data/spec/models/video_modality_data_spec.rb +1 -1
  203. data/spec/models/word_timestamp_spec.rb +1 -1
  204. data/spec/models/zendesk_credentials_spec.rb +1 -1
  205. data/spec/models/zendesk_data_spec.rb +1 -1
  206. metadata +105 -1
data/docs/Response.md ADDED
@@ -0,0 +1,62 @@
1
+ # RagieRubySdk::Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **object** | **String** | | [optional][default to 'response'] |
9
+ | **created_at** | **Integer** | | |
10
+ | **status** | **String** | | |
11
+ | **error** | **String** | | [optional] |
12
+ | **incomplete_details** | **Object** | | [optional] |
13
+ | **instructions** | **String** | | [optional] |
14
+ | **max_output_tokens** | **Object** | | [optional] |
15
+ | **model** | **String** | | [optional][default to 'deep-search'] |
16
+ | **output** | [**Array<ResponseOutput>**](ResponseOutput.md) | | |
17
+ | **output_parsed** | [**FinalAnswer**](FinalAnswer.md) | | [optional] |
18
+ | **tools** | [**Array<Tool>**](Tool.md) | | |
19
+ | **reasoning** | [**Reasoning**](Reasoning.md) | | |
20
+ | **parallel_tool_calls** | **Boolean** | | [optional][default to false] |
21
+ | **store** | **Boolean** | | [optional][default to false] |
22
+ | **temperature** | **Float** | | [optional][default to 1.0] |
23
+ | **previous_response_id** | **String** | | [optional] |
24
+ | **tool_choice** | **String** | | [optional][default to 'auto'] |
25
+ | **top_p** | **Float** | | [optional][default to 1.0] |
26
+ | **truncation** | **String** | | [optional][default to 'disabled'] |
27
+ | **usage** | [**RagieApiSchemaResponseUsage**](RagieApiSchemaResponseUsage.md) | | |
28
+ | **user** | **Object** | | [optional] |
29
+ | **metadata** | **Hash<String, Object>** | | [optional] |
30
+
31
+ ## Example
32
+
33
+ ```ruby
34
+ require 'ragie_ruby_sdk'
35
+
36
+ instance = RagieRubySdk::Response.new(
37
+ id: null,
38
+ object: null,
39
+ created_at: null,
40
+ status: null,
41
+ error: null,
42
+ incomplete_details: null,
43
+ instructions: null,
44
+ max_output_tokens: null,
45
+ model: null,
46
+ output: null,
47
+ output_parsed: null,
48
+ tools: null,
49
+ reasoning: null,
50
+ parallel_tool_calls: null,
51
+ store: null,
52
+ temperature: null,
53
+ previous_response_id: null,
54
+ tool_choice: null,
55
+ top_p: null,
56
+ truncation: null,
57
+ usage: null,
58
+ user: null,
59
+ metadata: null
60
+ )
61
+ ```
62
+
@@ -0,0 +1,22 @@
1
+ # RagieRubySdk::ResponseContent
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | | [optional][default to 'text'] |
8
+ | **text** | **String** | | |
9
+ | **annotations** | **Array<Hash<String, Object>>** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ragie_ruby_sdk'
15
+
16
+ instance = RagieRubySdk::ResponseContent.new(
17
+ type: null,
18
+ text: null,
19
+ annotations: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,24 @@
1
+ # RagieRubySdk::ResponseOutput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | | [optional][default to 'message'] |
8
+ | **id** | **String** | | |
9
+ | **role** | **String** | | [optional][default to 'assistant'] |
10
+ | **content** | [**Array<ResponseContent>**](ResponseContent.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ragie_ruby_sdk'
16
+
17
+ instance = RagieRubySdk::ResponseOutput.new(
18
+ type: null,
19
+ id: null,
20
+ role: null,
21
+ content: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,147 @@
1
+ # RagieRubySdk::ResponsesApi
2
+
3
+ All URIs are relative to *https://api.ragie.ai*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_response_responses_post**](ResponsesApi.md#create_response_responses_post) | **POST** /responses | Create Response |
8
+ | [**get_response_responses_response_id_get**](ResponsesApi.md#get_response_responses_response_id_get) | **GET** /responses/{response_id} | Get Response |
9
+
10
+
11
+ ## create_response_responses_post
12
+
13
+ > <Response> create_response_responses_post(request)
14
+
15
+ Create Response
16
+
17
+ Create a response. This will generate an LLM or agentic response. At this time the only supported model is `deep-search`. Responses may be streamed or returned synchronously. The `retrieve` tool is currently the only supported tool, more tools will be added in the future. A single partition may be provided in the retrieve tool. If omitted the `default` partition is used.
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'ragie_ruby_sdk'
24
+ # setup authorization
25
+ RagieRubySdk.configure do |config|
26
+ # Configure Bearer authorization: auth
27
+ config.access_token = 'YOUR_BEARER_TOKEN'
28
+ end
29
+
30
+ api_instance = RagieRubySdk::ResponsesApi.new
31
+ request = RagieRubySdk::Request.new({input: 'input_example'}) # Request |
32
+
33
+ begin
34
+ # Create Response
35
+ result = api_instance.create_response_responses_post(request)
36
+ p result
37
+ rescue RagieRubySdk::ApiError => e
38
+ puts "Error when calling ResponsesApi->create_response_responses_post: #{e}"
39
+ end
40
+ ```
41
+
42
+ #### Using the create_response_responses_post_with_http_info variant
43
+
44
+ This returns an Array which contains the response data, status code and headers.
45
+
46
+ > <Array(<Response>, Integer, Hash)> create_response_responses_post_with_http_info(request)
47
+
48
+ ```ruby
49
+ begin
50
+ # Create Response
51
+ data, status_code, headers = api_instance.create_response_responses_post_with_http_info(request)
52
+ p status_code # => 2xx
53
+ p headers # => { ... }
54
+ p data # => <Response>
55
+ rescue RagieRubySdk::ApiError => e
56
+ puts "Error when calling ResponsesApi->create_response_responses_post_with_http_info: #{e}"
57
+ end
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+ | Name | Type | Description | Notes |
63
+ | ---- | ---- | ----------- | ----- |
64
+ | **request** | [**Request**](Request.md) | | |
65
+
66
+ ### Return type
67
+
68
+ [**Response**](Response.md)
69
+
70
+ ### Authorization
71
+
72
+ [auth](../README.md#auth)
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: application/json
77
+ - **Accept**: application/json
78
+
79
+
80
+ ## get_response_responses_response_id_get
81
+
82
+ > <Response> get_response_responses_response_id_get(response_id)
83
+
84
+ Get Response
85
+
86
+ Get a response by its ID. This will return the response and its status. If the response is still in progress, the status will be `in_progress`. If the response is completed, the status will be `completed`. If the response is failed, the status will be `failed`.
87
+
88
+ ### Examples
89
+
90
+ ```ruby
91
+ require 'time'
92
+ require 'ragie_ruby_sdk'
93
+ # setup authorization
94
+ RagieRubySdk.configure do |config|
95
+ # Configure Bearer authorization: auth
96
+ config.access_token = 'YOUR_BEARER_TOKEN'
97
+ end
98
+
99
+ api_instance = RagieRubySdk::ResponsesApi.new
100
+ response_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
101
+
102
+ begin
103
+ # Get Response
104
+ result = api_instance.get_response_responses_response_id_get(response_id)
105
+ p result
106
+ rescue RagieRubySdk::ApiError => e
107
+ puts "Error when calling ResponsesApi->get_response_responses_response_id_get: #{e}"
108
+ end
109
+ ```
110
+
111
+ #### Using the get_response_responses_response_id_get_with_http_info variant
112
+
113
+ This returns an Array which contains the response data, status code and headers.
114
+
115
+ > <Array(<Response>, Integer, Hash)> get_response_responses_response_id_get_with_http_info(response_id)
116
+
117
+ ```ruby
118
+ begin
119
+ # Get Response
120
+ data, status_code, headers = api_instance.get_response_responses_response_id_get_with_http_info(response_id)
121
+ p status_code # => 2xx
122
+ p headers # => { ... }
123
+ p data # => <Response>
124
+ rescue RagieRubySdk::ApiError => e
125
+ puts "Error when calling ResponsesApi->get_response_responses_response_id_get_with_http_info: #{e}"
126
+ end
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+ | Name | Type | Description | Notes |
132
+ | ---- | ---- | ----------- | ----- |
133
+ | **response_id** | **String** | | |
134
+
135
+ ### Return type
136
+
137
+ [**Response**](Response.md)
138
+
139
+ ### Authorization
140
+
141
+ [auth](../README.md#auth)
142
+
143
+ ### HTTP request headers
144
+
145
+ - **Content-Type**: Not defined
146
+ - **Accept**: application/json
147
+
data/docs/Search.md ADDED
@@ -0,0 +1,18 @@
1
+ # RagieRubySdk::Search
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **search_requests** | **Array&lt;String&gt;** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ragie_ruby_sdk'
13
+
14
+ instance = RagieRubySdk::Search.new(
15
+ search_requests: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # RagieRubySdk::SearchResultLink
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **href** | **String** | | |
8
+ | **type** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ragie_ruby_sdk'
14
+
15
+ instance = RagieRubySdk::SearchResultLink.new(
16
+ href: null,
17
+ type: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,24 @@
1
+ # RagieRubySdk::SearchStep
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | | [optional][default to &#39;search&#39;] |
8
+ | **think** | **String** | | |
9
+ | **current_question** | **String** | | |
10
+ | **search** | [**Search**](Search.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ragie_ruby_sdk'
16
+
17
+ instance = RagieRubySdk::SearchStep.new(
18
+ type: null,
19
+ think: null,
20
+ current_question: null,
21
+ search: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,24 @@
1
+ # RagieRubySdk::SurrenderStep
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | | [optional][default to &#39;surrender&#39;] |
8
+ | **think** | **String** | | |
9
+ | **current_question** | **String** | | |
10
+ | **partial_answer** | [**Answer**](Answer.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ragie_ruby_sdk'
16
+
17
+ instance = RagieRubySdk::SurrenderStep.new(
18
+ type: null,
19
+ think: null,
20
+ current_question: null,
21
+ partial_answer: null
22
+ )
23
+ ```
24
+
data/docs/Tool.md ADDED
@@ -0,0 +1,20 @@
1
+ # RagieRubySdk::Tool
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | | |
8
+ | **partitions** | **Array&lt;String&gt;** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ragie_ruby_sdk'
14
+
15
+ instance = RagieRubySdk::Tool.new(
16
+ type: null,
17
+ partitions: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,153 @@
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.16.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module RagieRubySdk
16
+ class ResponsesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create Response
23
+ # Create a response. This will generate an LLM or agentic response. At this time the only supported model is `deep-search`. Responses may be streamed or returned synchronously. The `retrieve` tool is currently the only supported tool, more tools will be added in the future. A single partition may be provided in the retrieve tool. If omitted the `default` partition is used.
24
+ # @param request [Request]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [Response]
27
+ def create_response_responses_post(request, opts = {})
28
+ data, _status_code, _headers = create_response_responses_post_with_http_info(request, opts)
29
+ data
30
+ end
31
+
32
+ # Create Response
33
+ # Create a response. This will generate an LLM or agentic response. At this time the only supported model is &#x60;deep-search&#x60;. Responses may be streamed or returned synchronously. The &#x60;retrieve&#x60; tool is currently the only supported tool, more tools will be added in the future. A single partition may be provided in the retrieve tool. If omitted the &#x60;default&#x60; partition is used.
34
+ # @param request [Request]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(Response, Integer, Hash)>] Response data, response status code and response headers
37
+ def create_response_responses_post_with_http_info(request, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ResponsesApi.create_response_responses_post ...'
40
+ end
41
+ # verify the required parameter 'request' is set
42
+ if @api_client.config.client_side_validation && request.nil?
43
+ fail ArgumentError, "Missing the required parameter 'request' when calling ResponsesApi.create_response_responses_post"
44
+ end
45
+ # resource path
46
+ local_var_path = '/responses'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
55
+ # HTTP header 'Content-Type'
56
+ content_type = @api_client.select_header_content_type(['application/json'])
57
+ if !content_type.nil?
58
+ header_params['Content-Type'] = content_type
59
+ end
60
+
61
+ # form parameters
62
+ form_params = opts[:form_params] || {}
63
+
64
+ # http body (model)
65
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
66
+
67
+ # return_type
68
+ return_type = opts[:debug_return_type] || 'Response'
69
+
70
+ # auth_names
71
+ auth_names = opts[:debug_auth_names] || ['auth']
72
+
73
+ new_options = opts.merge(
74
+ :operation => :"ResponsesApi.create_response_responses_post",
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => return_type
81
+ )
82
+
83
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: ResponsesApi#create_response_responses_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # Get Response
91
+ # Get a response by its ID. This will return the response and its status. If the response is still in progress, the status will be `in_progress`. If the response is completed, the status will be `completed`. If the response is failed, the status will be `failed`.
92
+ # @param response_id [String]
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [Response]
95
+ def get_response_responses_response_id_get(response_id, opts = {})
96
+ data, _status_code, _headers = get_response_responses_response_id_get_with_http_info(response_id, opts)
97
+ data
98
+ end
99
+
100
+ # Get Response
101
+ # Get a response by its ID. This will return the response and its status. If the response is still in progress, the status will be &#x60;in_progress&#x60;. If the response is completed, the status will be &#x60;completed&#x60;. If the response is failed, the status will be &#x60;failed&#x60;.
102
+ # @param response_id [String]
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<(Response, Integer, Hash)>] Response data, response status code and response headers
105
+ def get_response_responses_response_id_get_with_http_info(response_id, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: ResponsesApi.get_response_responses_response_id_get ...'
108
+ end
109
+ # verify the required parameter 'response_id' is set
110
+ if @api_client.config.client_side_validation && response_id.nil?
111
+ fail ArgumentError, "Missing the required parameter 'response_id' when calling ResponsesApi.get_response_responses_response_id_get"
112
+ end
113
+ # resource path
114
+ local_var_path = '/responses/{response_id}'.sub('{' + 'response_id' + '}', CGI.escape(response_id.to_s))
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+
119
+ # header parameters
120
+ header_params = opts[:header_params] || {}
121
+ # HTTP header 'Accept' (if needed)
122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
123
+
124
+ # form parameters
125
+ form_params = opts[:form_params] || {}
126
+
127
+ # http body (model)
128
+ post_body = opts[:debug_body]
129
+
130
+ # return_type
131
+ return_type = opts[:debug_return_type] || 'Response'
132
+
133
+ # auth_names
134
+ auth_names = opts[:debug_auth_names] || ['auth']
135
+
136
+ new_options = opts.merge(
137
+ :operation => :"ResponsesApi.get_response_responses_response_id_get",
138
+ :header_params => header_params,
139
+ :query_params => query_params,
140
+ :form_params => form_params,
141
+ :body => post_body,
142
+ :auth_names => auth_names,
143
+ :return_type => return_type
144
+ )
145
+
146
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
147
+ if @api_client.config.debugging
148
+ @api_client.config.logger.debug "API called: ResponsesApi#get_response_responses_response_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
149
+ end
150
+ return data, status_code, headers
151
+ end
152
+ end
153
+ end