qanswer_sdk 3.1213.0__py3-none-any.whl → 3.1244.0__py3-none-any.whl
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.
- qanswer_sdk/__init__.py +66 -43
- qanswer_sdk/api/__init__.py +7 -4
- qanswer_sdk/api/admin_api.py +590 -7695
- qanswer_sdk/api/ai_assistant_access_rights_api.py +72 -73
- qanswer_sdk/api/ai_assistant_api.py +567 -46
- qanswer_sdk/api/branding_api.py +4578 -0
- qanswer_sdk/api/chatbot_api.py +72 -87
- qanswer_sdk/api/{tag_api.py → connector_imap_connector_api.py} +415 -997
- qanswer_sdk/api/connector_rdf_api.py +30 -31
- qanswer_sdk/api/connectors_api.py +183 -166
- qanswer_sdk/api/connectors_data_api.py +345 -1
- qanswer_sdk/api/dataset_config_api.py +0 -245
- qanswer_sdk/api/llm_api.py +30 -30
- qanswer_sdk/api/payment_api.py +17 -16
- qanswer_sdk/api/speech_to_text_api.py +2 -2
- qanswer_sdk/api/task_chat_api.py +8 -7
- qanswer_sdk/api/task_rdf_linker_api.py +35 -36
- qanswer_sdk/api/task_rdf_sparql_endpoint_api.py +16 -16
- qanswer_sdk/api/task_report_copilot_api.py +895 -281
- qanswer_sdk/api/task_search_api.py +8 -7
- qanswer_sdk/api/tool_embedder_api.py +4040 -0
- qanswer_sdk/api/{user_api.py → tool_llm_api.py} +735 -2749
- qanswer_sdk/api/unit_organizations_api.py +4547 -0
- qanswer_sdk/api/unit_teams_api.py +3906 -0
- qanswer_sdk/api/{organizations_teams_api.py → unit_user_api.py} +1345 -1394
- qanswer_sdk/api_client.py +1 -1
- qanswer_sdk/configuration.py +1 -1
- qanswer_sdk/models/__init__.py +58 -38
- qanswer_sdk/models/aggregation.py +2 -2
- qanswer_sdk/models/ai_assistant_filter_dto.py +105 -0
- qanswer_sdk/models/{user_profile_paginated.py → ai_assistant_list.py} +18 -18
- qanswer_sdk/models/{embedding_model.py → available_aggregation.py} +13 -11
- qanswer_sdk/models/available_connectors_response.py +2 -2
- qanswer_sdk/models/{branding_data.py → branding_app_title.py} +4 -4
- qanswer_sdk/models/{api_response.py → branding_system_message.py} +8 -8
- qanswer_sdk/models/chat_task_settings.py +12 -12
- qanswer_sdk/models/chat_task_update.py +13 -5
- qanswer_sdk/models/chatbot_chat_payload.py +19 -2
- qanswer_sdk/models/chatbot_conversation_model.py +10 -0
- qanswer_sdk/models/chatbot_response.py +22 -2
- qanswer_sdk/models/{user_chatbot_setting_payload.py → chatbot_setting_dto.py} +12 -13
- qanswer_sdk/models/chatbot_setting_request.py +96 -0
- qanswer_sdk/models/{question_completion.py → clip_connector_file_structure.py} +9 -9
- qanswer_sdk/models/clip_connector_structure.py +97 -0
- qanswer_sdk/models/connector_model.py +2 -2
- qanswer_sdk/models/conversation_message.py +4 -12
- qanswer_sdk/models/{cost_summary.py → cost_summary_dto.py} +4 -4
- qanswer_sdk/models/create_connector_request.py +4 -2
- qanswer_sdk/models/create_imap_connector_request.py +105 -0
- qanswer_sdk/models/create_pinecone_connector_request.py +3 -1
- qanswer_sdk/models/create_sharepoint_connector_from_certificate_request.py +3 -1
- qanswer_sdk/models/create_sharepoint_connector_request.py +3 -1
- qanswer_sdk/models/dataset_detail_kg.py +27 -1
- qanswer_sdk/models/dataset_schema.py +4 -2
- qanswer_sdk/models/dataset_update_object.py +3 -1
- qanswer_sdk/models/delete_connector_model.py +2 -2
- qanswer_sdk/models/delete_connectors_response.py +2 -4
- qanswer_sdk/models/{json_nullable_source_metadata.py → duplicate_report_template_response.py} +11 -9
- qanswer_sdk/models/{json_nullable_file_failure_reason.py → email_folder.py} +12 -8
- qanswer_sdk/models/{embedding_endpoint.py → embedder_detailed_dto.py} +16 -8
- qanswer_sdk/models/{tag_payload.py → embedder_dto.py} +11 -7
- qanswer_sdk/models/{pageable_object.py → embedder_list_dto.py} +20 -20
- qanswer_sdk/models/embedding_endpoint_create.py +3 -1
- qanswer_sdk/models/embedding_endpoint_update.py +4 -2
- qanswer_sdk/models/{sort_object.py → entity_description.py} +16 -12
- qanswer_sdk/models/{dataset_description.py → entity_description_dto.py} +9 -7
- qanswer_sdk/models/file_model.py +2 -2
- qanswer_sdk/models/imap_add_payload.py +103 -0
- qanswer_sdk/models/imap_additional_fields.py +101 -0
- qanswer_sdk/models/imap_file_metadata.py +114 -0
- qanswer_sdk/models/imap_search_response.py +113 -0
- qanswer_sdk/models/llm.py +129 -0
- qanswer_sdk/models/llm_consumption.py +118 -0
- qanswer_sdk/models/{pageable.py → llm_context_ranges.py} +14 -13
- qanswer_sdk/models/{llm_cost.py → llm_cost_filter.py} +11 -7
- qanswer_sdk/models/llm_cost_list.py +101 -0
- qanswer_sdk/models/llm_detailed_dto.py +179 -0
- qanswer_sdk/models/{llm_details.py → llm_dto.py} +14 -18
- qanswer_sdk/models/llm_endpoint.py +8 -2
- qanswer_sdk/models/llm_endpoint_read_input.py +173 -0
- qanswer_sdk/models/llm_endpoint_read_output.py +173 -0
- qanswer_sdk/models/llm_filter_dto.py +99 -0
- qanswer_sdk/models/llm_list_detailed_dto.py +101 -0
- qanswer_sdk/models/llm_list_dto.py +101 -0
- qanswer_sdk/models/modify_connector_request.py +5 -11
- qanswer_sdk/models/{o_auth_service.py → o_auth_service_dto.py} +4 -4
- qanswer_sdk/models/organization_admin.py +95 -0
- qanswer_sdk/models/organization_filter_dto.py +97 -0
- qanswer_sdk/models/organization_list_dto.py +101 -0
- qanswer_sdk/models/organization_llm.py +103 -0
- qanswer_sdk/models/{plan.py → plan_dto.py} +4 -4
- qanswer_sdk/models/prompt_token_count_details.py +3 -3
- qanswer_sdk/models/rag_payload.py +4 -4
- qanswer_sdk/models/rag_response.py +4 -2
- qanswer_sdk/models/relation_extraction_task_settings.py +12 -10
- qanswer_sdk/models/relation_extraction_task_update.py +14 -4
- qanswer_sdk/models/report_copilot_slot_task_settings.py +12 -10
- qanswer_sdk/models/report_copilot_slot_task_update.py +13 -3
- qanswer_sdk/models/report_copilot_task_settings.py +12 -10
- qanswer_sdk/models/report_copilot_task_update.py +14 -4
- qanswer_sdk/models/{report_copilot_template.py → report_template.py} +17 -7
- qanswer_sdk/models/{report_copilot_create_payload.py → report_template_create_payload.py} +4 -4
- qanswer_sdk/models/{report_copilot_template_simplified.py → report_template_simplified.py} +11 -7
- qanswer_sdk/models/{report_copilot_export_template_as_docx_payload_simplified.py → report_template_simplified_payload.py} +4 -4
- qanswer_sdk/models/{report_copilot_update_payload.py → report_template_update_payload.py} +15 -9
- qanswer_sdk/models/search_task_settings.py +12 -12
- qanswer_sdk/models/search_task_update.py +13 -3
- qanswer_sdk/models/{set_logo1_request.py → set_logo2_request.py} +4 -4
- qanswer_sdk/models/shared_organization_access.py +7 -3
- qanswer_sdk/models/shared_team_access.py +10 -4
- qanswer_sdk/models/slot.py +5 -1
- qanswer_sdk/models/slot_update.py +5 -1
- qanswer_sdk/models/socket_conversation_message.py +3 -11
- qanswer_sdk/models/socket_file_metadata.py +17 -11
- qanswer_sdk/models/source_metadata.py +109 -0
- qanswer_sdk/models/{tag_qa_list_payload.py → subscription_response.py} +22 -21
- qanswer_sdk/models/{team_with_count.py → team_admin.py} +8 -8
- qanswer_sdk/models/{team_filter.py → team_filter_dto.py} +16 -6
- qanswer_sdk/models/team_list_dto.py +101 -0
- qanswer_sdk/models/{available_endpoints_response.py → template_clip_structure_input.py} +14 -14
- qanswer_sdk/models/{available_embedding_models_response.py → template_clip_structure_output.py} +14 -14
- qanswer_sdk/models/test_imap_connection_payload.py +95 -0
- qanswer_sdk/models/text2_sparql_payload.py +4 -4
- qanswer_sdk/models/text2_sparql_task_settings.py +12 -10
- qanswer_sdk/models/text2_sparql_task_update.py +14 -4
- qanswer_sdk/models/{user_chatbot_setting_response.py → user_chatbot_setting.py} +24 -24
- qanswer_sdk/models/user_dataset.py +38 -2
- qanswer_sdk/models/{qa_metadata_payload.py → user_dataset_shared.py} +27 -37
- qanswer_sdk/models/{user_filter.py → user_filter_dto.py} +4 -4
- qanswer_sdk/models/{user_profile.py → user_profile_dto.py} +10 -10
- qanswer_sdk/models/user_profile_list_dto.py +3 -3
- qanswer_sdk/models/widget_configs.py +4 -2
- {qanswer_sdk-3.1213.0.dist-info → qanswer_sdk-3.1244.0.dist-info}/METADATA +2 -2
- {qanswer_sdk-3.1213.0.dist-info → qanswer_sdk-3.1244.0.dist-info}/RECORD +135 -112
- qanswer_sdk/api/llm_consumption_controller_api.py +0 -310
- qanswer_sdk/models/organization_filter.py +0 -87
- qanswer_sdk/models/page_organization.py +0 -123
- qanswer_sdk/models/page_team_with_count.py +0 -123
- qanswer_sdk/models/tag_qa_payload.py +0 -91
- {qanswer_sdk-3.1213.0.dist-info → qanswer_sdk-3.1244.0.dist-info}/WHEEL +0 -0
@@ -18,17 +18,19 @@ from typing_extensions import Annotated
|
|
18
18
|
|
19
19
|
from pydantic import StrictInt, StrictStr
|
20
20
|
from typing import Any, Dict, List, Optional
|
21
|
-
from qanswer_sdk.models.
|
22
|
-
from qanswer_sdk.models.
|
21
|
+
from qanswer_sdk.models.default_prompt import DefaultPrompt
|
22
|
+
from qanswer_sdk.models.duplicate_report_template_response import DuplicateReportTemplateResponse
|
23
23
|
from qanswer_sdk.models.report_copilot_generation_from_slots_payload import ReportCopilotGenerationFromSlotsPayload
|
24
24
|
from qanswer_sdk.models.report_copilot_generation_from_slots_response import ReportCopilotGenerationFromSlotsResponse
|
25
25
|
from qanswer_sdk.models.report_copilot_refinement_payload import ReportCopilotRefinementPayload
|
26
26
|
from qanswer_sdk.models.report_copilot_refinement_response import ReportCopilotRefinementResponse
|
27
27
|
from qanswer_sdk.models.report_copilot_task_settings import ReportCopilotTaskSettings
|
28
28
|
from qanswer_sdk.models.report_copilot_task_settings_update_payload import ReportCopilotTaskSettingsUpdatePayload
|
29
|
-
from qanswer_sdk.models.
|
30
|
-
from qanswer_sdk.models.
|
31
|
-
from qanswer_sdk.models.
|
29
|
+
from qanswer_sdk.models.report_template import ReportTemplate
|
30
|
+
from qanswer_sdk.models.report_template_create_payload import ReportTemplateCreatePayload
|
31
|
+
from qanswer_sdk.models.report_template_simplified import ReportTemplateSimplified
|
32
|
+
from qanswer_sdk.models.report_template_simplified_payload import ReportTemplateSimplifiedPayload
|
33
|
+
from qanswer_sdk.models.report_template_update_payload import ReportTemplateUpdatePayload
|
32
34
|
|
33
35
|
from qanswer_sdk.api_client import ApiClient, RequestSerialized
|
34
36
|
from qanswer_sdk.api_response import ApiResponse
|
@@ -51,7 +53,7 @@ class TaskReportCopilotApi:
|
|
51
53
|
@validate_call
|
52
54
|
def create_report_template(
|
53
55
|
self,
|
54
|
-
|
56
|
+
report_template_create_payload: ReportTemplateCreatePayload,
|
55
57
|
q_answer_api_key: Optional[StrictStr] = None,
|
56
58
|
_request_timeout: Union[
|
57
59
|
None,
|
@@ -65,12 +67,12 @@ class TaskReportCopilotApi:
|
|
65
67
|
_content_type: Optional[StrictStr] = None,
|
66
68
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
67
69
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
68
|
-
) ->
|
70
|
+
) -> ReportTemplate:
|
69
71
|
"""Create a report template
|
70
72
|
|
71
73
|
|
72
|
-
:param
|
73
|
-
:type
|
74
|
+
:param report_template_create_payload: (required)
|
75
|
+
:type report_template_create_payload: ReportTemplateCreatePayload
|
74
76
|
:param q_answer_api_key:
|
75
77
|
:type q_answer_api_key: str
|
76
78
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -96,7 +98,7 @@ class TaskReportCopilotApi:
|
|
96
98
|
""" # noqa: E501
|
97
99
|
|
98
100
|
_param = self._create_report_template_serialize(
|
99
|
-
|
101
|
+
report_template_create_payload=report_template_create_payload,
|
100
102
|
q_answer_api_key=q_answer_api_key,
|
101
103
|
_request_auth=_request_auth,
|
102
104
|
_content_type=_content_type,
|
@@ -105,7 +107,7 @@ class TaskReportCopilotApi:
|
|
105
107
|
)
|
106
108
|
|
107
109
|
_response_types_map: Dict[str, Optional[str]] = {
|
108
|
-
'200': "
|
110
|
+
'200': "ReportTemplate",
|
109
111
|
}
|
110
112
|
response_data = self.api_client.call_api(
|
111
113
|
*_param,
|
@@ -121,7 +123,7 @@ class TaskReportCopilotApi:
|
|
121
123
|
@validate_call
|
122
124
|
def create_report_template_with_http_info(
|
123
125
|
self,
|
124
|
-
|
126
|
+
report_template_create_payload: ReportTemplateCreatePayload,
|
125
127
|
q_answer_api_key: Optional[StrictStr] = None,
|
126
128
|
_request_timeout: Union[
|
127
129
|
None,
|
@@ -135,12 +137,12 @@ class TaskReportCopilotApi:
|
|
135
137
|
_content_type: Optional[StrictStr] = None,
|
136
138
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
137
139
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
138
|
-
) -> ApiResponse[
|
140
|
+
) -> ApiResponse[ReportTemplate]:
|
139
141
|
"""Create a report template
|
140
142
|
|
141
143
|
|
142
|
-
:param
|
143
|
-
:type
|
144
|
+
:param report_template_create_payload: (required)
|
145
|
+
:type report_template_create_payload: ReportTemplateCreatePayload
|
144
146
|
:param q_answer_api_key:
|
145
147
|
:type q_answer_api_key: str
|
146
148
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -166,7 +168,7 @@ class TaskReportCopilotApi:
|
|
166
168
|
""" # noqa: E501
|
167
169
|
|
168
170
|
_param = self._create_report_template_serialize(
|
169
|
-
|
171
|
+
report_template_create_payload=report_template_create_payload,
|
170
172
|
q_answer_api_key=q_answer_api_key,
|
171
173
|
_request_auth=_request_auth,
|
172
174
|
_content_type=_content_type,
|
@@ -175,7 +177,7 @@ class TaskReportCopilotApi:
|
|
175
177
|
)
|
176
178
|
|
177
179
|
_response_types_map: Dict[str, Optional[str]] = {
|
178
|
-
'200': "
|
180
|
+
'200': "ReportTemplate",
|
179
181
|
}
|
180
182
|
response_data = self.api_client.call_api(
|
181
183
|
*_param,
|
@@ -191,7 +193,7 @@ class TaskReportCopilotApi:
|
|
191
193
|
@validate_call
|
192
194
|
def create_report_template_without_preload_content(
|
193
195
|
self,
|
194
|
-
|
196
|
+
report_template_create_payload: ReportTemplateCreatePayload,
|
195
197
|
q_answer_api_key: Optional[StrictStr] = None,
|
196
198
|
_request_timeout: Union[
|
197
199
|
None,
|
@@ -209,8 +211,8 @@ class TaskReportCopilotApi:
|
|
209
211
|
"""Create a report template
|
210
212
|
|
211
213
|
|
212
|
-
:param
|
213
|
-
:type
|
214
|
+
:param report_template_create_payload: (required)
|
215
|
+
:type report_template_create_payload: ReportTemplateCreatePayload
|
214
216
|
:param q_answer_api_key:
|
215
217
|
:type q_answer_api_key: str
|
216
218
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -236,7 +238,7 @@ class TaskReportCopilotApi:
|
|
236
238
|
""" # noqa: E501
|
237
239
|
|
238
240
|
_param = self._create_report_template_serialize(
|
239
|
-
|
241
|
+
report_template_create_payload=report_template_create_payload,
|
240
242
|
q_answer_api_key=q_answer_api_key,
|
241
243
|
_request_auth=_request_auth,
|
242
244
|
_content_type=_content_type,
|
@@ -245,7 +247,7 @@ class TaskReportCopilotApi:
|
|
245
247
|
)
|
246
248
|
|
247
249
|
_response_types_map: Dict[str, Optional[str]] = {
|
248
|
-
'200': "
|
250
|
+
'200': "ReportTemplate",
|
249
251
|
}
|
250
252
|
response_data = self.api_client.call_api(
|
251
253
|
*_param,
|
@@ -256,7 +258,7 @@ class TaskReportCopilotApi:
|
|
256
258
|
|
257
259
|
def _create_report_template_serialize(
|
258
260
|
self,
|
259
|
-
|
261
|
+
report_template_create_payload,
|
260
262
|
q_answer_api_key,
|
261
263
|
_request_auth,
|
262
264
|
_content_type,
|
@@ -285,8 +287,8 @@ class TaskReportCopilotApi:
|
|
285
287
|
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
286
288
|
# process the form parameters
|
287
289
|
# process the body parameter
|
288
|
-
if
|
289
|
-
_body_params =
|
290
|
+
if report_template_create_payload is not None:
|
291
|
+
_body_params = report_template_create_payload
|
290
292
|
|
291
293
|
|
292
294
|
# set the HTTP header `Accept`
|
@@ -637,9 +639,9 @@ class TaskReportCopilotApi:
|
|
637
639
|
|
638
640
|
|
639
641
|
@validate_call
|
640
|
-
def
|
642
|
+
def duplicate_report_template(
|
641
643
|
self,
|
642
|
-
|
644
|
+
report_template_simplified_payload: ReportTemplateSimplifiedPayload,
|
643
645
|
q_answer_api_key: Optional[StrictStr] = None,
|
644
646
|
_request_timeout: Union[
|
645
647
|
None,
|
@@ -653,12 +655,12 @@ class TaskReportCopilotApi:
|
|
653
655
|
_content_type: Optional[StrictStr] = None,
|
654
656
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
655
657
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
656
|
-
) ->
|
657
|
-
"""
|
658
|
+
) -> DuplicateReportTemplateResponse:
|
659
|
+
"""Duplicate a report template
|
658
660
|
|
659
661
|
|
660
|
-
:param
|
661
|
-
:type
|
662
|
+
:param report_template_simplified_payload: (required)
|
663
|
+
:type report_template_simplified_payload: ReportTemplateSimplifiedPayload
|
662
664
|
:param q_answer_api_key:
|
663
665
|
:type q_answer_api_key: str
|
664
666
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -683,8 +685,8 @@ class TaskReportCopilotApi:
|
|
683
685
|
:return: Returns the result object.
|
684
686
|
""" # noqa: E501
|
685
687
|
|
686
|
-
_param = self.
|
687
|
-
|
688
|
+
_param = self._duplicate_report_template_serialize(
|
689
|
+
report_template_simplified_payload=report_template_simplified_payload,
|
688
690
|
q_answer_api_key=q_answer_api_key,
|
689
691
|
_request_auth=_request_auth,
|
690
692
|
_content_type=_content_type,
|
@@ -693,7 +695,7 @@ class TaskReportCopilotApi:
|
|
693
695
|
)
|
694
696
|
|
695
697
|
_response_types_map: Dict[str, Optional[str]] = {
|
696
|
-
'200': "
|
698
|
+
'200': "DuplicateReportTemplateResponse",
|
697
699
|
}
|
698
700
|
response_data = self.api_client.call_api(
|
699
701
|
*_param,
|
@@ -707,9 +709,9 @@ class TaskReportCopilotApi:
|
|
707
709
|
|
708
710
|
|
709
711
|
@validate_call
|
710
|
-
def
|
712
|
+
def duplicate_report_template_with_http_info(
|
711
713
|
self,
|
712
|
-
|
714
|
+
report_template_simplified_payload: ReportTemplateSimplifiedPayload,
|
713
715
|
q_answer_api_key: Optional[StrictStr] = None,
|
714
716
|
_request_timeout: Union[
|
715
717
|
None,
|
@@ -723,12 +725,12 @@ class TaskReportCopilotApi:
|
|
723
725
|
_content_type: Optional[StrictStr] = None,
|
724
726
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
725
727
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
726
|
-
) -> ApiResponse[
|
727
|
-
"""
|
728
|
+
) -> ApiResponse[DuplicateReportTemplateResponse]:
|
729
|
+
"""Duplicate a report template
|
728
730
|
|
729
731
|
|
730
|
-
:param
|
731
|
-
:type
|
732
|
+
:param report_template_simplified_payload: (required)
|
733
|
+
:type report_template_simplified_payload: ReportTemplateSimplifiedPayload
|
732
734
|
:param q_answer_api_key:
|
733
735
|
:type q_answer_api_key: str
|
734
736
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -753,8 +755,8 @@ class TaskReportCopilotApi:
|
|
753
755
|
:return: Returns the result object.
|
754
756
|
""" # noqa: E501
|
755
757
|
|
756
|
-
_param = self.
|
757
|
-
|
758
|
+
_param = self._duplicate_report_template_serialize(
|
759
|
+
report_template_simplified_payload=report_template_simplified_payload,
|
758
760
|
q_answer_api_key=q_answer_api_key,
|
759
761
|
_request_auth=_request_auth,
|
760
762
|
_content_type=_content_type,
|
@@ -763,7 +765,7 @@ class TaskReportCopilotApi:
|
|
763
765
|
)
|
764
766
|
|
765
767
|
_response_types_map: Dict[str, Optional[str]] = {
|
766
|
-
'200': "
|
768
|
+
'200': "DuplicateReportTemplateResponse",
|
767
769
|
}
|
768
770
|
response_data = self.api_client.call_api(
|
769
771
|
*_param,
|
@@ -777,9 +779,9 @@ class TaskReportCopilotApi:
|
|
777
779
|
|
778
780
|
|
779
781
|
@validate_call
|
780
|
-
def
|
782
|
+
def duplicate_report_template_without_preload_content(
|
781
783
|
self,
|
782
|
-
|
784
|
+
report_template_simplified_payload: ReportTemplateSimplifiedPayload,
|
783
785
|
q_answer_api_key: Optional[StrictStr] = None,
|
784
786
|
_request_timeout: Union[
|
785
787
|
None,
|
@@ -794,11 +796,11 @@ class TaskReportCopilotApi:
|
|
794
796
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
795
797
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
796
798
|
) -> RESTResponseType:
|
797
|
-
"""
|
799
|
+
"""Duplicate a report template
|
798
800
|
|
799
801
|
|
800
|
-
:param
|
801
|
-
:type
|
802
|
+
:param report_template_simplified_payload: (required)
|
803
|
+
:type report_template_simplified_payload: ReportTemplateSimplifiedPayload
|
802
804
|
:param q_answer_api_key:
|
803
805
|
:type q_answer_api_key: str
|
804
806
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -823,8 +825,8 @@ class TaskReportCopilotApi:
|
|
823
825
|
:return: Returns the result object.
|
824
826
|
""" # noqa: E501
|
825
827
|
|
826
|
-
_param = self.
|
827
|
-
|
828
|
+
_param = self._duplicate_report_template_serialize(
|
829
|
+
report_template_simplified_payload=report_template_simplified_payload,
|
828
830
|
q_answer_api_key=q_answer_api_key,
|
829
831
|
_request_auth=_request_auth,
|
830
832
|
_content_type=_content_type,
|
@@ -833,7 +835,7 @@ class TaskReportCopilotApi:
|
|
833
835
|
)
|
834
836
|
|
835
837
|
_response_types_map: Dict[str, Optional[str]] = {
|
836
|
-
'200': "
|
838
|
+
'200': "DuplicateReportTemplateResponse",
|
837
839
|
}
|
838
840
|
response_data = self.api_client.call_api(
|
839
841
|
*_param,
|
@@ -842,9 +844,9 @@ class TaskReportCopilotApi:
|
|
842
844
|
return response_data.response
|
843
845
|
|
844
846
|
|
845
|
-
def
|
847
|
+
def _duplicate_report_template_serialize(
|
846
848
|
self,
|
847
|
-
|
849
|
+
report_template_simplified_payload,
|
848
850
|
q_answer_api_key,
|
849
851
|
_request_auth,
|
850
852
|
_content_type,
|
@@ -873,8 +875,8 @@ class TaskReportCopilotApi:
|
|
873
875
|
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
874
876
|
# process the form parameters
|
875
877
|
# process the body parameter
|
876
|
-
if
|
877
|
-
_body_params =
|
878
|
+
if report_template_simplified_payload is not None:
|
879
|
+
_body_params = report_template_simplified_payload
|
878
880
|
|
879
881
|
|
880
882
|
# set the HTTP header `Accept`
|
@@ -907,7 +909,7 @@ class TaskReportCopilotApi:
|
|
907
909
|
|
908
910
|
return self.api_client.param_serialize(
|
909
911
|
method='POST',
|
910
|
-
resource_path='/api/tasks/report-copilot/
|
912
|
+
resource_path='/api/tasks/report-copilot/template/duplicate',
|
911
913
|
path_params=_path_params,
|
912
914
|
query_params=_query_params,
|
913
915
|
header_params=_header_params,
|
@@ -924,10 +926,9 @@ class TaskReportCopilotApi:
|
|
924
926
|
|
925
927
|
|
926
928
|
@validate_call
|
927
|
-
def
|
929
|
+
def export_template_as_docx(
|
928
930
|
self,
|
929
|
-
|
930
|
-
dataset: StrictStr,
|
931
|
+
report_template_simplified_payload: ReportTemplateSimplifiedPayload,
|
931
932
|
q_answer_api_key: Optional[StrictStr] = None,
|
932
933
|
_request_timeout: Union[
|
933
934
|
None,
|
@@ -941,14 +942,12 @@ class TaskReportCopilotApi:
|
|
941
942
|
_content_type: Optional[StrictStr] = None,
|
942
943
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
943
944
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
944
|
-
) ->
|
945
|
-
"""
|
945
|
+
) -> object:
|
946
|
+
"""Export template html as docx file
|
946
947
|
|
947
948
|
|
948
|
-
:param
|
949
|
-
:type
|
950
|
-
:param dataset: (required)
|
951
|
-
:type dataset: str
|
949
|
+
:param report_template_simplified_payload: (required)
|
950
|
+
:type report_template_simplified_payload: ReportTemplateSimplifiedPayload
|
952
951
|
:param q_answer_api_key:
|
953
952
|
:type q_answer_api_key: str
|
954
953
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -973,9 +972,8 @@ class TaskReportCopilotApi:
|
|
973
972
|
:return: Returns the result object.
|
974
973
|
""" # noqa: E501
|
975
974
|
|
976
|
-
_param = self.
|
977
|
-
|
978
|
-
dataset=dataset,
|
975
|
+
_param = self._export_template_as_docx_serialize(
|
976
|
+
report_template_simplified_payload=report_template_simplified_payload,
|
979
977
|
q_answer_api_key=q_answer_api_key,
|
980
978
|
_request_auth=_request_auth,
|
981
979
|
_content_type=_content_type,
|
@@ -984,7 +982,7 @@ class TaskReportCopilotApi:
|
|
984
982
|
)
|
985
983
|
|
986
984
|
_response_types_map: Dict[str, Optional[str]] = {
|
987
|
-
'200': "
|
985
|
+
'200': "object",
|
988
986
|
}
|
989
987
|
response_data = self.api_client.call_api(
|
990
988
|
*_param,
|
@@ -998,10 +996,9 @@ class TaskReportCopilotApi:
|
|
998
996
|
|
999
997
|
|
1000
998
|
@validate_call
|
1001
|
-
def
|
999
|
+
def export_template_as_docx_with_http_info(
|
1002
1000
|
self,
|
1003
|
-
|
1004
|
-
dataset: StrictStr,
|
1001
|
+
report_template_simplified_payload: ReportTemplateSimplifiedPayload,
|
1005
1002
|
q_answer_api_key: Optional[StrictStr] = None,
|
1006
1003
|
_request_timeout: Union[
|
1007
1004
|
None,
|
@@ -1015,14 +1012,12 @@ class TaskReportCopilotApi:
|
|
1015
1012
|
_content_type: Optional[StrictStr] = None,
|
1016
1013
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1017
1014
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1018
|
-
) -> ApiResponse[
|
1019
|
-
"""
|
1015
|
+
) -> ApiResponse[object]:
|
1016
|
+
"""Export template html as docx file
|
1020
1017
|
|
1021
1018
|
|
1022
|
-
:param
|
1023
|
-
:type
|
1024
|
-
:param dataset: (required)
|
1025
|
-
:type dataset: str
|
1019
|
+
:param report_template_simplified_payload: (required)
|
1020
|
+
:type report_template_simplified_payload: ReportTemplateSimplifiedPayload
|
1026
1021
|
:param q_answer_api_key:
|
1027
1022
|
:type q_answer_api_key: str
|
1028
1023
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -1047,9 +1042,8 @@ class TaskReportCopilotApi:
|
|
1047
1042
|
:return: Returns the result object.
|
1048
1043
|
""" # noqa: E501
|
1049
1044
|
|
1050
|
-
_param = self.
|
1051
|
-
|
1052
|
-
dataset=dataset,
|
1045
|
+
_param = self._export_template_as_docx_serialize(
|
1046
|
+
report_template_simplified_payload=report_template_simplified_payload,
|
1053
1047
|
q_answer_api_key=q_answer_api_key,
|
1054
1048
|
_request_auth=_request_auth,
|
1055
1049
|
_content_type=_content_type,
|
@@ -1058,7 +1052,7 @@ class TaskReportCopilotApi:
|
|
1058
1052
|
)
|
1059
1053
|
|
1060
1054
|
_response_types_map: Dict[str, Optional[str]] = {
|
1061
|
-
'200': "
|
1055
|
+
'200': "object",
|
1062
1056
|
}
|
1063
1057
|
response_data = self.api_client.call_api(
|
1064
1058
|
*_param,
|
@@ -1072,10 +1066,9 @@ class TaskReportCopilotApi:
|
|
1072
1066
|
|
1073
1067
|
|
1074
1068
|
@validate_call
|
1075
|
-
def
|
1069
|
+
def export_template_as_docx_without_preload_content(
|
1076
1070
|
self,
|
1077
|
-
|
1078
|
-
dataset: StrictStr,
|
1071
|
+
report_template_simplified_payload: ReportTemplateSimplifiedPayload,
|
1079
1072
|
q_answer_api_key: Optional[StrictStr] = None,
|
1080
1073
|
_request_timeout: Union[
|
1081
1074
|
None,
|
@@ -1090,13 +1083,11 @@ class TaskReportCopilotApi:
|
|
1090
1083
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1091
1084
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1092
1085
|
) -> RESTResponseType:
|
1093
|
-
"""
|
1086
|
+
"""Export template html as docx file
|
1094
1087
|
|
1095
1088
|
|
1096
|
-
:param
|
1097
|
-
:type
|
1098
|
-
:param dataset: (required)
|
1099
|
-
:type dataset: str
|
1089
|
+
:param report_template_simplified_payload: (required)
|
1090
|
+
:type report_template_simplified_payload: ReportTemplateSimplifiedPayload
|
1100
1091
|
:param q_answer_api_key:
|
1101
1092
|
:type q_answer_api_key: str
|
1102
1093
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -1121,9 +1112,8 @@ class TaskReportCopilotApi:
|
|
1121
1112
|
:return: Returns the result object.
|
1122
1113
|
""" # noqa: E501
|
1123
1114
|
|
1124
|
-
_param = self.
|
1125
|
-
|
1126
|
-
dataset=dataset,
|
1115
|
+
_param = self._export_template_as_docx_serialize(
|
1116
|
+
report_template_simplified_payload=report_template_simplified_payload,
|
1127
1117
|
q_answer_api_key=q_answer_api_key,
|
1128
1118
|
_request_auth=_request_auth,
|
1129
1119
|
_content_type=_content_type,
|
@@ -1132,7 +1122,7 @@ class TaskReportCopilotApi:
|
|
1132
1122
|
)
|
1133
1123
|
|
1134
1124
|
_response_types_map: Dict[str, Optional[str]] = {
|
1135
|
-
'200': "
|
1125
|
+
'200': "object",
|
1136
1126
|
}
|
1137
1127
|
response_data = self.api_client.call_api(
|
1138
1128
|
*_param,
|
@@ -1141,10 +1131,9 @@ class TaskReportCopilotApi:
|
|
1141
1131
|
return response_data.response
|
1142
1132
|
|
1143
1133
|
|
1144
|
-
def
|
1134
|
+
def _export_template_as_docx_serialize(
|
1145
1135
|
self,
|
1146
|
-
|
1147
|
-
dataset,
|
1136
|
+
report_template_simplified_payload,
|
1148
1137
|
q_answer_api_key,
|
1149
1138
|
_request_auth,
|
1150
1139
|
_content_type,
|
@@ -1168,19 +1157,13 @@ class TaskReportCopilotApi:
|
|
1168
1157
|
|
1169
1158
|
# process the path parameters
|
1170
1159
|
# process the query parameters
|
1171
|
-
if username is not None:
|
1172
|
-
|
1173
|
-
_query_params.append(('username', username))
|
1174
|
-
|
1175
|
-
if dataset is not None:
|
1176
|
-
|
1177
|
-
_query_params.append(('dataset', dataset))
|
1178
|
-
|
1179
1160
|
# process the header parameters
|
1180
1161
|
if q_answer_api_key is not None:
|
1181
1162
|
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
1182
1163
|
# process the form parameters
|
1183
1164
|
# process the body parameter
|
1165
|
+
if report_template_simplified_payload is not None:
|
1166
|
+
_body_params = report_template_simplified_payload
|
1184
1167
|
|
1185
1168
|
|
1186
1169
|
# set the HTTP header `Accept`
|
@@ -1191,6 +1174,19 @@ class TaskReportCopilotApi:
|
|
1191
1174
|
]
|
1192
1175
|
)
|
1193
1176
|
|
1177
|
+
# set the HTTP header `Content-Type`
|
1178
|
+
if _content_type:
|
1179
|
+
_header_params['Content-Type'] = _content_type
|
1180
|
+
else:
|
1181
|
+
_default_content_type = (
|
1182
|
+
self.api_client.select_header_content_type(
|
1183
|
+
[
|
1184
|
+
'application/json'
|
1185
|
+
]
|
1186
|
+
)
|
1187
|
+
)
|
1188
|
+
if _default_content_type is not None:
|
1189
|
+
_header_params['Content-Type'] = _default_content_type
|
1194
1190
|
|
1195
1191
|
# authentication setting
|
1196
1192
|
_auth_settings: List[str] = [
|
@@ -1199,8 +1195,8 @@ class TaskReportCopilotApi:
|
|
1199
1195
|
]
|
1200
1196
|
|
1201
1197
|
return self.api_client.param_serialize(
|
1202
|
-
method='
|
1203
|
-
resource_path='/api/tasks/report-copilot/
|
1198
|
+
method='POST',
|
1199
|
+
resource_path='/api/tasks/report-copilot/templates/export-as-docx',
|
1204
1200
|
path_params=_path_params,
|
1205
1201
|
query_params=_query_params,
|
1206
1202
|
header_params=_header_params,
|
@@ -1217,9 +1213,11 @@ class TaskReportCopilotApi:
|
|
1217
1213
|
|
1218
1214
|
|
1219
1215
|
@validate_call
|
1220
|
-
def
|
1216
|
+
def get_default_prompt(
|
1221
1217
|
self,
|
1222
|
-
|
1218
|
+
template_id: StrictInt,
|
1219
|
+
username: StrictStr,
|
1220
|
+
dataset: StrictStr,
|
1223
1221
|
q_answer_api_key: Optional[StrictStr] = None,
|
1224
1222
|
_request_timeout: Union[
|
1225
1223
|
None,
|
@@ -1233,12 +1231,16 @@ class TaskReportCopilotApi:
|
|
1233
1231
|
_content_type: Optional[StrictStr] = None,
|
1234
1232
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1235
1233
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1236
|
-
) ->
|
1237
|
-
"""
|
1234
|
+
) -> DefaultPrompt:
|
1235
|
+
"""Get the default prompt with slots of a report template
|
1238
1236
|
|
1239
1237
|
|
1240
|
-
:param
|
1241
|
-
:type
|
1238
|
+
:param template_id: (required)
|
1239
|
+
:type template_id: int
|
1240
|
+
:param username: (required)
|
1241
|
+
:type username: str
|
1242
|
+
:param dataset: (required)
|
1243
|
+
:type dataset: str
|
1242
1244
|
:param q_answer_api_key:
|
1243
1245
|
:type q_answer_api_key: str
|
1244
1246
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -1263,8 +1265,10 @@ class TaskReportCopilotApi:
|
|
1263
1265
|
:return: Returns the result object.
|
1264
1266
|
""" # noqa: E501
|
1265
1267
|
|
1266
|
-
_param = self.
|
1267
|
-
|
1268
|
+
_param = self._get_default_prompt_serialize(
|
1269
|
+
template_id=template_id,
|
1270
|
+
username=username,
|
1271
|
+
dataset=dataset,
|
1268
1272
|
q_answer_api_key=q_answer_api_key,
|
1269
1273
|
_request_auth=_request_auth,
|
1270
1274
|
_content_type=_content_type,
|
@@ -1273,7 +1277,7 @@ class TaskReportCopilotApi:
|
|
1273
1277
|
)
|
1274
1278
|
|
1275
1279
|
_response_types_map: Dict[str, Optional[str]] = {
|
1276
|
-
'200': "
|
1280
|
+
'200': "DefaultPrompt",
|
1277
1281
|
}
|
1278
1282
|
response_data = self.api_client.call_api(
|
1279
1283
|
*_param,
|
@@ -1287,9 +1291,11 @@ class TaskReportCopilotApi:
|
|
1287
1291
|
|
1288
1292
|
|
1289
1293
|
@validate_call
|
1290
|
-
def
|
1294
|
+
def get_default_prompt_with_http_info(
|
1291
1295
|
self,
|
1292
|
-
|
1296
|
+
template_id: StrictInt,
|
1297
|
+
username: StrictStr,
|
1298
|
+
dataset: StrictStr,
|
1293
1299
|
q_answer_api_key: Optional[StrictStr] = None,
|
1294
1300
|
_request_timeout: Union[
|
1295
1301
|
None,
|
@@ -1303,12 +1309,16 @@ class TaskReportCopilotApi:
|
|
1303
1309
|
_content_type: Optional[StrictStr] = None,
|
1304
1310
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1305
1311
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1306
|
-
) -> ApiResponse[
|
1307
|
-
"""
|
1312
|
+
) -> ApiResponse[DefaultPrompt]:
|
1313
|
+
"""Get the default prompt with slots of a report template
|
1308
1314
|
|
1309
1315
|
|
1310
|
-
:param
|
1311
|
-
:type
|
1316
|
+
:param template_id: (required)
|
1317
|
+
:type template_id: int
|
1318
|
+
:param username: (required)
|
1319
|
+
:type username: str
|
1320
|
+
:param dataset: (required)
|
1321
|
+
:type dataset: str
|
1312
1322
|
:param q_answer_api_key:
|
1313
1323
|
:type q_answer_api_key: str
|
1314
1324
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -1333,8 +1343,10 @@ class TaskReportCopilotApi:
|
|
1333
1343
|
:return: Returns the result object.
|
1334
1344
|
""" # noqa: E501
|
1335
1345
|
|
1336
|
-
_param = self.
|
1337
|
-
|
1346
|
+
_param = self._get_default_prompt_serialize(
|
1347
|
+
template_id=template_id,
|
1348
|
+
username=username,
|
1349
|
+
dataset=dataset,
|
1338
1350
|
q_answer_api_key=q_answer_api_key,
|
1339
1351
|
_request_auth=_request_auth,
|
1340
1352
|
_content_type=_content_type,
|
@@ -1343,7 +1355,7 @@ class TaskReportCopilotApi:
|
|
1343
1355
|
)
|
1344
1356
|
|
1345
1357
|
_response_types_map: Dict[str, Optional[str]] = {
|
1346
|
-
'200': "
|
1358
|
+
'200': "DefaultPrompt",
|
1347
1359
|
}
|
1348
1360
|
response_data = self.api_client.call_api(
|
1349
1361
|
*_param,
|
@@ -1357,9 +1369,11 @@ class TaskReportCopilotApi:
|
|
1357
1369
|
|
1358
1370
|
|
1359
1371
|
@validate_call
|
1360
|
-
def
|
1372
|
+
def get_default_prompt_without_preload_content(
|
1361
1373
|
self,
|
1362
|
-
|
1374
|
+
template_id: StrictInt,
|
1375
|
+
username: StrictStr,
|
1376
|
+
dataset: StrictStr,
|
1363
1377
|
q_answer_api_key: Optional[StrictStr] = None,
|
1364
1378
|
_request_timeout: Union[
|
1365
1379
|
None,
|
@@ -1374,11 +1388,15 @@ class TaskReportCopilotApi:
|
|
1374
1388
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1375
1389
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1376
1390
|
) -> RESTResponseType:
|
1377
|
-
"""
|
1391
|
+
"""Get the default prompt with slots of a report template
|
1378
1392
|
|
1379
1393
|
|
1380
|
-
:param
|
1381
|
-
:type
|
1394
|
+
:param template_id: (required)
|
1395
|
+
:type template_id: int
|
1396
|
+
:param username: (required)
|
1397
|
+
:type username: str
|
1398
|
+
:param dataset: (required)
|
1399
|
+
:type dataset: str
|
1382
1400
|
:param q_answer_api_key:
|
1383
1401
|
:type q_answer_api_key: str
|
1384
1402
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -1403,8 +1421,10 @@ class TaskReportCopilotApi:
|
|
1403
1421
|
:return: Returns the result object.
|
1404
1422
|
""" # noqa: E501
|
1405
1423
|
|
1406
|
-
_param = self.
|
1407
|
-
|
1424
|
+
_param = self._get_default_prompt_serialize(
|
1425
|
+
template_id=template_id,
|
1426
|
+
username=username,
|
1427
|
+
dataset=dataset,
|
1408
1428
|
q_answer_api_key=q_answer_api_key,
|
1409
1429
|
_request_auth=_request_auth,
|
1410
1430
|
_content_type=_content_type,
|
@@ -1413,7 +1433,7 @@ class TaskReportCopilotApi:
|
|
1413
1433
|
)
|
1414
1434
|
|
1415
1435
|
_response_types_map: Dict[str, Optional[str]] = {
|
1416
|
-
'200': "
|
1436
|
+
'200': "DefaultPrompt",
|
1417
1437
|
}
|
1418
1438
|
response_data = self.api_client.call_api(
|
1419
1439
|
*_param,
|
@@ -1422,9 +1442,11 @@ class TaskReportCopilotApi:
|
|
1422
1442
|
return response_data.response
|
1423
1443
|
|
1424
1444
|
|
1425
|
-
def
|
1445
|
+
def _get_default_prompt_serialize(
|
1426
1446
|
self,
|
1427
|
-
|
1447
|
+
template_id,
|
1448
|
+
username,
|
1449
|
+
dataset,
|
1428
1450
|
q_answer_api_key,
|
1429
1451
|
_request_auth,
|
1430
1452
|
_content_type,
|
@@ -1447,14 +1469,22 @@ class TaskReportCopilotApi:
|
|
1447
1469
|
_body_params: Optional[bytes] = None
|
1448
1470
|
|
1449
1471
|
# process the path parameters
|
1472
|
+
if template_id is not None:
|
1473
|
+
_path_params['templateId'] = template_id
|
1450
1474
|
# process the query parameters
|
1475
|
+
if username is not None:
|
1476
|
+
|
1477
|
+
_query_params.append(('username', username))
|
1478
|
+
|
1479
|
+
if dataset is not None:
|
1480
|
+
|
1481
|
+
_query_params.append(('dataset', dataset))
|
1482
|
+
|
1451
1483
|
# process the header parameters
|
1452
1484
|
if q_answer_api_key is not None:
|
1453
1485
|
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
1454
1486
|
# process the form parameters
|
1455
1487
|
# process the body parameter
|
1456
|
-
if report_copilot_task_settings_update_payload is not None:
|
1457
|
-
_body_params = report_copilot_task_settings_update_payload
|
1458
1488
|
|
1459
1489
|
|
1460
1490
|
# set the HTTP header `Accept`
|
@@ -1465,19 +1495,6 @@ class TaskReportCopilotApi:
|
|
1465
1495
|
]
|
1466
1496
|
)
|
1467
1497
|
|
1468
|
-
# set the HTTP header `Content-Type`
|
1469
|
-
if _content_type:
|
1470
|
-
_header_params['Content-Type'] = _content_type
|
1471
|
-
else:
|
1472
|
-
_default_content_type = (
|
1473
|
-
self.api_client.select_header_content_type(
|
1474
|
-
[
|
1475
|
-
'application/json'
|
1476
|
-
]
|
1477
|
-
)
|
1478
|
-
)
|
1479
|
-
if _default_content_type is not None:
|
1480
|
-
_header_params['Content-Type'] = _default_content_type
|
1481
1498
|
|
1482
1499
|
# authentication setting
|
1483
1500
|
_auth_settings: List[str] = [
|
@@ -1486,8 +1503,8 @@ class TaskReportCopilotApi:
|
|
1486
1503
|
]
|
1487
1504
|
|
1488
1505
|
return self.api_client.param_serialize(
|
1489
|
-
method='
|
1490
|
-
resource_path='/api/tasks/report-copilot/
|
1506
|
+
method='GET',
|
1507
|
+
resource_path='/api/tasks/report-copilot/templates/{templateId}/default-prompt',
|
1491
1508
|
path_params=_path_params,
|
1492
1509
|
query_params=_query_params,
|
1493
1510
|
header_params=_header_params,
|
@@ -1522,7 +1539,7 @@ class TaskReportCopilotApi:
|
|
1522
1539
|
_content_type: Optional[StrictStr] = None,
|
1523
1540
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1524
1541
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1525
|
-
) ->
|
1542
|
+
) -> ReportTemplate:
|
1526
1543
|
"""Get a specific report template
|
1527
1544
|
|
1528
1545
|
|
@@ -1568,7 +1585,7 @@ class TaskReportCopilotApi:
|
|
1568
1585
|
)
|
1569
1586
|
|
1570
1587
|
_response_types_map: Dict[str, Optional[str]] = {
|
1571
|
-
'200': "
|
1588
|
+
'200': "ReportTemplate",
|
1572
1589
|
}
|
1573
1590
|
response_data = self.api_client.call_api(
|
1574
1591
|
*_param,
|
@@ -1600,7 +1617,7 @@ class TaskReportCopilotApi:
|
|
1600
1617
|
_content_type: Optional[StrictStr] = None,
|
1601
1618
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1602
1619
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1603
|
-
) -> ApiResponse[
|
1620
|
+
) -> ApiResponse[ReportTemplate]:
|
1604
1621
|
"""Get a specific report template
|
1605
1622
|
|
1606
1623
|
|
@@ -1646,7 +1663,7 @@ class TaskReportCopilotApi:
|
|
1646
1663
|
)
|
1647
1664
|
|
1648
1665
|
_response_types_map: Dict[str, Optional[str]] = {
|
1649
|
-
'200': "
|
1666
|
+
'200': "ReportTemplate",
|
1650
1667
|
}
|
1651
1668
|
response_data = self.api_client.call_api(
|
1652
1669
|
*_param,
|
@@ -1724,7 +1741,7 @@ class TaskReportCopilotApi:
|
|
1724
1741
|
)
|
1725
1742
|
|
1726
1743
|
_response_types_map: Dict[str, Optional[str]] = {
|
1727
|
-
'200': "
|
1744
|
+
'200': "ReportTemplate",
|
1728
1745
|
}
|
1729
1746
|
response_data = self.api_client.call_api(
|
1730
1747
|
*_param,
|
@@ -1812,7 +1829,7 @@ class TaskReportCopilotApi:
|
|
1812
1829
|
|
1813
1830
|
|
1814
1831
|
@validate_call
|
1815
|
-
def
|
1832
|
+
def get_task_settings(
|
1816
1833
|
self,
|
1817
1834
|
username: StrictStr,
|
1818
1835
|
dataset: StrictStr,
|
@@ -1829,8 +1846,8 @@ class TaskReportCopilotApi:
|
|
1829
1846
|
_content_type: Optional[StrictStr] = None,
|
1830
1847
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1831
1848
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1832
|
-
) ->
|
1833
|
-
"""
|
1849
|
+
) -> ReportCopilotTaskSettings:
|
1850
|
+
"""This gets the settings of the report-copilot task
|
1834
1851
|
|
1835
1852
|
|
1836
1853
|
:param username: (required)
|
@@ -1861,7 +1878,7 @@ class TaskReportCopilotApi:
|
|
1861
1878
|
:return: Returns the result object.
|
1862
1879
|
""" # noqa: E501
|
1863
1880
|
|
1864
|
-
_param = self.
|
1881
|
+
_param = self._get_task_settings_serialize(
|
1865
1882
|
username=username,
|
1866
1883
|
dataset=dataset,
|
1867
1884
|
q_answer_api_key=q_answer_api_key,
|
@@ -1872,7 +1889,7 @@ class TaskReportCopilotApi:
|
|
1872
1889
|
)
|
1873
1890
|
|
1874
1891
|
_response_types_map: Dict[str, Optional[str]] = {
|
1875
|
-
'200': "
|
1892
|
+
'200': "ReportCopilotTaskSettings",
|
1876
1893
|
}
|
1877
1894
|
response_data = self.api_client.call_api(
|
1878
1895
|
*_param,
|
@@ -1886,7 +1903,7 @@ class TaskReportCopilotApi:
|
|
1886
1903
|
|
1887
1904
|
|
1888
1905
|
@validate_call
|
1889
|
-
def
|
1906
|
+
def get_task_settings_with_http_info(
|
1890
1907
|
self,
|
1891
1908
|
username: StrictStr,
|
1892
1909
|
dataset: StrictStr,
|
@@ -1903,8 +1920,8 @@ class TaskReportCopilotApi:
|
|
1903
1920
|
_content_type: Optional[StrictStr] = None,
|
1904
1921
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1905
1922
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1906
|
-
) -> ApiResponse[
|
1907
|
-
"""
|
1923
|
+
) -> ApiResponse[ReportCopilotTaskSettings]:
|
1924
|
+
"""This gets the settings of the report-copilot task
|
1908
1925
|
|
1909
1926
|
|
1910
1927
|
:param username: (required)
|
@@ -1935,7 +1952,7 @@ class TaskReportCopilotApi:
|
|
1935
1952
|
:return: Returns the result object.
|
1936
1953
|
""" # noqa: E501
|
1937
1954
|
|
1938
|
-
_param = self.
|
1955
|
+
_param = self._get_task_settings_serialize(
|
1939
1956
|
username=username,
|
1940
1957
|
dataset=dataset,
|
1941
1958
|
q_answer_api_key=q_answer_api_key,
|
@@ -1946,7 +1963,7 @@ class TaskReportCopilotApi:
|
|
1946
1963
|
)
|
1947
1964
|
|
1948
1965
|
_response_types_map: Dict[str, Optional[str]] = {
|
1949
|
-
'200': "
|
1966
|
+
'200': "ReportCopilotTaskSettings",
|
1950
1967
|
}
|
1951
1968
|
response_data = self.api_client.call_api(
|
1952
1969
|
*_param,
|
@@ -1960,7 +1977,7 @@ class TaskReportCopilotApi:
|
|
1960
1977
|
|
1961
1978
|
|
1962
1979
|
@validate_call
|
1963
|
-
def
|
1980
|
+
def get_task_settings_without_preload_content(
|
1964
1981
|
self,
|
1965
1982
|
username: StrictStr,
|
1966
1983
|
dataset: StrictStr,
|
@@ -1978,7 +1995,7 @@ class TaskReportCopilotApi:
|
|
1978
1995
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1979
1996
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1980
1997
|
) -> RESTResponseType:
|
1981
|
-
"""
|
1998
|
+
"""This gets the settings of the report-copilot task
|
1982
1999
|
|
1983
2000
|
|
1984
2001
|
:param username: (required)
|
@@ -2009,7 +2026,7 @@ class TaskReportCopilotApi:
|
|
2009
2026
|
:return: Returns the result object.
|
2010
2027
|
""" # noqa: E501
|
2011
2028
|
|
2012
|
-
_param = self.
|
2029
|
+
_param = self._get_task_settings_serialize(
|
2013
2030
|
username=username,
|
2014
2031
|
dataset=dataset,
|
2015
2032
|
q_answer_api_key=q_answer_api_key,
|
@@ -2020,7 +2037,7 @@ class TaskReportCopilotApi:
|
|
2020
2037
|
)
|
2021
2038
|
|
2022
2039
|
_response_types_map: Dict[str, Optional[str]] = {
|
2023
|
-
'200': "
|
2040
|
+
'200': "ReportCopilotTaskSettings",
|
2024
2041
|
}
|
2025
2042
|
response_data = self.api_client.call_api(
|
2026
2043
|
*_param,
|
@@ -2029,7 +2046,7 @@ class TaskReportCopilotApi:
|
|
2029
2046
|
return response_data.response
|
2030
2047
|
|
2031
2048
|
|
2032
|
-
def
|
2049
|
+
def _get_task_settings_serialize(
|
2033
2050
|
self,
|
2034
2051
|
username,
|
2035
2052
|
dataset,
|
@@ -2088,7 +2105,7 @@ class TaskReportCopilotApi:
|
|
2088
2105
|
|
2089
2106
|
return self.api_client.param_serialize(
|
2090
2107
|
method='GET',
|
2091
|
-
resource_path='/api/tasks/report-copilot/
|
2108
|
+
resource_path='/api/tasks/report-copilot/settings',
|
2092
2109
|
path_params=_path_params,
|
2093
2110
|
query_params=_query_params,
|
2094
2111
|
header_params=_header_params,
|
@@ -2105,9 +2122,11 @@ class TaskReportCopilotApi:
|
|
2105
2122
|
|
2106
2123
|
|
2107
2124
|
@validate_call
|
2108
|
-
def
|
2125
|
+
def list_report_templates(
|
2109
2126
|
self,
|
2110
|
-
|
2127
|
+
username: StrictStr,
|
2128
|
+
dataset: StrictStr,
|
2129
|
+
conversation_id: Optional[StrictStr] = None,
|
2111
2130
|
q_answer_api_key: Optional[StrictStr] = None,
|
2112
2131
|
_request_timeout: Union[
|
2113
2132
|
None,
|
@@ -2121,12 +2140,16 @@ class TaskReportCopilotApi:
|
|
2121
2140
|
_content_type: Optional[StrictStr] = None,
|
2122
2141
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2123
2142
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2124
|
-
) ->
|
2125
|
-
"""
|
2143
|
+
) -> List[ReportTemplateSimplified]:
|
2144
|
+
"""List all report templates
|
2126
2145
|
|
2127
2146
|
|
2128
|
-
:param
|
2129
|
-
:type
|
2147
|
+
:param username: (required)
|
2148
|
+
:type username: str
|
2149
|
+
:param dataset: (required)
|
2150
|
+
:type dataset: str
|
2151
|
+
:param conversation_id:
|
2152
|
+
:type conversation_id: str
|
2130
2153
|
:param q_answer_api_key:
|
2131
2154
|
:type q_answer_api_key: str
|
2132
2155
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2151,8 +2174,10 @@ class TaskReportCopilotApi:
|
|
2151
2174
|
:return: Returns the result object.
|
2152
2175
|
""" # noqa: E501
|
2153
2176
|
|
2154
|
-
_param = self.
|
2155
|
-
|
2177
|
+
_param = self._list_report_templates_serialize(
|
2178
|
+
username=username,
|
2179
|
+
dataset=dataset,
|
2180
|
+
conversation_id=conversation_id,
|
2156
2181
|
q_answer_api_key=q_answer_api_key,
|
2157
2182
|
_request_auth=_request_auth,
|
2158
2183
|
_content_type=_content_type,
|
@@ -2161,7 +2186,7 @@ class TaskReportCopilotApi:
|
|
2161
2186
|
)
|
2162
2187
|
|
2163
2188
|
_response_types_map: Dict[str, Optional[str]] = {
|
2164
|
-
'200': "
|
2189
|
+
'200': "List[ReportTemplateSimplified]",
|
2165
2190
|
}
|
2166
2191
|
response_data = self.api_client.call_api(
|
2167
2192
|
*_param,
|
@@ -2175,9 +2200,11 @@ class TaskReportCopilotApi:
|
|
2175
2200
|
|
2176
2201
|
|
2177
2202
|
@validate_call
|
2178
|
-
def
|
2203
|
+
def list_report_templates_with_http_info(
|
2179
2204
|
self,
|
2180
|
-
|
2205
|
+
username: StrictStr,
|
2206
|
+
dataset: StrictStr,
|
2207
|
+
conversation_id: Optional[StrictStr] = None,
|
2181
2208
|
q_answer_api_key: Optional[StrictStr] = None,
|
2182
2209
|
_request_timeout: Union[
|
2183
2210
|
None,
|
@@ -2191,12 +2218,16 @@ class TaskReportCopilotApi:
|
|
2191
2218
|
_content_type: Optional[StrictStr] = None,
|
2192
2219
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2193
2220
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2194
|
-
) -> ApiResponse[
|
2195
|
-
"""
|
2221
|
+
) -> ApiResponse[List[ReportTemplateSimplified]]:
|
2222
|
+
"""List all report templates
|
2196
2223
|
|
2197
2224
|
|
2198
|
-
:param
|
2199
|
-
:type
|
2225
|
+
:param username: (required)
|
2226
|
+
:type username: str
|
2227
|
+
:param dataset: (required)
|
2228
|
+
:type dataset: str
|
2229
|
+
:param conversation_id:
|
2230
|
+
:type conversation_id: str
|
2200
2231
|
:param q_answer_api_key:
|
2201
2232
|
:type q_answer_api_key: str
|
2202
2233
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2221,8 +2252,10 @@ class TaskReportCopilotApi:
|
|
2221
2252
|
:return: Returns the result object.
|
2222
2253
|
""" # noqa: E501
|
2223
2254
|
|
2224
|
-
_param = self.
|
2225
|
-
|
2255
|
+
_param = self._list_report_templates_serialize(
|
2256
|
+
username=username,
|
2257
|
+
dataset=dataset,
|
2258
|
+
conversation_id=conversation_id,
|
2226
2259
|
q_answer_api_key=q_answer_api_key,
|
2227
2260
|
_request_auth=_request_auth,
|
2228
2261
|
_content_type=_content_type,
|
@@ -2231,7 +2264,7 @@ class TaskReportCopilotApi:
|
|
2231
2264
|
)
|
2232
2265
|
|
2233
2266
|
_response_types_map: Dict[str, Optional[str]] = {
|
2234
|
-
'200': "
|
2267
|
+
'200': "List[ReportTemplateSimplified]",
|
2235
2268
|
}
|
2236
2269
|
response_data = self.api_client.call_api(
|
2237
2270
|
*_param,
|
@@ -2245,9 +2278,11 @@ class TaskReportCopilotApi:
|
|
2245
2278
|
|
2246
2279
|
|
2247
2280
|
@validate_call
|
2248
|
-
def
|
2281
|
+
def list_report_templates_without_preload_content(
|
2249
2282
|
self,
|
2250
|
-
|
2283
|
+
username: StrictStr,
|
2284
|
+
dataset: StrictStr,
|
2285
|
+
conversation_id: Optional[StrictStr] = None,
|
2251
2286
|
q_answer_api_key: Optional[StrictStr] = None,
|
2252
2287
|
_request_timeout: Union[
|
2253
2288
|
None,
|
@@ -2262,11 +2297,15 @@ class TaskReportCopilotApi:
|
|
2262
2297
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2263
2298
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2264
2299
|
) -> RESTResponseType:
|
2265
|
-
"""
|
2300
|
+
"""List all report templates
|
2266
2301
|
|
2267
2302
|
|
2268
|
-
:param
|
2269
|
-
:type
|
2303
|
+
:param username: (required)
|
2304
|
+
:type username: str
|
2305
|
+
:param dataset: (required)
|
2306
|
+
:type dataset: str
|
2307
|
+
:param conversation_id:
|
2308
|
+
:type conversation_id: str
|
2270
2309
|
:param q_answer_api_key:
|
2271
2310
|
:type q_answer_api_key: str
|
2272
2311
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2291,8 +2330,10 @@ class TaskReportCopilotApi:
|
|
2291
2330
|
:return: Returns the result object.
|
2292
2331
|
""" # noqa: E501
|
2293
2332
|
|
2294
|
-
_param = self.
|
2295
|
-
|
2333
|
+
_param = self._list_report_templates_serialize(
|
2334
|
+
username=username,
|
2335
|
+
dataset=dataset,
|
2336
|
+
conversation_id=conversation_id,
|
2296
2337
|
q_answer_api_key=q_answer_api_key,
|
2297
2338
|
_request_auth=_request_auth,
|
2298
2339
|
_content_type=_content_type,
|
@@ -2301,7 +2342,7 @@ class TaskReportCopilotApi:
|
|
2301
2342
|
)
|
2302
2343
|
|
2303
2344
|
_response_types_map: Dict[str, Optional[str]] = {
|
2304
|
-
'200': "
|
2345
|
+
'200': "List[ReportTemplateSimplified]",
|
2305
2346
|
}
|
2306
2347
|
response_data = self.api_client.call_api(
|
2307
2348
|
*_param,
|
@@ -2310,7 +2351,293 @@ class TaskReportCopilotApi:
|
|
2310
2351
|
return response_data.response
|
2311
2352
|
|
2312
2353
|
|
2313
|
-
def
|
2354
|
+
def _list_report_templates_serialize(
|
2355
|
+
self,
|
2356
|
+
username,
|
2357
|
+
dataset,
|
2358
|
+
conversation_id,
|
2359
|
+
q_answer_api_key,
|
2360
|
+
_request_auth,
|
2361
|
+
_content_type,
|
2362
|
+
_headers,
|
2363
|
+
_host_index,
|
2364
|
+
) -> RequestSerialized:
|
2365
|
+
|
2366
|
+
_host = None
|
2367
|
+
|
2368
|
+
_collection_formats: Dict[str, str] = {
|
2369
|
+
}
|
2370
|
+
|
2371
|
+
_path_params: Dict[str, str] = {}
|
2372
|
+
_query_params: List[Tuple[str, str]] = []
|
2373
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2374
|
+
_form_params: List[Tuple[str, str]] = []
|
2375
|
+
_files: Dict[
|
2376
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
2377
|
+
] = {}
|
2378
|
+
_body_params: Optional[bytes] = None
|
2379
|
+
|
2380
|
+
# process the path parameters
|
2381
|
+
# process the query parameters
|
2382
|
+
if username is not None:
|
2383
|
+
|
2384
|
+
_query_params.append(('username', username))
|
2385
|
+
|
2386
|
+
if dataset is not None:
|
2387
|
+
|
2388
|
+
_query_params.append(('dataset', dataset))
|
2389
|
+
|
2390
|
+
if conversation_id is not None:
|
2391
|
+
|
2392
|
+
_query_params.append(('conversationId', conversation_id))
|
2393
|
+
|
2394
|
+
# process the header parameters
|
2395
|
+
if q_answer_api_key is not None:
|
2396
|
+
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
2397
|
+
# process the form parameters
|
2398
|
+
# process the body parameter
|
2399
|
+
|
2400
|
+
|
2401
|
+
# set the HTTP header `Accept`
|
2402
|
+
if 'Accept' not in _header_params:
|
2403
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2404
|
+
[
|
2405
|
+
'*/*'
|
2406
|
+
]
|
2407
|
+
)
|
2408
|
+
|
2409
|
+
|
2410
|
+
# authentication setting
|
2411
|
+
_auth_settings: List[str] = [
|
2412
|
+
'QAnswer-Api-Key',
|
2413
|
+
'Bearer'
|
2414
|
+
]
|
2415
|
+
|
2416
|
+
return self.api_client.param_serialize(
|
2417
|
+
method='GET',
|
2418
|
+
resource_path='/api/tasks/report-copilot/templates',
|
2419
|
+
path_params=_path_params,
|
2420
|
+
query_params=_query_params,
|
2421
|
+
header_params=_header_params,
|
2422
|
+
body=_body_params,
|
2423
|
+
post_params=_form_params,
|
2424
|
+
files=_files,
|
2425
|
+
auth_settings=_auth_settings,
|
2426
|
+
collection_formats=_collection_formats,
|
2427
|
+
_host=_host,
|
2428
|
+
_request_auth=_request_auth
|
2429
|
+
)
|
2430
|
+
|
2431
|
+
|
2432
|
+
|
2433
|
+
|
2434
|
+
@validate_call
|
2435
|
+
def report_generation_from_slots(
|
2436
|
+
self,
|
2437
|
+
report_copilot_generation_from_slots_payload: ReportCopilotGenerationFromSlotsPayload,
|
2438
|
+
q_answer_api_key: Optional[StrictStr] = None,
|
2439
|
+
_request_timeout: Union[
|
2440
|
+
None,
|
2441
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2442
|
+
Tuple[
|
2443
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2444
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2445
|
+
]
|
2446
|
+
] = None,
|
2447
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2448
|
+
_content_type: Optional[StrictStr] = None,
|
2449
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2450
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2451
|
+
) -> ReportCopilotGenerationFromSlotsResponse:
|
2452
|
+
"""report_generation_from_slots
|
2453
|
+
|
2454
|
+
|
2455
|
+
:param report_copilot_generation_from_slots_payload: (required)
|
2456
|
+
:type report_copilot_generation_from_slots_payload: ReportCopilotGenerationFromSlotsPayload
|
2457
|
+
:param q_answer_api_key:
|
2458
|
+
:type q_answer_api_key: str
|
2459
|
+
:param _request_timeout: timeout setting for this request. If one
|
2460
|
+
number provided, it will be total request
|
2461
|
+
timeout. It can also be a pair (tuple) of
|
2462
|
+
(connection, read) timeouts.
|
2463
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2464
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2465
|
+
request; this effectively ignores the
|
2466
|
+
authentication in the spec for a single request.
|
2467
|
+
:type _request_auth: dict, optional
|
2468
|
+
:param _content_type: force content-type for the request.
|
2469
|
+
:type _content_type: str, Optional
|
2470
|
+
:param _headers: set to override the headers for a single
|
2471
|
+
request; this effectively ignores the headers
|
2472
|
+
in the spec for a single request.
|
2473
|
+
:type _headers: dict, optional
|
2474
|
+
:param _host_index: set to override the host_index for a single
|
2475
|
+
request; this effectively ignores the host_index
|
2476
|
+
in the spec for a single request.
|
2477
|
+
:type _host_index: int, optional
|
2478
|
+
:return: Returns the result object.
|
2479
|
+
""" # noqa: E501
|
2480
|
+
|
2481
|
+
_param = self._report_generation_from_slots_serialize(
|
2482
|
+
report_copilot_generation_from_slots_payload=report_copilot_generation_from_slots_payload,
|
2483
|
+
q_answer_api_key=q_answer_api_key,
|
2484
|
+
_request_auth=_request_auth,
|
2485
|
+
_content_type=_content_type,
|
2486
|
+
_headers=_headers,
|
2487
|
+
_host_index=_host_index
|
2488
|
+
)
|
2489
|
+
|
2490
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2491
|
+
'200': "ReportCopilotGenerationFromSlotsResponse",
|
2492
|
+
}
|
2493
|
+
response_data = self.api_client.call_api(
|
2494
|
+
*_param,
|
2495
|
+
_request_timeout=_request_timeout
|
2496
|
+
)
|
2497
|
+
response_data.read()
|
2498
|
+
return self.api_client.response_deserialize(
|
2499
|
+
response_data=response_data,
|
2500
|
+
response_types_map=_response_types_map,
|
2501
|
+
).data
|
2502
|
+
|
2503
|
+
|
2504
|
+
@validate_call
|
2505
|
+
def report_generation_from_slots_with_http_info(
|
2506
|
+
self,
|
2507
|
+
report_copilot_generation_from_slots_payload: ReportCopilotGenerationFromSlotsPayload,
|
2508
|
+
q_answer_api_key: Optional[StrictStr] = None,
|
2509
|
+
_request_timeout: Union[
|
2510
|
+
None,
|
2511
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2512
|
+
Tuple[
|
2513
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2514
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2515
|
+
]
|
2516
|
+
] = None,
|
2517
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2518
|
+
_content_type: Optional[StrictStr] = None,
|
2519
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2520
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2521
|
+
) -> ApiResponse[ReportCopilotGenerationFromSlotsResponse]:
|
2522
|
+
"""report_generation_from_slots
|
2523
|
+
|
2524
|
+
|
2525
|
+
:param report_copilot_generation_from_slots_payload: (required)
|
2526
|
+
:type report_copilot_generation_from_slots_payload: ReportCopilotGenerationFromSlotsPayload
|
2527
|
+
:param q_answer_api_key:
|
2528
|
+
:type q_answer_api_key: str
|
2529
|
+
:param _request_timeout: timeout setting for this request. If one
|
2530
|
+
number provided, it will be total request
|
2531
|
+
timeout. It can also be a pair (tuple) of
|
2532
|
+
(connection, read) timeouts.
|
2533
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2534
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2535
|
+
request; this effectively ignores the
|
2536
|
+
authentication in the spec for a single request.
|
2537
|
+
:type _request_auth: dict, optional
|
2538
|
+
:param _content_type: force content-type for the request.
|
2539
|
+
:type _content_type: str, Optional
|
2540
|
+
:param _headers: set to override the headers for a single
|
2541
|
+
request; this effectively ignores the headers
|
2542
|
+
in the spec for a single request.
|
2543
|
+
:type _headers: dict, optional
|
2544
|
+
:param _host_index: set to override the host_index for a single
|
2545
|
+
request; this effectively ignores the host_index
|
2546
|
+
in the spec for a single request.
|
2547
|
+
:type _host_index: int, optional
|
2548
|
+
:return: Returns the result object.
|
2549
|
+
""" # noqa: E501
|
2550
|
+
|
2551
|
+
_param = self._report_generation_from_slots_serialize(
|
2552
|
+
report_copilot_generation_from_slots_payload=report_copilot_generation_from_slots_payload,
|
2553
|
+
q_answer_api_key=q_answer_api_key,
|
2554
|
+
_request_auth=_request_auth,
|
2555
|
+
_content_type=_content_type,
|
2556
|
+
_headers=_headers,
|
2557
|
+
_host_index=_host_index
|
2558
|
+
)
|
2559
|
+
|
2560
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2561
|
+
'200': "ReportCopilotGenerationFromSlotsResponse",
|
2562
|
+
}
|
2563
|
+
response_data = self.api_client.call_api(
|
2564
|
+
*_param,
|
2565
|
+
_request_timeout=_request_timeout
|
2566
|
+
)
|
2567
|
+
response_data.read()
|
2568
|
+
return self.api_client.response_deserialize(
|
2569
|
+
response_data=response_data,
|
2570
|
+
response_types_map=_response_types_map,
|
2571
|
+
)
|
2572
|
+
|
2573
|
+
|
2574
|
+
@validate_call
|
2575
|
+
def report_generation_from_slots_without_preload_content(
|
2576
|
+
self,
|
2577
|
+
report_copilot_generation_from_slots_payload: ReportCopilotGenerationFromSlotsPayload,
|
2578
|
+
q_answer_api_key: Optional[StrictStr] = None,
|
2579
|
+
_request_timeout: Union[
|
2580
|
+
None,
|
2581
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2582
|
+
Tuple[
|
2583
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2584
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2585
|
+
]
|
2586
|
+
] = None,
|
2587
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2588
|
+
_content_type: Optional[StrictStr] = None,
|
2589
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2590
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2591
|
+
) -> RESTResponseType:
|
2592
|
+
"""report_generation_from_slots
|
2593
|
+
|
2594
|
+
|
2595
|
+
:param report_copilot_generation_from_slots_payload: (required)
|
2596
|
+
:type report_copilot_generation_from_slots_payload: ReportCopilotGenerationFromSlotsPayload
|
2597
|
+
:param q_answer_api_key:
|
2598
|
+
:type q_answer_api_key: str
|
2599
|
+
:param _request_timeout: timeout setting for this request. If one
|
2600
|
+
number provided, it will be total request
|
2601
|
+
timeout. It can also be a pair (tuple) of
|
2602
|
+
(connection, read) timeouts.
|
2603
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2604
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2605
|
+
request; this effectively ignores the
|
2606
|
+
authentication in the spec for a single request.
|
2607
|
+
:type _request_auth: dict, optional
|
2608
|
+
:param _content_type: force content-type for the request.
|
2609
|
+
:type _content_type: str, Optional
|
2610
|
+
:param _headers: set to override the headers for a single
|
2611
|
+
request; this effectively ignores the headers
|
2612
|
+
in the spec for a single request.
|
2613
|
+
:type _headers: dict, optional
|
2614
|
+
:param _host_index: set to override the host_index for a single
|
2615
|
+
request; this effectively ignores the host_index
|
2616
|
+
in the spec for a single request.
|
2617
|
+
:type _host_index: int, optional
|
2618
|
+
:return: Returns the result object.
|
2619
|
+
""" # noqa: E501
|
2620
|
+
|
2621
|
+
_param = self._report_generation_from_slots_serialize(
|
2622
|
+
report_copilot_generation_from_slots_payload=report_copilot_generation_from_slots_payload,
|
2623
|
+
q_answer_api_key=q_answer_api_key,
|
2624
|
+
_request_auth=_request_auth,
|
2625
|
+
_content_type=_content_type,
|
2626
|
+
_headers=_headers,
|
2627
|
+
_host_index=_host_index
|
2628
|
+
)
|
2629
|
+
|
2630
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2631
|
+
'200': "ReportCopilotGenerationFromSlotsResponse",
|
2632
|
+
}
|
2633
|
+
response_data = self.api_client.call_api(
|
2634
|
+
*_param,
|
2635
|
+
_request_timeout=_request_timeout
|
2636
|
+
)
|
2637
|
+
return response_data.response
|
2638
|
+
|
2639
|
+
|
2640
|
+
def _report_generation_from_slots_serialize(
|
2314
2641
|
self,
|
2315
2642
|
report_copilot_generation_from_slots_payload,
|
2316
2643
|
q_answer_api_key,
|
@@ -2341,8 +2668,295 @@ class TaskReportCopilotApi:
|
|
2341
2668
|
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
2342
2669
|
# process the form parameters
|
2343
2670
|
# process the body parameter
|
2344
|
-
if report_copilot_generation_from_slots_payload is not None:
|
2345
|
-
_body_params = report_copilot_generation_from_slots_payload
|
2671
|
+
if report_copilot_generation_from_slots_payload is not None:
|
2672
|
+
_body_params = report_copilot_generation_from_slots_payload
|
2673
|
+
|
2674
|
+
|
2675
|
+
# set the HTTP header `Accept`
|
2676
|
+
if 'Accept' not in _header_params:
|
2677
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2678
|
+
[
|
2679
|
+
'*/*'
|
2680
|
+
]
|
2681
|
+
)
|
2682
|
+
|
2683
|
+
# set the HTTP header `Content-Type`
|
2684
|
+
if _content_type:
|
2685
|
+
_header_params['Content-Type'] = _content_type
|
2686
|
+
else:
|
2687
|
+
_default_content_type = (
|
2688
|
+
self.api_client.select_header_content_type(
|
2689
|
+
[
|
2690
|
+
'application/json'
|
2691
|
+
]
|
2692
|
+
)
|
2693
|
+
)
|
2694
|
+
if _default_content_type is not None:
|
2695
|
+
_header_params['Content-Type'] = _default_content_type
|
2696
|
+
|
2697
|
+
# authentication setting
|
2698
|
+
_auth_settings: List[str] = [
|
2699
|
+
'QAnswer-Api-Key',
|
2700
|
+
'Bearer'
|
2701
|
+
]
|
2702
|
+
|
2703
|
+
return self.api_client.param_serialize(
|
2704
|
+
method='POST',
|
2705
|
+
resource_path='/api/tasks/report-copilot/report-generation/from-slots',
|
2706
|
+
path_params=_path_params,
|
2707
|
+
query_params=_query_params,
|
2708
|
+
header_params=_header_params,
|
2709
|
+
body=_body_params,
|
2710
|
+
post_params=_form_params,
|
2711
|
+
files=_files,
|
2712
|
+
auth_settings=_auth_settings,
|
2713
|
+
collection_formats=_collection_formats,
|
2714
|
+
_host=_host,
|
2715
|
+
_request_auth=_request_auth
|
2716
|
+
)
|
2717
|
+
|
2718
|
+
|
2719
|
+
|
2720
|
+
|
2721
|
+
@validate_call
|
2722
|
+
def report_refinement(
|
2723
|
+
self,
|
2724
|
+
report_copilot_refinement_payload: ReportCopilotRefinementPayload,
|
2725
|
+
q_answer_api_key: Optional[StrictStr] = None,
|
2726
|
+
_request_timeout: Union[
|
2727
|
+
None,
|
2728
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2729
|
+
Tuple[
|
2730
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2731
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2732
|
+
]
|
2733
|
+
] = None,
|
2734
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2735
|
+
_content_type: Optional[StrictStr] = None,
|
2736
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2737
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2738
|
+
) -> ReportCopilotRefinementResponse:
|
2739
|
+
"""report_refinement
|
2740
|
+
|
2741
|
+
|
2742
|
+
:param report_copilot_refinement_payload: (required)
|
2743
|
+
:type report_copilot_refinement_payload: ReportCopilotRefinementPayload
|
2744
|
+
:param q_answer_api_key:
|
2745
|
+
:type q_answer_api_key: str
|
2746
|
+
:param _request_timeout: timeout setting for this request. If one
|
2747
|
+
number provided, it will be total request
|
2748
|
+
timeout. It can also be a pair (tuple) of
|
2749
|
+
(connection, read) timeouts.
|
2750
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2751
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2752
|
+
request; this effectively ignores the
|
2753
|
+
authentication in the spec for a single request.
|
2754
|
+
:type _request_auth: dict, optional
|
2755
|
+
:param _content_type: force content-type for the request.
|
2756
|
+
:type _content_type: str, Optional
|
2757
|
+
:param _headers: set to override the headers for a single
|
2758
|
+
request; this effectively ignores the headers
|
2759
|
+
in the spec for a single request.
|
2760
|
+
:type _headers: dict, optional
|
2761
|
+
:param _host_index: set to override the host_index for a single
|
2762
|
+
request; this effectively ignores the host_index
|
2763
|
+
in the spec for a single request.
|
2764
|
+
:type _host_index: int, optional
|
2765
|
+
:return: Returns the result object.
|
2766
|
+
""" # noqa: E501
|
2767
|
+
|
2768
|
+
_param = self._report_refinement_serialize(
|
2769
|
+
report_copilot_refinement_payload=report_copilot_refinement_payload,
|
2770
|
+
q_answer_api_key=q_answer_api_key,
|
2771
|
+
_request_auth=_request_auth,
|
2772
|
+
_content_type=_content_type,
|
2773
|
+
_headers=_headers,
|
2774
|
+
_host_index=_host_index
|
2775
|
+
)
|
2776
|
+
|
2777
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2778
|
+
'200': "ReportCopilotRefinementResponse",
|
2779
|
+
}
|
2780
|
+
response_data = self.api_client.call_api(
|
2781
|
+
*_param,
|
2782
|
+
_request_timeout=_request_timeout
|
2783
|
+
)
|
2784
|
+
response_data.read()
|
2785
|
+
return self.api_client.response_deserialize(
|
2786
|
+
response_data=response_data,
|
2787
|
+
response_types_map=_response_types_map,
|
2788
|
+
).data
|
2789
|
+
|
2790
|
+
|
2791
|
+
@validate_call
|
2792
|
+
def report_refinement_with_http_info(
|
2793
|
+
self,
|
2794
|
+
report_copilot_refinement_payload: ReportCopilotRefinementPayload,
|
2795
|
+
q_answer_api_key: Optional[StrictStr] = None,
|
2796
|
+
_request_timeout: Union[
|
2797
|
+
None,
|
2798
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2799
|
+
Tuple[
|
2800
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2801
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2802
|
+
]
|
2803
|
+
] = None,
|
2804
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2805
|
+
_content_type: Optional[StrictStr] = None,
|
2806
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2807
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2808
|
+
) -> ApiResponse[ReportCopilotRefinementResponse]:
|
2809
|
+
"""report_refinement
|
2810
|
+
|
2811
|
+
|
2812
|
+
:param report_copilot_refinement_payload: (required)
|
2813
|
+
:type report_copilot_refinement_payload: ReportCopilotRefinementPayload
|
2814
|
+
:param q_answer_api_key:
|
2815
|
+
:type q_answer_api_key: str
|
2816
|
+
:param _request_timeout: timeout setting for this request. If one
|
2817
|
+
number provided, it will be total request
|
2818
|
+
timeout. It can also be a pair (tuple) of
|
2819
|
+
(connection, read) timeouts.
|
2820
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2821
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2822
|
+
request; this effectively ignores the
|
2823
|
+
authentication in the spec for a single request.
|
2824
|
+
:type _request_auth: dict, optional
|
2825
|
+
:param _content_type: force content-type for the request.
|
2826
|
+
:type _content_type: str, Optional
|
2827
|
+
:param _headers: set to override the headers for a single
|
2828
|
+
request; this effectively ignores the headers
|
2829
|
+
in the spec for a single request.
|
2830
|
+
:type _headers: dict, optional
|
2831
|
+
:param _host_index: set to override the host_index for a single
|
2832
|
+
request; this effectively ignores the host_index
|
2833
|
+
in the spec for a single request.
|
2834
|
+
:type _host_index: int, optional
|
2835
|
+
:return: Returns the result object.
|
2836
|
+
""" # noqa: E501
|
2837
|
+
|
2838
|
+
_param = self._report_refinement_serialize(
|
2839
|
+
report_copilot_refinement_payload=report_copilot_refinement_payload,
|
2840
|
+
q_answer_api_key=q_answer_api_key,
|
2841
|
+
_request_auth=_request_auth,
|
2842
|
+
_content_type=_content_type,
|
2843
|
+
_headers=_headers,
|
2844
|
+
_host_index=_host_index
|
2845
|
+
)
|
2846
|
+
|
2847
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2848
|
+
'200': "ReportCopilotRefinementResponse",
|
2849
|
+
}
|
2850
|
+
response_data = self.api_client.call_api(
|
2851
|
+
*_param,
|
2852
|
+
_request_timeout=_request_timeout
|
2853
|
+
)
|
2854
|
+
response_data.read()
|
2855
|
+
return self.api_client.response_deserialize(
|
2856
|
+
response_data=response_data,
|
2857
|
+
response_types_map=_response_types_map,
|
2858
|
+
)
|
2859
|
+
|
2860
|
+
|
2861
|
+
@validate_call
|
2862
|
+
def report_refinement_without_preload_content(
|
2863
|
+
self,
|
2864
|
+
report_copilot_refinement_payload: ReportCopilotRefinementPayload,
|
2865
|
+
q_answer_api_key: Optional[StrictStr] = None,
|
2866
|
+
_request_timeout: Union[
|
2867
|
+
None,
|
2868
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2869
|
+
Tuple[
|
2870
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2871
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2872
|
+
]
|
2873
|
+
] = None,
|
2874
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2875
|
+
_content_type: Optional[StrictStr] = None,
|
2876
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2877
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2878
|
+
) -> RESTResponseType:
|
2879
|
+
"""report_refinement
|
2880
|
+
|
2881
|
+
|
2882
|
+
:param report_copilot_refinement_payload: (required)
|
2883
|
+
:type report_copilot_refinement_payload: ReportCopilotRefinementPayload
|
2884
|
+
:param q_answer_api_key:
|
2885
|
+
:type q_answer_api_key: str
|
2886
|
+
:param _request_timeout: timeout setting for this request. If one
|
2887
|
+
number provided, it will be total request
|
2888
|
+
timeout. It can also be a pair (tuple) of
|
2889
|
+
(connection, read) timeouts.
|
2890
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2891
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2892
|
+
request; this effectively ignores the
|
2893
|
+
authentication in the spec for a single request.
|
2894
|
+
:type _request_auth: dict, optional
|
2895
|
+
:param _content_type: force content-type for the request.
|
2896
|
+
:type _content_type: str, Optional
|
2897
|
+
:param _headers: set to override the headers for a single
|
2898
|
+
request; this effectively ignores the headers
|
2899
|
+
in the spec for a single request.
|
2900
|
+
:type _headers: dict, optional
|
2901
|
+
:param _host_index: set to override the host_index for a single
|
2902
|
+
request; this effectively ignores the host_index
|
2903
|
+
in the spec for a single request.
|
2904
|
+
:type _host_index: int, optional
|
2905
|
+
:return: Returns the result object.
|
2906
|
+
""" # noqa: E501
|
2907
|
+
|
2908
|
+
_param = self._report_refinement_serialize(
|
2909
|
+
report_copilot_refinement_payload=report_copilot_refinement_payload,
|
2910
|
+
q_answer_api_key=q_answer_api_key,
|
2911
|
+
_request_auth=_request_auth,
|
2912
|
+
_content_type=_content_type,
|
2913
|
+
_headers=_headers,
|
2914
|
+
_host_index=_host_index
|
2915
|
+
)
|
2916
|
+
|
2917
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2918
|
+
'200': "ReportCopilotRefinementResponse",
|
2919
|
+
}
|
2920
|
+
response_data = self.api_client.call_api(
|
2921
|
+
*_param,
|
2922
|
+
_request_timeout=_request_timeout
|
2923
|
+
)
|
2924
|
+
return response_data.response
|
2925
|
+
|
2926
|
+
|
2927
|
+
def _report_refinement_serialize(
|
2928
|
+
self,
|
2929
|
+
report_copilot_refinement_payload,
|
2930
|
+
q_answer_api_key,
|
2931
|
+
_request_auth,
|
2932
|
+
_content_type,
|
2933
|
+
_headers,
|
2934
|
+
_host_index,
|
2935
|
+
) -> RequestSerialized:
|
2936
|
+
|
2937
|
+
_host = None
|
2938
|
+
|
2939
|
+
_collection_formats: Dict[str, str] = {
|
2940
|
+
}
|
2941
|
+
|
2942
|
+
_path_params: Dict[str, str] = {}
|
2943
|
+
_query_params: List[Tuple[str, str]] = []
|
2944
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2945
|
+
_form_params: List[Tuple[str, str]] = []
|
2946
|
+
_files: Dict[
|
2947
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
2948
|
+
] = {}
|
2949
|
+
_body_params: Optional[bytes] = None
|
2950
|
+
|
2951
|
+
# process the path parameters
|
2952
|
+
# process the query parameters
|
2953
|
+
# process the header parameters
|
2954
|
+
if q_answer_api_key is not None:
|
2955
|
+
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
2956
|
+
# process the form parameters
|
2957
|
+
# process the body parameter
|
2958
|
+
if report_copilot_refinement_payload is not None:
|
2959
|
+
_body_params = report_copilot_refinement_payload
|
2346
2960
|
|
2347
2961
|
|
2348
2962
|
# set the HTTP header `Accept`
|
@@ -2375,7 +2989,7 @@ class TaskReportCopilotApi:
|
|
2375
2989
|
|
2376
2990
|
return self.api_client.param_serialize(
|
2377
2991
|
method='POST',
|
2378
|
-
resource_path='/api/tasks/report-copilot/report-
|
2992
|
+
resource_path='/api/tasks/report-copilot/report-refinement',
|
2379
2993
|
path_params=_path_params,
|
2380
2994
|
query_params=_query_params,
|
2381
2995
|
header_params=_header_params,
|
@@ -2392,9 +3006,10 @@ class TaskReportCopilotApi:
|
|
2392
3006
|
|
2393
3007
|
|
2394
3008
|
@validate_call
|
2395
|
-
def
|
3009
|
+
def update_report_template(
|
2396
3010
|
self,
|
2397
|
-
|
3011
|
+
template_id: StrictInt,
|
3012
|
+
report_template_update_payload: ReportTemplateUpdatePayload,
|
2398
3013
|
q_answer_api_key: Optional[StrictStr] = None,
|
2399
3014
|
_request_timeout: Union[
|
2400
3015
|
None,
|
@@ -2408,12 +3023,14 @@ class TaskReportCopilotApi:
|
|
2408
3023
|
_content_type: Optional[StrictStr] = None,
|
2409
3024
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2410
3025
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2411
|
-
) ->
|
2412
|
-
"""
|
3026
|
+
) -> ReportTemplate:
|
3027
|
+
"""Update a report template
|
2413
3028
|
|
2414
3029
|
|
2415
|
-
:param
|
2416
|
-
:type
|
3030
|
+
:param template_id: (required)
|
3031
|
+
:type template_id: int
|
3032
|
+
:param report_template_update_payload: (required)
|
3033
|
+
:type report_template_update_payload: ReportTemplateUpdatePayload
|
2417
3034
|
:param q_answer_api_key:
|
2418
3035
|
:type q_answer_api_key: str
|
2419
3036
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2438,8 +3055,9 @@ class TaskReportCopilotApi:
|
|
2438
3055
|
:return: Returns the result object.
|
2439
3056
|
""" # noqa: E501
|
2440
3057
|
|
2441
|
-
_param = self.
|
2442
|
-
|
3058
|
+
_param = self._update_report_template_serialize(
|
3059
|
+
template_id=template_id,
|
3060
|
+
report_template_update_payload=report_template_update_payload,
|
2443
3061
|
q_answer_api_key=q_answer_api_key,
|
2444
3062
|
_request_auth=_request_auth,
|
2445
3063
|
_content_type=_content_type,
|
@@ -2448,7 +3066,7 @@ class TaskReportCopilotApi:
|
|
2448
3066
|
)
|
2449
3067
|
|
2450
3068
|
_response_types_map: Dict[str, Optional[str]] = {
|
2451
|
-
'200': "
|
3069
|
+
'200': "ReportTemplate",
|
2452
3070
|
}
|
2453
3071
|
response_data = self.api_client.call_api(
|
2454
3072
|
*_param,
|
@@ -2462,9 +3080,10 @@ class TaskReportCopilotApi:
|
|
2462
3080
|
|
2463
3081
|
|
2464
3082
|
@validate_call
|
2465
|
-
def
|
3083
|
+
def update_report_template_with_http_info(
|
2466
3084
|
self,
|
2467
|
-
|
3085
|
+
template_id: StrictInt,
|
3086
|
+
report_template_update_payload: ReportTemplateUpdatePayload,
|
2468
3087
|
q_answer_api_key: Optional[StrictStr] = None,
|
2469
3088
|
_request_timeout: Union[
|
2470
3089
|
None,
|
@@ -2478,12 +3097,14 @@ class TaskReportCopilotApi:
|
|
2478
3097
|
_content_type: Optional[StrictStr] = None,
|
2479
3098
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2480
3099
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2481
|
-
) -> ApiResponse[
|
2482
|
-
"""
|
3100
|
+
) -> ApiResponse[ReportTemplate]:
|
3101
|
+
"""Update a report template
|
2483
3102
|
|
2484
3103
|
|
2485
|
-
:param
|
2486
|
-
:type
|
3104
|
+
:param template_id: (required)
|
3105
|
+
:type template_id: int
|
3106
|
+
:param report_template_update_payload: (required)
|
3107
|
+
:type report_template_update_payload: ReportTemplateUpdatePayload
|
2487
3108
|
:param q_answer_api_key:
|
2488
3109
|
:type q_answer_api_key: str
|
2489
3110
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2508,8 +3129,9 @@ class TaskReportCopilotApi:
|
|
2508
3129
|
:return: Returns the result object.
|
2509
3130
|
""" # noqa: E501
|
2510
3131
|
|
2511
|
-
_param = self.
|
2512
|
-
|
3132
|
+
_param = self._update_report_template_serialize(
|
3133
|
+
template_id=template_id,
|
3134
|
+
report_template_update_payload=report_template_update_payload,
|
2513
3135
|
q_answer_api_key=q_answer_api_key,
|
2514
3136
|
_request_auth=_request_auth,
|
2515
3137
|
_content_type=_content_type,
|
@@ -2518,7 +3140,7 @@ class TaskReportCopilotApi:
|
|
2518
3140
|
)
|
2519
3141
|
|
2520
3142
|
_response_types_map: Dict[str, Optional[str]] = {
|
2521
|
-
'200': "
|
3143
|
+
'200': "ReportTemplate",
|
2522
3144
|
}
|
2523
3145
|
response_data = self.api_client.call_api(
|
2524
3146
|
*_param,
|
@@ -2532,9 +3154,10 @@ class TaskReportCopilotApi:
|
|
2532
3154
|
|
2533
3155
|
|
2534
3156
|
@validate_call
|
2535
|
-
def
|
3157
|
+
def update_report_template_without_preload_content(
|
2536
3158
|
self,
|
2537
|
-
|
3159
|
+
template_id: StrictInt,
|
3160
|
+
report_template_update_payload: ReportTemplateUpdatePayload,
|
2538
3161
|
q_answer_api_key: Optional[StrictStr] = None,
|
2539
3162
|
_request_timeout: Union[
|
2540
3163
|
None,
|
@@ -2549,11 +3172,13 @@ class TaskReportCopilotApi:
|
|
2549
3172
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2550
3173
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2551
3174
|
) -> RESTResponseType:
|
2552
|
-
"""
|
3175
|
+
"""Update a report template
|
2553
3176
|
|
2554
3177
|
|
2555
|
-
:param
|
2556
|
-
:type
|
3178
|
+
:param template_id: (required)
|
3179
|
+
:type template_id: int
|
3180
|
+
:param report_template_update_payload: (required)
|
3181
|
+
:type report_template_update_payload: ReportTemplateUpdatePayload
|
2557
3182
|
:param q_answer_api_key:
|
2558
3183
|
:type q_answer_api_key: str
|
2559
3184
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2578,8 +3203,9 @@ class TaskReportCopilotApi:
|
|
2578
3203
|
:return: Returns the result object.
|
2579
3204
|
""" # noqa: E501
|
2580
3205
|
|
2581
|
-
_param = self.
|
2582
|
-
|
3206
|
+
_param = self._update_report_template_serialize(
|
3207
|
+
template_id=template_id,
|
3208
|
+
report_template_update_payload=report_template_update_payload,
|
2583
3209
|
q_answer_api_key=q_answer_api_key,
|
2584
3210
|
_request_auth=_request_auth,
|
2585
3211
|
_content_type=_content_type,
|
@@ -2588,7 +3214,7 @@ class TaskReportCopilotApi:
|
|
2588
3214
|
)
|
2589
3215
|
|
2590
3216
|
_response_types_map: Dict[str, Optional[str]] = {
|
2591
|
-
'200': "
|
3217
|
+
'200': "ReportTemplate",
|
2592
3218
|
}
|
2593
3219
|
response_data = self.api_client.call_api(
|
2594
3220
|
*_param,
|
@@ -2597,9 +3223,10 @@ class TaskReportCopilotApi:
|
|
2597
3223
|
return response_data.response
|
2598
3224
|
|
2599
3225
|
|
2600
|
-
def
|
3226
|
+
def _update_report_template_serialize(
|
2601
3227
|
self,
|
2602
|
-
|
3228
|
+
template_id,
|
3229
|
+
report_template_update_payload,
|
2603
3230
|
q_answer_api_key,
|
2604
3231
|
_request_auth,
|
2605
3232
|
_content_type,
|
@@ -2622,14 +3249,16 @@ class TaskReportCopilotApi:
|
|
2622
3249
|
_body_params: Optional[bytes] = None
|
2623
3250
|
|
2624
3251
|
# process the path parameters
|
3252
|
+
if template_id is not None:
|
3253
|
+
_path_params['templateId'] = template_id
|
2625
3254
|
# process the query parameters
|
2626
3255
|
# process the header parameters
|
2627
3256
|
if q_answer_api_key is not None:
|
2628
3257
|
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
2629
3258
|
# process the form parameters
|
2630
3259
|
# process the body parameter
|
2631
|
-
if
|
2632
|
-
_body_params =
|
3260
|
+
if report_template_update_payload is not None:
|
3261
|
+
_body_params = report_template_update_payload
|
2633
3262
|
|
2634
3263
|
|
2635
3264
|
# set the HTTP header `Accept`
|
@@ -2661,8 +3290,8 @@ class TaskReportCopilotApi:
|
|
2661
3290
|
]
|
2662
3291
|
|
2663
3292
|
return self.api_client.param_serialize(
|
2664
|
-
method='
|
2665
|
-
resource_path='/api/tasks/report-copilot/
|
3293
|
+
method='PUT',
|
3294
|
+
resource_path='/api/tasks/report-copilot/templates/{templateId}',
|
2666
3295
|
path_params=_path_params,
|
2667
3296
|
query_params=_query_params,
|
2668
3297
|
header_params=_header_params,
|
@@ -2679,10 +3308,9 @@ class TaskReportCopilotApi:
|
|
2679
3308
|
|
2680
3309
|
|
2681
3310
|
@validate_call
|
2682
|
-
def
|
3311
|
+
def update_task_settings(
|
2683
3312
|
self,
|
2684
|
-
|
2685
|
-
report_copilot_update_payload: ReportCopilotUpdatePayload,
|
3313
|
+
report_copilot_task_settings_update_payload: ReportCopilotTaskSettingsUpdatePayload,
|
2686
3314
|
q_answer_api_key: Optional[StrictStr] = None,
|
2687
3315
|
_request_timeout: Union[
|
2688
3316
|
None,
|
@@ -2696,14 +3324,12 @@ class TaskReportCopilotApi:
|
|
2696
3324
|
_content_type: Optional[StrictStr] = None,
|
2697
3325
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2698
3326
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2699
|
-
) ->
|
2700
|
-
"""
|
3327
|
+
) -> ReportCopilotTaskSettings:
|
3328
|
+
"""This updates the settings of the report-copilot task
|
2701
3329
|
|
2702
3330
|
|
2703
|
-
:param
|
2704
|
-
:type
|
2705
|
-
:param report_copilot_update_payload: (required)
|
2706
|
-
:type report_copilot_update_payload: ReportCopilotUpdatePayload
|
3331
|
+
:param report_copilot_task_settings_update_payload: (required)
|
3332
|
+
:type report_copilot_task_settings_update_payload: ReportCopilotTaskSettingsUpdatePayload
|
2707
3333
|
:param q_answer_api_key:
|
2708
3334
|
:type q_answer_api_key: str
|
2709
3335
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2728,9 +3354,8 @@ class TaskReportCopilotApi:
|
|
2728
3354
|
:return: Returns the result object.
|
2729
3355
|
""" # noqa: E501
|
2730
3356
|
|
2731
|
-
_param = self.
|
2732
|
-
|
2733
|
-
report_copilot_update_payload=report_copilot_update_payload,
|
3357
|
+
_param = self._update_task_settings_serialize(
|
3358
|
+
report_copilot_task_settings_update_payload=report_copilot_task_settings_update_payload,
|
2734
3359
|
q_answer_api_key=q_answer_api_key,
|
2735
3360
|
_request_auth=_request_auth,
|
2736
3361
|
_content_type=_content_type,
|
@@ -2739,7 +3364,7 @@ class TaskReportCopilotApi:
|
|
2739
3364
|
)
|
2740
3365
|
|
2741
3366
|
_response_types_map: Dict[str, Optional[str]] = {
|
2742
|
-
'200': "
|
3367
|
+
'200': "ReportCopilotTaskSettings",
|
2743
3368
|
}
|
2744
3369
|
response_data = self.api_client.call_api(
|
2745
3370
|
*_param,
|
@@ -2753,10 +3378,9 @@ class TaskReportCopilotApi:
|
|
2753
3378
|
|
2754
3379
|
|
2755
3380
|
@validate_call
|
2756
|
-
def
|
3381
|
+
def update_task_settings_with_http_info(
|
2757
3382
|
self,
|
2758
|
-
|
2759
|
-
report_copilot_update_payload: ReportCopilotUpdatePayload,
|
3383
|
+
report_copilot_task_settings_update_payload: ReportCopilotTaskSettingsUpdatePayload,
|
2760
3384
|
q_answer_api_key: Optional[StrictStr] = None,
|
2761
3385
|
_request_timeout: Union[
|
2762
3386
|
None,
|
@@ -2770,14 +3394,12 @@ class TaskReportCopilotApi:
|
|
2770
3394
|
_content_type: Optional[StrictStr] = None,
|
2771
3395
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2772
3396
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2773
|
-
) -> ApiResponse[
|
2774
|
-
"""
|
3397
|
+
) -> ApiResponse[ReportCopilotTaskSettings]:
|
3398
|
+
"""This updates the settings of the report-copilot task
|
2775
3399
|
|
2776
3400
|
|
2777
|
-
:param
|
2778
|
-
:type
|
2779
|
-
:param report_copilot_update_payload: (required)
|
2780
|
-
:type report_copilot_update_payload: ReportCopilotUpdatePayload
|
3401
|
+
:param report_copilot_task_settings_update_payload: (required)
|
3402
|
+
:type report_copilot_task_settings_update_payload: ReportCopilotTaskSettingsUpdatePayload
|
2781
3403
|
:param q_answer_api_key:
|
2782
3404
|
:type q_answer_api_key: str
|
2783
3405
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2802,9 +3424,8 @@ class TaskReportCopilotApi:
|
|
2802
3424
|
:return: Returns the result object.
|
2803
3425
|
""" # noqa: E501
|
2804
3426
|
|
2805
|
-
_param = self.
|
2806
|
-
|
2807
|
-
report_copilot_update_payload=report_copilot_update_payload,
|
3427
|
+
_param = self._update_task_settings_serialize(
|
3428
|
+
report_copilot_task_settings_update_payload=report_copilot_task_settings_update_payload,
|
2808
3429
|
q_answer_api_key=q_answer_api_key,
|
2809
3430
|
_request_auth=_request_auth,
|
2810
3431
|
_content_type=_content_type,
|
@@ -2813,7 +3434,7 @@ class TaskReportCopilotApi:
|
|
2813
3434
|
)
|
2814
3435
|
|
2815
3436
|
_response_types_map: Dict[str, Optional[str]] = {
|
2816
|
-
'200': "
|
3437
|
+
'200': "ReportCopilotTaskSettings",
|
2817
3438
|
}
|
2818
3439
|
response_data = self.api_client.call_api(
|
2819
3440
|
*_param,
|
@@ -2827,10 +3448,9 @@ class TaskReportCopilotApi:
|
|
2827
3448
|
|
2828
3449
|
|
2829
3450
|
@validate_call
|
2830
|
-
def
|
3451
|
+
def update_task_settings_without_preload_content(
|
2831
3452
|
self,
|
2832
|
-
|
2833
|
-
report_copilot_update_payload: ReportCopilotUpdatePayload,
|
3453
|
+
report_copilot_task_settings_update_payload: ReportCopilotTaskSettingsUpdatePayload,
|
2834
3454
|
q_answer_api_key: Optional[StrictStr] = None,
|
2835
3455
|
_request_timeout: Union[
|
2836
3456
|
None,
|
@@ -2845,13 +3465,11 @@ class TaskReportCopilotApi:
|
|
2845
3465
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2846
3466
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2847
3467
|
) -> RESTResponseType:
|
2848
|
-
"""
|
3468
|
+
"""This updates the settings of the report-copilot task
|
2849
3469
|
|
2850
3470
|
|
2851
|
-
:param
|
2852
|
-
:type
|
2853
|
-
:param report_copilot_update_payload: (required)
|
2854
|
-
:type report_copilot_update_payload: ReportCopilotUpdatePayload
|
3471
|
+
:param report_copilot_task_settings_update_payload: (required)
|
3472
|
+
:type report_copilot_task_settings_update_payload: ReportCopilotTaskSettingsUpdatePayload
|
2855
3473
|
:param q_answer_api_key:
|
2856
3474
|
:type q_answer_api_key: str
|
2857
3475
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2876,9 +3494,8 @@ class TaskReportCopilotApi:
|
|
2876
3494
|
:return: Returns the result object.
|
2877
3495
|
""" # noqa: E501
|
2878
3496
|
|
2879
|
-
_param = self.
|
2880
|
-
|
2881
|
-
report_copilot_update_payload=report_copilot_update_payload,
|
3497
|
+
_param = self._update_task_settings_serialize(
|
3498
|
+
report_copilot_task_settings_update_payload=report_copilot_task_settings_update_payload,
|
2882
3499
|
q_answer_api_key=q_answer_api_key,
|
2883
3500
|
_request_auth=_request_auth,
|
2884
3501
|
_content_type=_content_type,
|
@@ -2887,7 +3504,7 @@ class TaskReportCopilotApi:
|
|
2887
3504
|
)
|
2888
3505
|
|
2889
3506
|
_response_types_map: Dict[str, Optional[str]] = {
|
2890
|
-
'200': "
|
3507
|
+
'200': "ReportCopilotTaskSettings",
|
2891
3508
|
}
|
2892
3509
|
response_data = self.api_client.call_api(
|
2893
3510
|
*_param,
|
@@ -2896,10 +3513,9 @@ class TaskReportCopilotApi:
|
|
2896
3513
|
return response_data.response
|
2897
3514
|
|
2898
3515
|
|
2899
|
-
def
|
3516
|
+
def _update_task_settings_serialize(
|
2900
3517
|
self,
|
2901
|
-
|
2902
|
-
report_copilot_update_payload,
|
3518
|
+
report_copilot_task_settings_update_payload,
|
2903
3519
|
q_answer_api_key,
|
2904
3520
|
_request_auth,
|
2905
3521
|
_content_type,
|
@@ -2922,16 +3538,14 @@ class TaskReportCopilotApi:
|
|
2922
3538
|
_body_params: Optional[bytes] = None
|
2923
3539
|
|
2924
3540
|
# process the path parameters
|
2925
|
-
if template_id is not None:
|
2926
|
-
_path_params['templateId'] = template_id
|
2927
3541
|
# process the query parameters
|
2928
3542
|
# process the header parameters
|
2929
3543
|
if q_answer_api_key is not None:
|
2930
3544
|
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
2931
3545
|
# process the form parameters
|
2932
3546
|
# process the body parameter
|
2933
|
-
if
|
2934
|
-
_body_params =
|
3547
|
+
if report_copilot_task_settings_update_payload is not None:
|
3548
|
+
_body_params = report_copilot_task_settings_update_payload
|
2935
3549
|
|
2936
3550
|
|
2937
3551
|
# set the HTTP header `Accept`
|
@@ -2964,7 +3578,7 @@ class TaskReportCopilotApi:
|
|
2964
3578
|
|
2965
3579
|
return self.api_client.param_serialize(
|
2966
3580
|
method='PUT',
|
2967
|
-
resource_path='/api/tasks/report-copilot/
|
3581
|
+
resource_path='/api/tasks/report-copilot/settings',
|
2968
3582
|
path_params=_path_params,
|
2969
3583
|
query_params=_query_params,
|
2970
3584
|
header_params=_header_params,
|