qanswer_sdk 3.1245.0__py3-none-any.whl → 3.1248.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 +2 -2
- qanswer_sdk/api/ai_assistant_api.py +17 -0
- qanswer_sdk/api/connector_document_api.py +371 -0
- qanswer_sdk/api/task_report_copilot_api.py +867 -172
- qanswer_sdk/api_client.py +1 -1
- qanswer_sdk/configuration.py +1 -1
- qanswer_sdk/models/__init__.py +1 -1
- qanswer_sdk/models/rag_payload.py +15 -1
- qanswer_sdk/models/{report_copilot_slot_task_update.py → report_copilot_slot_task_settings_update.py} +4 -4
- qanswer_sdk/models/search_payload.py +15 -1
- qanswer_sdk/models/slot_update.py +6 -6
- qanswer_sdk/models/text2_sparql_payload.py +15 -1
- {qanswer_sdk-3.1245.0.dist-info → qanswer_sdk-3.1248.0.dist-info}/METADATA +2 -2
- {qanswer_sdk-3.1245.0.dist-info → qanswer_sdk-3.1248.0.dist-info}/RECORD +15 -15
- {qanswer_sdk-3.1245.0.dist-info → qanswer_sdk-3.1248.0.dist-info}/WHEEL +0 -0
@@ -31,6 +31,8 @@ from qanswer_sdk.models.report_template_create_payload import ReportTemplateCrea
|
|
31
31
|
from qanswer_sdk.models.report_template_simplified import ReportTemplateSimplified
|
32
32
|
from qanswer_sdk.models.report_template_simplified_payload import ReportTemplateSimplifiedPayload
|
33
33
|
from qanswer_sdk.models.report_template_update_payload import ReportTemplateUpdatePayload
|
34
|
+
from qanswer_sdk.models.slot import Slot
|
35
|
+
from qanswer_sdk.models.slot_update import SlotUpdate
|
34
36
|
|
35
37
|
from qanswer_sdk.api_client import ApiClient, RequestSerialized
|
36
38
|
from qanswer_sdk.api_response import ApiResponse
|
@@ -1215,9 +1217,10 @@ class TaskReportCopilotApi:
|
|
1215
1217
|
@validate_call
|
1216
1218
|
def get_default_prompt(
|
1217
1219
|
self,
|
1218
|
-
template_id: StrictInt,
|
1219
1220
|
username: StrictStr,
|
1220
1221
|
dataset: StrictStr,
|
1222
|
+
template_id: Optional[StrictInt] = None,
|
1223
|
+
slot_id: Optional[StrictInt] = None,
|
1221
1224
|
q_answer_api_key: Optional[StrictStr] = None,
|
1222
1225
|
_request_timeout: Union[
|
1223
1226
|
None,
|
@@ -1235,12 +1238,14 @@ class TaskReportCopilotApi:
|
|
1235
1238
|
"""Get the default prompt with slots of a report template
|
1236
1239
|
|
1237
1240
|
|
1238
|
-
:param template_id: (required)
|
1239
|
-
:type template_id: int
|
1240
1241
|
:param username: (required)
|
1241
1242
|
:type username: str
|
1242
1243
|
:param dataset: (required)
|
1243
1244
|
:type dataset: str
|
1245
|
+
:param template_id:
|
1246
|
+
:type template_id: int
|
1247
|
+
:param slot_id:
|
1248
|
+
:type slot_id: int
|
1244
1249
|
:param q_answer_api_key:
|
1245
1250
|
:type q_answer_api_key: str
|
1246
1251
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -1266,9 +1271,10 @@ class TaskReportCopilotApi:
|
|
1266
1271
|
""" # noqa: E501
|
1267
1272
|
|
1268
1273
|
_param = self._get_default_prompt_serialize(
|
1269
|
-
template_id=template_id,
|
1270
1274
|
username=username,
|
1271
1275
|
dataset=dataset,
|
1276
|
+
template_id=template_id,
|
1277
|
+
slot_id=slot_id,
|
1272
1278
|
q_answer_api_key=q_answer_api_key,
|
1273
1279
|
_request_auth=_request_auth,
|
1274
1280
|
_content_type=_content_type,
|
@@ -1293,9 +1299,10 @@ class TaskReportCopilotApi:
|
|
1293
1299
|
@validate_call
|
1294
1300
|
def get_default_prompt_with_http_info(
|
1295
1301
|
self,
|
1296
|
-
template_id: StrictInt,
|
1297
1302
|
username: StrictStr,
|
1298
1303
|
dataset: StrictStr,
|
1304
|
+
template_id: Optional[StrictInt] = None,
|
1305
|
+
slot_id: Optional[StrictInt] = None,
|
1299
1306
|
q_answer_api_key: Optional[StrictStr] = None,
|
1300
1307
|
_request_timeout: Union[
|
1301
1308
|
None,
|
@@ -1313,12 +1320,14 @@ class TaskReportCopilotApi:
|
|
1313
1320
|
"""Get the default prompt with slots of a report template
|
1314
1321
|
|
1315
1322
|
|
1316
|
-
:param template_id: (required)
|
1317
|
-
:type template_id: int
|
1318
1323
|
:param username: (required)
|
1319
1324
|
:type username: str
|
1320
1325
|
:param dataset: (required)
|
1321
1326
|
:type dataset: str
|
1327
|
+
:param template_id:
|
1328
|
+
:type template_id: int
|
1329
|
+
:param slot_id:
|
1330
|
+
:type slot_id: int
|
1322
1331
|
:param q_answer_api_key:
|
1323
1332
|
:type q_answer_api_key: str
|
1324
1333
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -1344,9 +1353,10 @@ class TaskReportCopilotApi:
|
|
1344
1353
|
""" # noqa: E501
|
1345
1354
|
|
1346
1355
|
_param = self._get_default_prompt_serialize(
|
1347
|
-
template_id=template_id,
|
1348
1356
|
username=username,
|
1349
1357
|
dataset=dataset,
|
1358
|
+
template_id=template_id,
|
1359
|
+
slot_id=slot_id,
|
1350
1360
|
q_answer_api_key=q_answer_api_key,
|
1351
1361
|
_request_auth=_request_auth,
|
1352
1362
|
_content_type=_content_type,
|
@@ -1371,9 +1381,10 @@ class TaskReportCopilotApi:
|
|
1371
1381
|
@validate_call
|
1372
1382
|
def get_default_prompt_without_preload_content(
|
1373
1383
|
self,
|
1374
|
-
template_id: StrictInt,
|
1375
1384
|
username: StrictStr,
|
1376
1385
|
dataset: StrictStr,
|
1386
|
+
template_id: Optional[StrictInt] = None,
|
1387
|
+
slot_id: Optional[StrictInt] = None,
|
1377
1388
|
q_answer_api_key: Optional[StrictStr] = None,
|
1378
1389
|
_request_timeout: Union[
|
1379
1390
|
None,
|
@@ -1391,12 +1402,14 @@ class TaskReportCopilotApi:
|
|
1391
1402
|
"""Get the default prompt with slots of a report template
|
1392
1403
|
|
1393
1404
|
|
1394
|
-
:param template_id: (required)
|
1395
|
-
:type template_id: int
|
1396
1405
|
:param username: (required)
|
1397
1406
|
:type username: str
|
1398
1407
|
:param dataset: (required)
|
1399
1408
|
:type dataset: str
|
1409
|
+
:param template_id:
|
1410
|
+
:type template_id: int
|
1411
|
+
:param slot_id:
|
1412
|
+
:type slot_id: int
|
1400
1413
|
:param q_answer_api_key:
|
1401
1414
|
:type q_answer_api_key: str
|
1402
1415
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -1422,9 +1435,10 @@ class TaskReportCopilotApi:
|
|
1422
1435
|
""" # noqa: E501
|
1423
1436
|
|
1424
1437
|
_param = self._get_default_prompt_serialize(
|
1425
|
-
template_id=template_id,
|
1426
1438
|
username=username,
|
1427
1439
|
dataset=dataset,
|
1440
|
+
template_id=template_id,
|
1441
|
+
slot_id=slot_id,
|
1428
1442
|
q_answer_api_key=q_answer_api_key,
|
1429
1443
|
_request_auth=_request_auth,
|
1430
1444
|
_content_type=_content_type,
|
@@ -1444,9 +1458,10 @@ class TaskReportCopilotApi:
|
|
1444
1458
|
|
1445
1459
|
def _get_default_prompt_serialize(
|
1446
1460
|
self,
|
1447
|
-
template_id,
|
1448
1461
|
username,
|
1449
1462
|
dataset,
|
1463
|
+
template_id,
|
1464
|
+
slot_id,
|
1450
1465
|
q_answer_api_key,
|
1451
1466
|
_request_auth,
|
1452
1467
|
_content_type,
|
@@ -1469,8 +1484,6 @@ class TaskReportCopilotApi:
|
|
1469
1484
|
_body_params: Optional[bytes] = None
|
1470
1485
|
|
1471
1486
|
# process the path parameters
|
1472
|
-
if template_id is not None:
|
1473
|
-
_path_params['templateId'] = template_id
|
1474
1487
|
# process the query parameters
|
1475
1488
|
if username is not None:
|
1476
1489
|
|
@@ -1480,6 +1493,14 @@ class TaskReportCopilotApi:
|
|
1480
1493
|
|
1481
1494
|
_query_params.append(('dataset', dataset))
|
1482
1495
|
|
1496
|
+
if template_id is not None:
|
1497
|
+
|
1498
|
+
_query_params.append(('templateId', template_id))
|
1499
|
+
|
1500
|
+
if slot_id is not None:
|
1501
|
+
|
1502
|
+
_query_params.append(('slotId', slot_id))
|
1503
|
+
|
1483
1504
|
# process the header parameters
|
1484
1505
|
if q_answer_api_key is not None:
|
1485
1506
|
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
@@ -1504,7 +1525,7 @@ class TaskReportCopilotApi:
|
|
1504
1525
|
|
1505
1526
|
return self.api_client.param_serialize(
|
1506
1527
|
method='GET',
|
1507
|
-
resource_path='/api/tasks/report-copilot/templates/
|
1528
|
+
resource_path='/api/tasks/report-copilot/templates/default-prompt',
|
1508
1529
|
path_params=_path_params,
|
1509
1530
|
query_params=_query_params,
|
1510
1531
|
header_params=_header_params,
|
@@ -1829,10 +1850,12 @@ class TaskReportCopilotApi:
|
|
1829
1850
|
|
1830
1851
|
|
1831
1852
|
@validate_call
|
1832
|
-
def
|
1853
|
+
def get_slot_of_template(
|
1833
1854
|
self,
|
1834
1855
|
username: StrictStr,
|
1835
1856
|
dataset: StrictStr,
|
1857
|
+
template_id: StrictInt,
|
1858
|
+
slot_id: StrictInt,
|
1836
1859
|
q_answer_api_key: Optional[StrictStr] = None,
|
1837
1860
|
_request_timeout: Union[
|
1838
1861
|
None,
|
@@ -1846,14 +1869,18 @@ class TaskReportCopilotApi:
|
|
1846
1869
|
_content_type: Optional[StrictStr] = None,
|
1847
1870
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1848
1871
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1849
|
-
) ->
|
1850
|
-
"""
|
1872
|
+
) -> Slot:
|
1873
|
+
"""Get a specific slot of a report template
|
1851
1874
|
|
1852
1875
|
|
1853
1876
|
:param username: (required)
|
1854
1877
|
:type username: str
|
1855
1878
|
:param dataset: (required)
|
1856
1879
|
:type dataset: str
|
1880
|
+
:param template_id: (required)
|
1881
|
+
:type template_id: int
|
1882
|
+
:param slot_id: (required)
|
1883
|
+
:type slot_id: int
|
1857
1884
|
:param q_answer_api_key:
|
1858
1885
|
:type q_answer_api_key: str
|
1859
1886
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -1878,9 +1905,11 @@ class TaskReportCopilotApi:
|
|
1878
1905
|
:return: Returns the result object.
|
1879
1906
|
""" # noqa: E501
|
1880
1907
|
|
1881
|
-
_param = self.
|
1908
|
+
_param = self._get_slot_of_template_serialize(
|
1882
1909
|
username=username,
|
1883
1910
|
dataset=dataset,
|
1911
|
+
template_id=template_id,
|
1912
|
+
slot_id=slot_id,
|
1884
1913
|
q_answer_api_key=q_answer_api_key,
|
1885
1914
|
_request_auth=_request_auth,
|
1886
1915
|
_content_type=_content_type,
|
@@ -1889,7 +1918,7 @@ class TaskReportCopilotApi:
|
|
1889
1918
|
)
|
1890
1919
|
|
1891
1920
|
_response_types_map: Dict[str, Optional[str]] = {
|
1892
|
-
'200': "
|
1921
|
+
'200': "Slot",
|
1893
1922
|
}
|
1894
1923
|
response_data = self.api_client.call_api(
|
1895
1924
|
*_param,
|
@@ -1903,10 +1932,12 @@ class TaskReportCopilotApi:
|
|
1903
1932
|
|
1904
1933
|
|
1905
1934
|
@validate_call
|
1906
|
-
def
|
1935
|
+
def get_slot_of_template_with_http_info(
|
1907
1936
|
self,
|
1908
1937
|
username: StrictStr,
|
1909
1938
|
dataset: StrictStr,
|
1939
|
+
template_id: StrictInt,
|
1940
|
+
slot_id: StrictInt,
|
1910
1941
|
q_answer_api_key: Optional[StrictStr] = None,
|
1911
1942
|
_request_timeout: Union[
|
1912
1943
|
None,
|
@@ -1920,14 +1951,18 @@ class TaskReportCopilotApi:
|
|
1920
1951
|
_content_type: Optional[StrictStr] = None,
|
1921
1952
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1922
1953
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1923
|
-
) -> ApiResponse[
|
1924
|
-
"""
|
1954
|
+
) -> ApiResponse[Slot]:
|
1955
|
+
"""Get a specific slot of a report template
|
1925
1956
|
|
1926
1957
|
|
1927
1958
|
:param username: (required)
|
1928
1959
|
:type username: str
|
1929
1960
|
:param dataset: (required)
|
1930
1961
|
:type dataset: str
|
1962
|
+
:param template_id: (required)
|
1963
|
+
:type template_id: int
|
1964
|
+
:param slot_id: (required)
|
1965
|
+
:type slot_id: int
|
1931
1966
|
:param q_answer_api_key:
|
1932
1967
|
:type q_answer_api_key: str
|
1933
1968
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -1952,9 +1987,11 @@ class TaskReportCopilotApi:
|
|
1952
1987
|
:return: Returns the result object.
|
1953
1988
|
""" # noqa: E501
|
1954
1989
|
|
1955
|
-
_param = self.
|
1990
|
+
_param = self._get_slot_of_template_serialize(
|
1956
1991
|
username=username,
|
1957
1992
|
dataset=dataset,
|
1993
|
+
template_id=template_id,
|
1994
|
+
slot_id=slot_id,
|
1958
1995
|
q_answer_api_key=q_answer_api_key,
|
1959
1996
|
_request_auth=_request_auth,
|
1960
1997
|
_content_type=_content_type,
|
@@ -1963,7 +2000,7 @@ class TaskReportCopilotApi:
|
|
1963
2000
|
)
|
1964
2001
|
|
1965
2002
|
_response_types_map: Dict[str, Optional[str]] = {
|
1966
|
-
'200': "
|
2003
|
+
'200': "Slot",
|
1967
2004
|
}
|
1968
2005
|
response_data = self.api_client.call_api(
|
1969
2006
|
*_param,
|
@@ -1977,10 +2014,12 @@ class TaskReportCopilotApi:
|
|
1977
2014
|
|
1978
2015
|
|
1979
2016
|
@validate_call
|
1980
|
-
def
|
2017
|
+
def get_slot_of_template_without_preload_content(
|
1981
2018
|
self,
|
1982
2019
|
username: StrictStr,
|
1983
2020
|
dataset: StrictStr,
|
2021
|
+
template_id: StrictInt,
|
2022
|
+
slot_id: StrictInt,
|
1984
2023
|
q_answer_api_key: Optional[StrictStr] = None,
|
1985
2024
|
_request_timeout: Union[
|
1986
2025
|
None,
|
@@ -1995,13 +2034,17 @@ class TaskReportCopilotApi:
|
|
1995
2034
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1996
2035
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1997
2036
|
) -> RESTResponseType:
|
1998
|
-
"""
|
2037
|
+
"""Get a specific slot of a report template
|
1999
2038
|
|
2000
2039
|
|
2001
2040
|
:param username: (required)
|
2002
2041
|
:type username: str
|
2003
2042
|
:param dataset: (required)
|
2004
2043
|
:type dataset: str
|
2044
|
+
:param template_id: (required)
|
2045
|
+
:type template_id: int
|
2046
|
+
:param slot_id: (required)
|
2047
|
+
:type slot_id: int
|
2005
2048
|
:param q_answer_api_key:
|
2006
2049
|
:type q_answer_api_key: str
|
2007
2050
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2026,9 +2069,11 @@ class TaskReportCopilotApi:
|
|
2026
2069
|
:return: Returns the result object.
|
2027
2070
|
""" # noqa: E501
|
2028
2071
|
|
2029
|
-
_param = self.
|
2072
|
+
_param = self._get_slot_of_template_serialize(
|
2030
2073
|
username=username,
|
2031
2074
|
dataset=dataset,
|
2075
|
+
template_id=template_id,
|
2076
|
+
slot_id=slot_id,
|
2032
2077
|
q_answer_api_key=q_answer_api_key,
|
2033
2078
|
_request_auth=_request_auth,
|
2034
2079
|
_content_type=_content_type,
|
@@ -2037,7 +2082,7 @@ class TaskReportCopilotApi:
|
|
2037
2082
|
)
|
2038
2083
|
|
2039
2084
|
_response_types_map: Dict[str, Optional[str]] = {
|
2040
|
-
'200': "
|
2085
|
+
'200': "Slot",
|
2041
2086
|
}
|
2042
2087
|
response_data = self.api_client.call_api(
|
2043
2088
|
*_param,
|
@@ -2046,10 +2091,12 @@ class TaskReportCopilotApi:
|
|
2046
2091
|
return response_data.response
|
2047
2092
|
|
2048
2093
|
|
2049
|
-
def
|
2094
|
+
def _get_slot_of_template_serialize(
|
2050
2095
|
self,
|
2051
2096
|
username,
|
2052
2097
|
dataset,
|
2098
|
+
template_id,
|
2099
|
+
slot_id,
|
2053
2100
|
q_answer_api_key,
|
2054
2101
|
_request_auth,
|
2055
2102
|
_content_type,
|
@@ -2072,6 +2119,10 @@ class TaskReportCopilotApi:
|
|
2072
2119
|
_body_params: Optional[bytes] = None
|
2073
2120
|
|
2074
2121
|
# process the path parameters
|
2122
|
+
if template_id is not None:
|
2123
|
+
_path_params['templateId'] = template_id
|
2124
|
+
if slot_id is not None:
|
2125
|
+
_path_params['slotId'] = slot_id
|
2075
2126
|
# process the query parameters
|
2076
2127
|
if username is not None:
|
2077
2128
|
|
@@ -2105,7 +2156,7 @@ class TaskReportCopilotApi:
|
|
2105
2156
|
|
2106
2157
|
return self.api_client.param_serialize(
|
2107
2158
|
method='GET',
|
2108
|
-
resource_path='/api/tasks/report-copilot/
|
2159
|
+
resource_path='/api/tasks/report-copilot/templates/{templateId}/slots/{slotId}',
|
2109
2160
|
path_params=_path_params,
|
2110
2161
|
query_params=_query_params,
|
2111
2162
|
header_params=_header_params,
|
@@ -2122,11 +2173,10 @@ class TaskReportCopilotApi:
|
|
2122
2173
|
|
2123
2174
|
|
2124
2175
|
@validate_call
|
2125
|
-
def
|
2176
|
+
def get_task_settings(
|
2126
2177
|
self,
|
2127
2178
|
username: StrictStr,
|
2128
2179
|
dataset: StrictStr,
|
2129
|
-
conversation_id: Optional[StrictStr] = None,
|
2130
2180
|
q_answer_api_key: Optional[StrictStr] = None,
|
2131
2181
|
_request_timeout: Union[
|
2132
2182
|
None,
|
@@ -2140,16 +2190,14 @@ class TaskReportCopilotApi:
|
|
2140
2190
|
_content_type: Optional[StrictStr] = None,
|
2141
2191
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2142
2192
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2143
|
-
) ->
|
2144
|
-
"""
|
2193
|
+
) -> ReportCopilotTaskSettings:
|
2194
|
+
"""This gets the settings of the report-copilot task
|
2145
2195
|
|
2146
2196
|
|
2147
2197
|
:param username: (required)
|
2148
2198
|
:type username: str
|
2149
2199
|
:param dataset: (required)
|
2150
2200
|
:type dataset: str
|
2151
|
-
:param conversation_id:
|
2152
|
-
:type conversation_id: str
|
2153
2201
|
:param q_answer_api_key:
|
2154
2202
|
:type q_answer_api_key: str
|
2155
2203
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2174,10 +2222,9 @@ class TaskReportCopilotApi:
|
|
2174
2222
|
:return: Returns the result object.
|
2175
2223
|
""" # noqa: E501
|
2176
2224
|
|
2177
|
-
_param = self.
|
2225
|
+
_param = self._get_task_settings_serialize(
|
2178
2226
|
username=username,
|
2179
2227
|
dataset=dataset,
|
2180
|
-
conversation_id=conversation_id,
|
2181
2228
|
q_answer_api_key=q_answer_api_key,
|
2182
2229
|
_request_auth=_request_auth,
|
2183
2230
|
_content_type=_content_type,
|
@@ -2186,7 +2233,7 @@ class TaskReportCopilotApi:
|
|
2186
2233
|
)
|
2187
2234
|
|
2188
2235
|
_response_types_map: Dict[str, Optional[str]] = {
|
2189
|
-
'200': "
|
2236
|
+
'200': "ReportCopilotTaskSettings",
|
2190
2237
|
}
|
2191
2238
|
response_data = self.api_client.call_api(
|
2192
2239
|
*_param,
|
@@ -2200,11 +2247,10 @@ class TaskReportCopilotApi:
|
|
2200
2247
|
|
2201
2248
|
|
2202
2249
|
@validate_call
|
2203
|
-
def
|
2250
|
+
def get_task_settings_with_http_info(
|
2204
2251
|
self,
|
2205
2252
|
username: StrictStr,
|
2206
2253
|
dataset: StrictStr,
|
2207
|
-
conversation_id: Optional[StrictStr] = None,
|
2208
2254
|
q_answer_api_key: Optional[StrictStr] = None,
|
2209
2255
|
_request_timeout: Union[
|
2210
2256
|
None,
|
@@ -2218,16 +2264,14 @@ class TaskReportCopilotApi:
|
|
2218
2264
|
_content_type: Optional[StrictStr] = None,
|
2219
2265
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2220
2266
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2221
|
-
) -> ApiResponse[
|
2222
|
-
"""
|
2267
|
+
) -> ApiResponse[ReportCopilotTaskSettings]:
|
2268
|
+
"""This gets the settings of the report-copilot task
|
2223
2269
|
|
2224
2270
|
|
2225
2271
|
:param username: (required)
|
2226
2272
|
:type username: str
|
2227
2273
|
:param dataset: (required)
|
2228
2274
|
:type dataset: str
|
2229
|
-
:param conversation_id:
|
2230
|
-
:type conversation_id: str
|
2231
2275
|
:param q_answer_api_key:
|
2232
2276
|
:type q_answer_api_key: str
|
2233
2277
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2252,10 +2296,9 @@ class TaskReportCopilotApi:
|
|
2252
2296
|
:return: Returns the result object.
|
2253
2297
|
""" # noqa: E501
|
2254
2298
|
|
2255
|
-
_param = self.
|
2299
|
+
_param = self._get_task_settings_serialize(
|
2256
2300
|
username=username,
|
2257
2301
|
dataset=dataset,
|
2258
|
-
conversation_id=conversation_id,
|
2259
2302
|
q_answer_api_key=q_answer_api_key,
|
2260
2303
|
_request_auth=_request_auth,
|
2261
2304
|
_content_type=_content_type,
|
@@ -2264,7 +2307,7 @@ class TaskReportCopilotApi:
|
|
2264
2307
|
)
|
2265
2308
|
|
2266
2309
|
_response_types_map: Dict[str, Optional[str]] = {
|
2267
|
-
'200': "
|
2310
|
+
'200': "ReportCopilotTaskSettings",
|
2268
2311
|
}
|
2269
2312
|
response_data = self.api_client.call_api(
|
2270
2313
|
*_param,
|
@@ -2278,11 +2321,10 @@ class TaskReportCopilotApi:
|
|
2278
2321
|
|
2279
2322
|
|
2280
2323
|
@validate_call
|
2281
|
-
def
|
2324
|
+
def get_task_settings_without_preload_content(
|
2282
2325
|
self,
|
2283
2326
|
username: StrictStr,
|
2284
2327
|
dataset: StrictStr,
|
2285
|
-
conversation_id: Optional[StrictStr] = None,
|
2286
2328
|
q_answer_api_key: Optional[StrictStr] = None,
|
2287
2329
|
_request_timeout: Union[
|
2288
2330
|
None,
|
@@ -2297,15 +2339,13 @@ class TaskReportCopilotApi:
|
|
2297
2339
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2298
2340
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2299
2341
|
) -> RESTResponseType:
|
2300
|
-
"""
|
2342
|
+
"""This gets the settings of the report-copilot task
|
2301
2343
|
|
2302
2344
|
|
2303
2345
|
:param username: (required)
|
2304
2346
|
:type username: str
|
2305
2347
|
:param dataset: (required)
|
2306
2348
|
:type dataset: str
|
2307
|
-
:param conversation_id:
|
2308
|
-
:type conversation_id: str
|
2309
2349
|
:param q_answer_api_key:
|
2310
2350
|
:type q_answer_api_key: str
|
2311
2351
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2330,10 +2370,9 @@ class TaskReportCopilotApi:
|
|
2330
2370
|
:return: Returns the result object.
|
2331
2371
|
""" # noqa: E501
|
2332
2372
|
|
2333
|
-
_param = self.
|
2373
|
+
_param = self._get_task_settings_serialize(
|
2334
2374
|
username=username,
|
2335
2375
|
dataset=dataset,
|
2336
|
-
conversation_id=conversation_id,
|
2337
2376
|
q_answer_api_key=q_answer_api_key,
|
2338
2377
|
_request_auth=_request_auth,
|
2339
2378
|
_content_type=_content_type,
|
@@ -2342,7 +2381,7 @@ class TaskReportCopilotApi:
|
|
2342
2381
|
)
|
2343
2382
|
|
2344
2383
|
_response_types_map: Dict[str, Optional[str]] = {
|
2345
|
-
'200': "
|
2384
|
+
'200': "ReportCopilotTaskSettings",
|
2346
2385
|
}
|
2347
2386
|
response_data = self.api_client.call_api(
|
2348
2387
|
*_param,
|
@@ -2351,11 +2390,10 @@ class TaskReportCopilotApi:
|
|
2351
2390
|
return response_data.response
|
2352
2391
|
|
2353
2392
|
|
2354
|
-
def
|
2393
|
+
def _get_task_settings_serialize(
|
2355
2394
|
self,
|
2356
2395
|
username,
|
2357
2396
|
dataset,
|
2358
|
-
conversation_id,
|
2359
2397
|
q_answer_api_key,
|
2360
2398
|
_request_auth,
|
2361
2399
|
_content_type,
|
@@ -2387,10 +2425,6 @@ class TaskReportCopilotApi:
|
|
2387
2425
|
|
2388
2426
|
_query_params.append(('dataset', dataset))
|
2389
2427
|
|
2390
|
-
if conversation_id is not None:
|
2391
|
-
|
2392
|
-
_query_params.append(('conversationId', conversation_id))
|
2393
|
-
|
2394
2428
|
# process the header parameters
|
2395
2429
|
if q_answer_api_key is not None:
|
2396
2430
|
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
@@ -2415,7 +2449,7 @@ class TaskReportCopilotApi:
|
|
2415
2449
|
|
2416
2450
|
return self.api_client.param_serialize(
|
2417
2451
|
method='GET',
|
2418
|
-
resource_path='/api/tasks/report-copilot/
|
2452
|
+
resource_path='/api/tasks/report-copilot/settings',
|
2419
2453
|
path_params=_path_params,
|
2420
2454
|
query_params=_query_params,
|
2421
2455
|
header_params=_header_params,
|
@@ -2432,9 +2466,11 @@ class TaskReportCopilotApi:
|
|
2432
2466
|
|
2433
2467
|
|
2434
2468
|
@validate_call
|
2435
|
-
def
|
2469
|
+
def list_report_templates(
|
2436
2470
|
self,
|
2437
|
-
|
2471
|
+
username: StrictStr,
|
2472
|
+
dataset: StrictStr,
|
2473
|
+
conversation_id: Optional[StrictStr] = None,
|
2438
2474
|
q_answer_api_key: Optional[StrictStr] = None,
|
2439
2475
|
_request_timeout: Union[
|
2440
2476
|
None,
|
@@ -2448,12 +2484,16 @@ class TaskReportCopilotApi:
|
|
2448
2484
|
_content_type: Optional[StrictStr] = None,
|
2449
2485
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2450
2486
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2451
|
-
) ->
|
2452
|
-
"""
|
2487
|
+
) -> List[ReportTemplateSimplified]:
|
2488
|
+
"""List all report templates
|
2453
2489
|
|
2454
2490
|
|
2455
|
-
:param
|
2456
|
-
:type
|
2491
|
+
:param username: (required)
|
2492
|
+
:type username: str
|
2493
|
+
:param dataset: (required)
|
2494
|
+
:type dataset: str
|
2495
|
+
:param conversation_id:
|
2496
|
+
:type conversation_id: str
|
2457
2497
|
:param q_answer_api_key:
|
2458
2498
|
:type q_answer_api_key: str
|
2459
2499
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2478,8 +2518,10 @@ class TaskReportCopilotApi:
|
|
2478
2518
|
:return: Returns the result object.
|
2479
2519
|
""" # noqa: E501
|
2480
2520
|
|
2481
|
-
_param = self.
|
2482
|
-
|
2521
|
+
_param = self._list_report_templates_serialize(
|
2522
|
+
username=username,
|
2523
|
+
dataset=dataset,
|
2524
|
+
conversation_id=conversation_id,
|
2483
2525
|
q_answer_api_key=q_answer_api_key,
|
2484
2526
|
_request_auth=_request_auth,
|
2485
2527
|
_content_type=_content_type,
|
@@ -2488,7 +2530,7 @@ class TaskReportCopilotApi:
|
|
2488
2530
|
)
|
2489
2531
|
|
2490
2532
|
_response_types_map: Dict[str, Optional[str]] = {
|
2491
|
-
'200': "
|
2533
|
+
'200': "List[ReportTemplateSimplified]",
|
2492
2534
|
}
|
2493
2535
|
response_data = self.api_client.call_api(
|
2494
2536
|
*_param,
|
@@ -2502,9 +2544,11 @@ class TaskReportCopilotApi:
|
|
2502
2544
|
|
2503
2545
|
|
2504
2546
|
@validate_call
|
2505
|
-
def
|
2547
|
+
def list_report_templates_with_http_info(
|
2506
2548
|
self,
|
2507
|
-
|
2549
|
+
username: StrictStr,
|
2550
|
+
dataset: StrictStr,
|
2551
|
+
conversation_id: Optional[StrictStr] = None,
|
2508
2552
|
q_answer_api_key: Optional[StrictStr] = None,
|
2509
2553
|
_request_timeout: Union[
|
2510
2554
|
None,
|
@@ -2518,12 +2562,16 @@ class TaskReportCopilotApi:
|
|
2518
2562
|
_content_type: Optional[StrictStr] = None,
|
2519
2563
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2520
2564
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2521
|
-
) -> ApiResponse[
|
2522
|
-
"""
|
2565
|
+
) -> ApiResponse[List[ReportTemplateSimplified]]:
|
2566
|
+
"""List all report templates
|
2523
2567
|
|
2524
2568
|
|
2525
|
-
:param
|
2526
|
-
:type
|
2569
|
+
:param username: (required)
|
2570
|
+
:type username: str
|
2571
|
+
:param dataset: (required)
|
2572
|
+
:type dataset: str
|
2573
|
+
:param conversation_id:
|
2574
|
+
:type conversation_id: str
|
2527
2575
|
:param q_answer_api_key:
|
2528
2576
|
:type q_answer_api_key: str
|
2529
2577
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2548,8 +2596,10 @@ class TaskReportCopilotApi:
|
|
2548
2596
|
:return: Returns the result object.
|
2549
2597
|
""" # noqa: E501
|
2550
2598
|
|
2551
|
-
_param = self.
|
2552
|
-
|
2599
|
+
_param = self._list_report_templates_serialize(
|
2600
|
+
username=username,
|
2601
|
+
dataset=dataset,
|
2602
|
+
conversation_id=conversation_id,
|
2553
2603
|
q_answer_api_key=q_answer_api_key,
|
2554
2604
|
_request_auth=_request_auth,
|
2555
2605
|
_content_type=_content_type,
|
@@ -2558,7 +2608,7 @@ class TaskReportCopilotApi:
|
|
2558
2608
|
)
|
2559
2609
|
|
2560
2610
|
_response_types_map: Dict[str, Optional[str]] = {
|
2561
|
-
'200': "
|
2611
|
+
'200': "List[ReportTemplateSimplified]",
|
2562
2612
|
}
|
2563
2613
|
response_data = self.api_client.call_api(
|
2564
2614
|
*_param,
|
@@ -2572,9 +2622,11 @@ class TaskReportCopilotApi:
|
|
2572
2622
|
|
2573
2623
|
|
2574
2624
|
@validate_call
|
2575
|
-
def
|
2625
|
+
def list_report_templates_without_preload_content(
|
2576
2626
|
self,
|
2577
|
-
|
2627
|
+
username: StrictStr,
|
2628
|
+
dataset: StrictStr,
|
2629
|
+
conversation_id: Optional[StrictStr] = None,
|
2578
2630
|
q_answer_api_key: Optional[StrictStr] = None,
|
2579
2631
|
_request_timeout: Union[
|
2580
2632
|
None,
|
@@ -2589,11 +2641,15 @@ class TaskReportCopilotApi:
|
|
2589
2641
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2590
2642
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2591
2643
|
) -> RESTResponseType:
|
2592
|
-
"""
|
2644
|
+
"""List all report templates
|
2593
2645
|
|
2594
2646
|
|
2595
|
-
:param
|
2596
|
-
:type
|
2647
|
+
:param username: (required)
|
2648
|
+
:type username: str
|
2649
|
+
:param dataset: (required)
|
2650
|
+
:type dataset: str
|
2651
|
+
:param conversation_id:
|
2652
|
+
:type conversation_id: str
|
2597
2653
|
:param q_answer_api_key:
|
2598
2654
|
:type q_answer_api_key: str
|
2599
2655
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2618,8 +2674,10 @@ class TaskReportCopilotApi:
|
|
2618
2674
|
:return: Returns the result object.
|
2619
2675
|
""" # noqa: E501
|
2620
2676
|
|
2621
|
-
_param = self.
|
2622
|
-
|
2677
|
+
_param = self._list_report_templates_serialize(
|
2678
|
+
username=username,
|
2679
|
+
dataset=dataset,
|
2680
|
+
conversation_id=conversation_id,
|
2623
2681
|
q_answer_api_key=q_answer_api_key,
|
2624
2682
|
_request_auth=_request_auth,
|
2625
2683
|
_content_type=_content_type,
|
@@ -2628,7 +2686,7 @@ class TaskReportCopilotApi:
|
|
2628
2686
|
)
|
2629
2687
|
|
2630
2688
|
_response_types_map: Dict[str, Optional[str]] = {
|
2631
|
-
'200': "
|
2689
|
+
'200': "List[ReportTemplateSimplified]",
|
2632
2690
|
}
|
2633
2691
|
response_data = self.api_client.call_api(
|
2634
2692
|
*_param,
|
@@ -2637,9 +2695,11 @@ class TaskReportCopilotApi:
|
|
2637
2695
|
return response_data.response
|
2638
2696
|
|
2639
2697
|
|
2640
|
-
def
|
2698
|
+
def _list_report_templates_serialize(
|
2641
2699
|
self,
|
2642
|
-
|
2700
|
+
username,
|
2701
|
+
dataset,
|
2702
|
+
conversation_id,
|
2643
2703
|
q_answer_api_key,
|
2644
2704
|
_request_auth,
|
2645
2705
|
_content_type,
|
@@ -2663,13 +2723,23 @@ class TaskReportCopilotApi:
|
|
2663
2723
|
|
2664
2724
|
# process the path parameters
|
2665
2725
|
# process the query parameters
|
2726
|
+
if username is not None:
|
2727
|
+
|
2728
|
+
_query_params.append(('username', username))
|
2729
|
+
|
2730
|
+
if dataset is not None:
|
2731
|
+
|
2732
|
+
_query_params.append(('dataset', dataset))
|
2733
|
+
|
2734
|
+
if conversation_id is not None:
|
2735
|
+
|
2736
|
+
_query_params.append(('conversationId', conversation_id))
|
2737
|
+
|
2666
2738
|
# process the header parameters
|
2667
2739
|
if q_answer_api_key is not None:
|
2668
2740
|
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
2669
2741
|
# process the form parameters
|
2670
2742
|
# process the body parameter
|
2671
|
-
if report_copilot_generation_from_slots_payload is not None:
|
2672
|
-
_body_params = report_copilot_generation_from_slots_payload
|
2673
2743
|
|
2674
2744
|
|
2675
2745
|
# set the HTTP header `Accept`
|
@@ -2680,19 +2750,6 @@ class TaskReportCopilotApi:
|
|
2680
2750
|
]
|
2681
2751
|
)
|
2682
2752
|
|
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
2753
|
|
2697
2754
|
# authentication setting
|
2698
2755
|
_auth_settings: List[str] = [
|
@@ -2701,8 +2758,8 @@ class TaskReportCopilotApi:
|
|
2701
2758
|
]
|
2702
2759
|
|
2703
2760
|
return self.api_client.param_serialize(
|
2704
|
-
method='
|
2705
|
-
resource_path='/api/tasks/report-copilot/
|
2761
|
+
method='GET',
|
2762
|
+
resource_path='/api/tasks/report-copilot/templates',
|
2706
2763
|
path_params=_path_params,
|
2707
2764
|
query_params=_query_params,
|
2708
2765
|
header_params=_header_params,
|
@@ -2719,9 +2776,9 @@ class TaskReportCopilotApi:
|
|
2719
2776
|
|
2720
2777
|
|
2721
2778
|
@validate_call
|
2722
|
-
def
|
2779
|
+
def report_generation_from_slots(
|
2723
2780
|
self,
|
2724
|
-
|
2781
|
+
report_copilot_generation_from_slots_payload: ReportCopilotGenerationFromSlotsPayload,
|
2725
2782
|
q_answer_api_key: Optional[StrictStr] = None,
|
2726
2783
|
_request_timeout: Union[
|
2727
2784
|
None,
|
@@ -2735,12 +2792,12 @@ class TaskReportCopilotApi:
|
|
2735
2792
|
_content_type: Optional[StrictStr] = None,
|
2736
2793
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2737
2794
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2738
|
-
) ->
|
2739
|
-
"""
|
2795
|
+
) -> ReportCopilotGenerationFromSlotsResponse:
|
2796
|
+
"""report_generation_from_slots
|
2740
2797
|
|
2741
2798
|
|
2742
|
-
:param
|
2743
|
-
:type
|
2799
|
+
:param report_copilot_generation_from_slots_payload: (required)
|
2800
|
+
:type report_copilot_generation_from_slots_payload: ReportCopilotGenerationFromSlotsPayload
|
2744
2801
|
:param q_answer_api_key:
|
2745
2802
|
:type q_answer_api_key: str
|
2746
2803
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2765,8 +2822,8 @@ class TaskReportCopilotApi:
|
|
2765
2822
|
:return: Returns the result object.
|
2766
2823
|
""" # noqa: E501
|
2767
2824
|
|
2768
|
-
_param = self.
|
2769
|
-
|
2825
|
+
_param = self._report_generation_from_slots_serialize(
|
2826
|
+
report_copilot_generation_from_slots_payload=report_copilot_generation_from_slots_payload,
|
2770
2827
|
q_answer_api_key=q_answer_api_key,
|
2771
2828
|
_request_auth=_request_auth,
|
2772
2829
|
_content_type=_content_type,
|
@@ -2775,7 +2832,7 @@ class TaskReportCopilotApi:
|
|
2775
2832
|
)
|
2776
2833
|
|
2777
2834
|
_response_types_map: Dict[str, Optional[str]] = {
|
2778
|
-
'200': "
|
2835
|
+
'200': "ReportCopilotGenerationFromSlotsResponse",
|
2779
2836
|
}
|
2780
2837
|
response_data = self.api_client.call_api(
|
2781
2838
|
*_param,
|
@@ -2789,9 +2846,9 @@ class TaskReportCopilotApi:
|
|
2789
2846
|
|
2790
2847
|
|
2791
2848
|
@validate_call
|
2792
|
-
def
|
2849
|
+
def report_generation_from_slots_with_http_info(
|
2793
2850
|
self,
|
2794
|
-
|
2851
|
+
report_copilot_generation_from_slots_payload: ReportCopilotGenerationFromSlotsPayload,
|
2795
2852
|
q_answer_api_key: Optional[StrictStr] = None,
|
2796
2853
|
_request_timeout: Union[
|
2797
2854
|
None,
|
@@ -2805,12 +2862,12 @@ class TaskReportCopilotApi:
|
|
2805
2862
|
_content_type: Optional[StrictStr] = None,
|
2806
2863
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2807
2864
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2808
|
-
) -> ApiResponse[
|
2809
|
-
"""
|
2865
|
+
) -> ApiResponse[ReportCopilotGenerationFromSlotsResponse]:
|
2866
|
+
"""report_generation_from_slots
|
2810
2867
|
|
2811
2868
|
|
2812
|
-
:param
|
2813
|
-
:type
|
2869
|
+
:param report_copilot_generation_from_slots_payload: (required)
|
2870
|
+
:type report_copilot_generation_from_slots_payload: ReportCopilotGenerationFromSlotsPayload
|
2814
2871
|
:param q_answer_api_key:
|
2815
2872
|
:type q_answer_api_key: str
|
2816
2873
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2835,8 +2892,8 @@ class TaskReportCopilotApi:
|
|
2835
2892
|
:return: Returns the result object.
|
2836
2893
|
""" # noqa: E501
|
2837
2894
|
|
2838
|
-
_param = self.
|
2839
|
-
|
2895
|
+
_param = self._report_generation_from_slots_serialize(
|
2896
|
+
report_copilot_generation_from_slots_payload=report_copilot_generation_from_slots_payload,
|
2840
2897
|
q_answer_api_key=q_answer_api_key,
|
2841
2898
|
_request_auth=_request_auth,
|
2842
2899
|
_content_type=_content_type,
|
@@ -2845,7 +2902,294 @@ class TaskReportCopilotApi:
|
|
2845
2902
|
)
|
2846
2903
|
|
2847
2904
|
_response_types_map: Dict[str, Optional[str]] = {
|
2848
|
-
'200': "
|
2905
|
+
'200': "ReportCopilotGenerationFromSlotsResponse",
|
2906
|
+
}
|
2907
|
+
response_data = self.api_client.call_api(
|
2908
|
+
*_param,
|
2909
|
+
_request_timeout=_request_timeout
|
2910
|
+
)
|
2911
|
+
response_data.read()
|
2912
|
+
return self.api_client.response_deserialize(
|
2913
|
+
response_data=response_data,
|
2914
|
+
response_types_map=_response_types_map,
|
2915
|
+
)
|
2916
|
+
|
2917
|
+
|
2918
|
+
@validate_call
|
2919
|
+
def report_generation_from_slots_without_preload_content(
|
2920
|
+
self,
|
2921
|
+
report_copilot_generation_from_slots_payload: ReportCopilotGenerationFromSlotsPayload,
|
2922
|
+
q_answer_api_key: Optional[StrictStr] = None,
|
2923
|
+
_request_timeout: Union[
|
2924
|
+
None,
|
2925
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2926
|
+
Tuple[
|
2927
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2928
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2929
|
+
]
|
2930
|
+
] = None,
|
2931
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2932
|
+
_content_type: Optional[StrictStr] = None,
|
2933
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2934
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2935
|
+
) -> RESTResponseType:
|
2936
|
+
"""report_generation_from_slots
|
2937
|
+
|
2938
|
+
|
2939
|
+
:param report_copilot_generation_from_slots_payload: (required)
|
2940
|
+
:type report_copilot_generation_from_slots_payload: ReportCopilotGenerationFromSlotsPayload
|
2941
|
+
:param q_answer_api_key:
|
2942
|
+
:type q_answer_api_key: str
|
2943
|
+
:param _request_timeout: timeout setting for this request. If one
|
2944
|
+
number provided, it will be total request
|
2945
|
+
timeout. It can also be a pair (tuple) of
|
2946
|
+
(connection, read) timeouts.
|
2947
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2948
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2949
|
+
request; this effectively ignores the
|
2950
|
+
authentication in the spec for a single request.
|
2951
|
+
:type _request_auth: dict, optional
|
2952
|
+
:param _content_type: force content-type for the request.
|
2953
|
+
:type _content_type: str, Optional
|
2954
|
+
:param _headers: set to override the headers for a single
|
2955
|
+
request; this effectively ignores the headers
|
2956
|
+
in the spec for a single request.
|
2957
|
+
:type _headers: dict, optional
|
2958
|
+
:param _host_index: set to override the host_index for a single
|
2959
|
+
request; this effectively ignores the host_index
|
2960
|
+
in the spec for a single request.
|
2961
|
+
:type _host_index: int, optional
|
2962
|
+
:return: Returns the result object.
|
2963
|
+
""" # noqa: E501
|
2964
|
+
|
2965
|
+
_param = self._report_generation_from_slots_serialize(
|
2966
|
+
report_copilot_generation_from_slots_payload=report_copilot_generation_from_slots_payload,
|
2967
|
+
q_answer_api_key=q_answer_api_key,
|
2968
|
+
_request_auth=_request_auth,
|
2969
|
+
_content_type=_content_type,
|
2970
|
+
_headers=_headers,
|
2971
|
+
_host_index=_host_index
|
2972
|
+
)
|
2973
|
+
|
2974
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2975
|
+
'200': "ReportCopilotGenerationFromSlotsResponse",
|
2976
|
+
}
|
2977
|
+
response_data = self.api_client.call_api(
|
2978
|
+
*_param,
|
2979
|
+
_request_timeout=_request_timeout
|
2980
|
+
)
|
2981
|
+
return response_data.response
|
2982
|
+
|
2983
|
+
|
2984
|
+
def _report_generation_from_slots_serialize(
|
2985
|
+
self,
|
2986
|
+
report_copilot_generation_from_slots_payload,
|
2987
|
+
q_answer_api_key,
|
2988
|
+
_request_auth,
|
2989
|
+
_content_type,
|
2990
|
+
_headers,
|
2991
|
+
_host_index,
|
2992
|
+
) -> RequestSerialized:
|
2993
|
+
|
2994
|
+
_host = None
|
2995
|
+
|
2996
|
+
_collection_formats: Dict[str, str] = {
|
2997
|
+
}
|
2998
|
+
|
2999
|
+
_path_params: Dict[str, str] = {}
|
3000
|
+
_query_params: List[Tuple[str, str]] = []
|
3001
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
3002
|
+
_form_params: List[Tuple[str, str]] = []
|
3003
|
+
_files: Dict[
|
3004
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
3005
|
+
] = {}
|
3006
|
+
_body_params: Optional[bytes] = None
|
3007
|
+
|
3008
|
+
# process the path parameters
|
3009
|
+
# process the query parameters
|
3010
|
+
# process the header parameters
|
3011
|
+
if q_answer_api_key is not None:
|
3012
|
+
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
3013
|
+
# process the form parameters
|
3014
|
+
# process the body parameter
|
3015
|
+
if report_copilot_generation_from_slots_payload is not None:
|
3016
|
+
_body_params = report_copilot_generation_from_slots_payload
|
3017
|
+
|
3018
|
+
|
3019
|
+
# set the HTTP header `Accept`
|
3020
|
+
if 'Accept' not in _header_params:
|
3021
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
3022
|
+
[
|
3023
|
+
'*/*'
|
3024
|
+
]
|
3025
|
+
)
|
3026
|
+
|
3027
|
+
# set the HTTP header `Content-Type`
|
3028
|
+
if _content_type:
|
3029
|
+
_header_params['Content-Type'] = _content_type
|
3030
|
+
else:
|
3031
|
+
_default_content_type = (
|
3032
|
+
self.api_client.select_header_content_type(
|
3033
|
+
[
|
3034
|
+
'application/json'
|
3035
|
+
]
|
3036
|
+
)
|
3037
|
+
)
|
3038
|
+
if _default_content_type is not None:
|
3039
|
+
_header_params['Content-Type'] = _default_content_type
|
3040
|
+
|
3041
|
+
# authentication setting
|
3042
|
+
_auth_settings: List[str] = [
|
3043
|
+
'QAnswer-Api-Key',
|
3044
|
+
'Bearer'
|
3045
|
+
]
|
3046
|
+
|
3047
|
+
return self.api_client.param_serialize(
|
3048
|
+
method='POST',
|
3049
|
+
resource_path='/api/tasks/report-copilot/report-generation/from-slots',
|
3050
|
+
path_params=_path_params,
|
3051
|
+
query_params=_query_params,
|
3052
|
+
header_params=_header_params,
|
3053
|
+
body=_body_params,
|
3054
|
+
post_params=_form_params,
|
3055
|
+
files=_files,
|
3056
|
+
auth_settings=_auth_settings,
|
3057
|
+
collection_formats=_collection_formats,
|
3058
|
+
_host=_host,
|
3059
|
+
_request_auth=_request_auth
|
3060
|
+
)
|
3061
|
+
|
3062
|
+
|
3063
|
+
|
3064
|
+
|
3065
|
+
@validate_call
|
3066
|
+
def report_refinement(
|
3067
|
+
self,
|
3068
|
+
report_copilot_refinement_payload: ReportCopilotRefinementPayload,
|
3069
|
+
q_answer_api_key: Optional[StrictStr] = None,
|
3070
|
+
_request_timeout: Union[
|
3071
|
+
None,
|
3072
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3073
|
+
Tuple[
|
3074
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3075
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3076
|
+
]
|
3077
|
+
] = None,
|
3078
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3079
|
+
_content_type: Optional[StrictStr] = None,
|
3080
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3081
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3082
|
+
) -> ReportCopilotRefinementResponse:
|
3083
|
+
"""report_refinement
|
3084
|
+
|
3085
|
+
|
3086
|
+
:param report_copilot_refinement_payload: (required)
|
3087
|
+
:type report_copilot_refinement_payload: ReportCopilotRefinementPayload
|
3088
|
+
:param q_answer_api_key:
|
3089
|
+
:type q_answer_api_key: str
|
3090
|
+
:param _request_timeout: timeout setting for this request. If one
|
3091
|
+
number provided, it will be total request
|
3092
|
+
timeout. It can also be a pair (tuple) of
|
3093
|
+
(connection, read) timeouts.
|
3094
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3095
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3096
|
+
request; this effectively ignores the
|
3097
|
+
authentication in the spec for a single request.
|
3098
|
+
:type _request_auth: dict, optional
|
3099
|
+
:param _content_type: force content-type for the request.
|
3100
|
+
:type _content_type: str, Optional
|
3101
|
+
:param _headers: set to override the headers for a single
|
3102
|
+
request; this effectively ignores the headers
|
3103
|
+
in the spec for a single request.
|
3104
|
+
:type _headers: dict, optional
|
3105
|
+
:param _host_index: set to override the host_index for a single
|
3106
|
+
request; this effectively ignores the host_index
|
3107
|
+
in the spec for a single request.
|
3108
|
+
:type _host_index: int, optional
|
3109
|
+
:return: Returns the result object.
|
3110
|
+
""" # noqa: E501
|
3111
|
+
|
3112
|
+
_param = self._report_refinement_serialize(
|
3113
|
+
report_copilot_refinement_payload=report_copilot_refinement_payload,
|
3114
|
+
q_answer_api_key=q_answer_api_key,
|
3115
|
+
_request_auth=_request_auth,
|
3116
|
+
_content_type=_content_type,
|
3117
|
+
_headers=_headers,
|
3118
|
+
_host_index=_host_index
|
3119
|
+
)
|
3120
|
+
|
3121
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3122
|
+
'200': "ReportCopilotRefinementResponse",
|
3123
|
+
}
|
3124
|
+
response_data = self.api_client.call_api(
|
3125
|
+
*_param,
|
3126
|
+
_request_timeout=_request_timeout
|
3127
|
+
)
|
3128
|
+
response_data.read()
|
3129
|
+
return self.api_client.response_deserialize(
|
3130
|
+
response_data=response_data,
|
3131
|
+
response_types_map=_response_types_map,
|
3132
|
+
).data
|
3133
|
+
|
3134
|
+
|
3135
|
+
@validate_call
|
3136
|
+
def report_refinement_with_http_info(
|
3137
|
+
self,
|
3138
|
+
report_copilot_refinement_payload: ReportCopilotRefinementPayload,
|
3139
|
+
q_answer_api_key: Optional[StrictStr] = None,
|
3140
|
+
_request_timeout: Union[
|
3141
|
+
None,
|
3142
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3143
|
+
Tuple[
|
3144
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3145
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3146
|
+
]
|
3147
|
+
] = None,
|
3148
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3149
|
+
_content_type: Optional[StrictStr] = None,
|
3150
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3151
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3152
|
+
) -> ApiResponse[ReportCopilotRefinementResponse]:
|
3153
|
+
"""report_refinement
|
3154
|
+
|
3155
|
+
|
3156
|
+
:param report_copilot_refinement_payload: (required)
|
3157
|
+
:type report_copilot_refinement_payload: ReportCopilotRefinementPayload
|
3158
|
+
:param q_answer_api_key:
|
3159
|
+
:type q_answer_api_key: str
|
3160
|
+
:param _request_timeout: timeout setting for this request. If one
|
3161
|
+
number provided, it will be total request
|
3162
|
+
timeout. It can also be a pair (tuple) of
|
3163
|
+
(connection, read) timeouts.
|
3164
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3165
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3166
|
+
request; this effectively ignores the
|
3167
|
+
authentication in the spec for a single request.
|
3168
|
+
:type _request_auth: dict, optional
|
3169
|
+
:param _content_type: force content-type for the request.
|
3170
|
+
:type _content_type: str, Optional
|
3171
|
+
:param _headers: set to override the headers for a single
|
3172
|
+
request; this effectively ignores the headers
|
3173
|
+
in the spec for a single request.
|
3174
|
+
:type _headers: dict, optional
|
3175
|
+
:param _host_index: set to override the host_index for a single
|
3176
|
+
request; this effectively ignores the host_index
|
3177
|
+
in the spec for a single request.
|
3178
|
+
:type _host_index: int, optional
|
3179
|
+
:return: Returns the result object.
|
3180
|
+
""" # noqa: E501
|
3181
|
+
|
3182
|
+
_param = self._report_refinement_serialize(
|
3183
|
+
report_copilot_refinement_payload=report_copilot_refinement_payload,
|
3184
|
+
q_answer_api_key=q_answer_api_key,
|
3185
|
+
_request_auth=_request_auth,
|
3186
|
+
_content_type=_content_type,
|
3187
|
+
_headers=_headers,
|
3188
|
+
_host_index=_host_index
|
3189
|
+
)
|
3190
|
+
|
3191
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3192
|
+
'200': "ReportCopilotRefinementResponse",
|
2849
3193
|
}
|
2850
3194
|
response_data = self.api_client.call_api(
|
2851
3195
|
*_param,
|
@@ -2861,7 +3205,303 @@ class TaskReportCopilotApi:
|
|
2861
3205
|
@validate_call
|
2862
3206
|
def report_refinement_without_preload_content(
|
2863
3207
|
self,
|
2864
|
-
report_copilot_refinement_payload: ReportCopilotRefinementPayload,
|
3208
|
+
report_copilot_refinement_payload: ReportCopilotRefinementPayload,
|
3209
|
+
q_answer_api_key: Optional[StrictStr] = None,
|
3210
|
+
_request_timeout: Union[
|
3211
|
+
None,
|
3212
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3213
|
+
Tuple[
|
3214
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3215
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3216
|
+
]
|
3217
|
+
] = None,
|
3218
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3219
|
+
_content_type: Optional[StrictStr] = None,
|
3220
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3221
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3222
|
+
) -> RESTResponseType:
|
3223
|
+
"""report_refinement
|
3224
|
+
|
3225
|
+
|
3226
|
+
:param report_copilot_refinement_payload: (required)
|
3227
|
+
:type report_copilot_refinement_payload: ReportCopilotRefinementPayload
|
3228
|
+
:param q_answer_api_key:
|
3229
|
+
:type q_answer_api_key: str
|
3230
|
+
:param _request_timeout: timeout setting for this request. If one
|
3231
|
+
number provided, it will be total request
|
3232
|
+
timeout. It can also be a pair (tuple) of
|
3233
|
+
(connection, read) timeouts.
|
3234
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3235
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3236
|
+
request; this effectively ignores the
|
3237
|
+
authentication in the spec for a single request.
|
3238
|
+
:type _request_auth: dict, optional
|
3239
|
+
:param _content_type: force content-type for the request.
|
3240
|
+
:type _content_type: str, Optional
|
3241
|
+
:param _headers: set to override the headers for a single
|
3242
|
+
request; this effectively ignores the headers
|
3243
|
+
in the spec for a single request.
|
3244
|
+
:type _headers: dict, optional
|
3245
|
+
:param _host_index: set to override the host_index for a single
|
3246
|
+
request; this effectively ignores the host_index
|
3247
|
+
in the spec for a single request.
|
3248
|
+
:type _host_index: int, optional
|
3249
|
+
:return: Returns the result object.
|
3250
|
+
""" # noqa: E501
|
3251
|
+
|
3252
|
+
_param = self._report_refinement_serialize(
|
3253
|
+
report_copilot_refinement_payload=report_copilot_refinement_payload,
|
3254
|
+
q_answer_api_key=q_answer_api_key,
|
3255
|
+
_request_auth=_request_auth,
|
3256
|
+
_content_type=_content_type,
|
3257
|
+
_headers=_headers,
|
3258
|
+
_host_index=_host_index
|
3259
|
+
)
|
3260
|
+
|
3261
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3262
|
+
'200': "ReportCopilotRefinementResponse",
|
3263
|
+
}
|
3264
|
+
response_data = self.api_client.call_api(
|
3265
|
+
*_param,
|
3266
|
+
_request_timeout=_request_timeout
|
3267
|
+
)
|
3268
|
+
return response_data.response
|
3269
|
+
|
3270
|
+
|
3271
|
+
def _report_refinement_serialize(
|
3272
|
+
self,
|
3273
|
+
report_copilot_refinement_payload,
|
3274
|
+
q_answer_api_key,
|
3275
|
+
_request_auth,
|
3276
|
+
_content_type,
|
3277
|
+
_headers,
|
3278
|
+
_host_index,
|
3279
|
+
) -> RequestSerialized:
|
3280
|
+
|
3281
|
+
_host = None
|
3282
|
+
|
3283
|
+
_collection_formats: Dict[str, str] = {
|
3284
|
+
}
|
3285
|
+
|
3286
|
+
_path_params: Dict[str, str] = {}
|
3287
|
+
_query_params: List[Tuple[str, str]] = []
|
3288
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
3289
|
+
_form_params: List[Tuple[str, str]] = []
|
3290
|
+
_files: Dict[
|
3291
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
3292
|
+
] = {}
|
3293
|
+
_body_params: Optional[bytes] = None
|
3294
|
+
|
3295
|
+
# process the path parameters
|
3296
|
+
# process the query parameters
|
3297
|
+
# process the header parameters
|
3298
|
+
if q_answer_api_key is not None:
|
3299
|
+
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
3300
|
+
# process the form parameters
|
3301
|
+
# process the body parameter
|
3302
|
+
if report_copilot_refinement_payload is not None:
|
3303
|
+
_body_params = report_copilot_refinement_payload
|
3304
|
+
|
3305
|
+
|
3306
|
+
# set the HTTP header `Accept`
|
3307
|
+
if 'Accept' not in _header_params:
|
3308
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
3309
|
+
[
|
3310
|
+
'*/*'
|
3311
|
+
]
|
3312
|
+
)
|
3313
|
+
|
3314
|
+
# set the HTTP header `Content-Type`
|
3315
|
+
if _content_type:
|
3316
|
+
_header_params['Content-Type'] = _content_type
|
3317
|
+
else:
|
3318
|
+
_default_content_type = (
|
3319
|
+
self.api_client.select_header_content_type(
|
3320
|
+
[
|
3321
|
+
'application/json'
|
3322
|
+
]
|
3323
|
+
)
|
3324
|
+
)
|
3325
|
+
if _default_content_type is not None:
|
3326
|
+
_header_params['Content-Type'] = _default_content_type
|
3327
|
+
|
3328
|
+
# authentication setting
|
3329
|
+
_auth_settings: List[str] = [
|
3330
|
+
'QAnswer-Api-Key',
|
3331
|
+
'Bearer'
|
3332
|
+
]
|
3333
|
+
|
3334
|
+
return self.api_client.param_serialize(
|
3335
|
+
method='POST',
|
3336
|
+
resource_path='/api/tasks/report-copilot/report-refinement',
|
3337
|
+
path_params=_path_params,
|
3338
|
+
query_params=_query_params,
|
3339
|
+
header_params=_header_params,
|
3340
|
+
body=_body_params,
|
3341
|
+
post_params=_form_params,
|
3342
|
+
files=_files,
|
3343
|
+
auth_settings=_auth_settings,
|
3344
|
+
collection_formats=_collection_formats,
|
3345
|
+
_host=_host,
|
3346
|
+
_request_auth=_request_auth
|
3347
|
+
)
|
3348
|
+
|
3349
|
+
|
3350
|
+
|
3351
|
+
|
3352
|
+
@validate_call
|
3353
|
+
def update_report_template(
|
3354
|
+
self,
|
3355
|
+
template_id: StrictInt,
|
3356
|
+
report_template_update_payload: ReportTemplateUpdatePayload,
|
3357
|
+
q_answer_api_key: Optional[StrictStr] = None,
|
3358
|
+
_request_timeout: Union[
|
3359
|
+
None,
|
3360
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3361
|
+
Tuple[
|
3362
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3363
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3364
|
+
]
|
3365
|
+
] = None,
|
3366
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3367
|
+
_content_type: Optional[StrictStr] = None,
|
3368
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3369
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3370
|
+
) -> ReportTemplate:
|
3371
|
+
"""Update a report template
|
3372
|
+
|
3373
|
+
|
3374
|
+
:param template_id: (required)
|
3375
|
+
:type template_id: int
|
3376
|
+
:param report_template_update_payload: (required)
|
3377
|
+
:type report_template_update_payload: ReportTemplateUpdatePayload
|
3378
|
+
:param q_answer_api_key:
|
3379
|
+
:type q_answer_api_key: str
|
3380
|
+
:param _request_timeout: timeout setting for this request. If one
|
3381
|
+
number provided, it will be total request
|
3382
|
+
timeout. It can also be a pair (tuple) of
|
3383
|
+
(connection, read) timeouts.
|
3384
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3385
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3386
|
+
request; this effectively ignores the
|
3387
|
+
authentication in the spec for a single request.
|
3388
|
+
:type _request_auth: dict, optional
|
3389
|
+
:param _content_type: force content-type for the request.
|
3390
|
+
:type _content_type: str, Optional
|
3391
|
+
:param _headers: set to override the headers for a single
|
3392
|
+
request; this effectively ignores the headers
|
3393
|
+
in the spec for a single request.
|
3394
|
+
:type _headers: dict, optional
|
3395
|
+
:param _host_index: set to override the host_index for a single
|
3396
|
+
request; this effectively ignores the host_index
|
3397
|
+
in the spec for a single request.
|
3398
|
+
:type _host_index: int, optional
|
3399
|
+
:return: Returns the result object.
|
3400
|
+
""" # noqa: E501
|
3401
|
+
|
3402
|
+
_param = self._update_report_template_serialize(
|
3403
|
+
template_id=template_id,
|
3404
|
+
report_template_update_payload=report_template_update_payload,
|
3405
|
+
q_answer_api_key=q_answer_api_key,
|
3406
|
+
_request_auth=_request_auth,
|
3407
|
+
_content_type=_content_type,
|
3408
|
+
_headers=_headers,
|
3409
|
+
_host_index=_host_index
|
3410
|
+
)
|
3411
|
+
|
3412
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3413
|
+
'200': "ReportTemplate",
|
3414
|
+
}
|
3415
|
+
response_data = self.api_client.call_api(
|
3416
|
+
*_param,
|
3417
|
+
_request_timeout=_request_timeout
|
3418
|
+
)
|
3419
|
+
response_data.read()
|
3420
|
+
return self.api_client.response_deserialize(
|
3421
|
+
response_data=response_data,
|
3422
|
+
response_types_map=_response_types_map,
|
3423
|
+
).data
|
3424
|
+
|
3425
|
+
|
3426
|
+
@validate_call
|
3427
|
+
def update_report_template_with_http_info(
|
3428
|
+
self,
|
3429
|
+
template_id: StrictInt,
|
3430
|
+
report_template_update_payload: ReportTemplateUpdatePayload,
|
3431
|
+
q_answer_api_key: Optional[StrictStr] = None,
|
3432
|
+
_request_timeout: Union[
|
3433
|
+
None,
|
3434
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3435
|
+
Tuple[
|
3436
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3437
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3438
|
+
]
|
3439
|
+
] = None,
|
3440
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3441
|
+
_content_type: Optional[StrictStr] = None,
|
3442
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3443
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3444
|
+
) -> ApiResponse[ReportTemplate]:
|
3445
|
+
"""Update a report template
|
3446
|
+
|
3447
|
+
|
3448
|
+
:param template_id: (required)
|
3449
|
+
:type template_id: int
|
3450
|
+
:param report_template_update_payload: (required)
|
3451
|
+
:type report_template_update_payload: ReportTemplateUpdatePayload
|
3452
|
+
:param q_answer_api_key:
|
3453
|
+
:type q_answer_api_key: str
|
3454
|
+
:param _request_timeout: timeout setting for this request. If one
|
3455
|
+
number provided, it will be total request
|
3456
|
+
timeout. It can also be a pair (tuple) of
|
3457
|
+
(connection, read) timeouts.
|
3458
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3459
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3460
|
+
request; this effectively ignores the
|
3461
|
+
authentication in the spec for a single request.
|
3462
|
+
:type _request_auth: dict, optional
|
3463
|
+
:param _content_type: force content-type for the request.
|
3464
|
+
:type _content_type: str, Optional
|
3465
|
+
:param _headers: set to override the headers for a single
|
3466
|
+
request; this effectively ignores the headers
|
3467
|
+
in the spec for a single request.
|
3468
|
+
:type _headers: dict, optional
|
3469
|
+
:param _host_index: set to override the host_index for a single
|
3470
|
+
request; this effectively ignores the host_index
|
3471
|
+
in the spec for a single request.
|
3472
|
+
:type _host_index: int, optional
|
3473
|
+
:return: Returns the result object.
|
3474
|
+
""" # noqa: E501
|
3475
|
+
|
3476
|
+
_param = self._update_report_template_serialize(
|
3477
|
+
template_id=template_id,
|
3478
|
+
report_template_update_payload=report_template_update_payload,
|
3479
|
+
q_answer_api_key=q_answer_api_key,
|
3480
|
+
_request_auth=_request_auth,
|
3481
|
+
_content_type=_content_type,
|
3482
|
+
_headers=_headers,
|
3483
|
+
_host_index=_host_index
|
3484
|
+
)
|
3485
|
+
|
3486
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3487
|
+
'200': "ReportTemplate",
|
3488
|
+
}
|
3489
|
+
response_data = self.api_client.call_api(
|
3490
|
+
*_param,
|
3491
|
+
_request_timeout=_request_timeout
|
3492
|
+
)
|
3493
|
+
response_data.read()
|
3494
|
+
return self.api_client.response_deserialize(
|
3495
|
+
response_data=response_data,
|
3496
|
+
response_types_map=_response_types_map,
|
3497
|
+
)
|
3498
|
+
|
3499
|
+
|
3500
|
+
@validate_call
|
3501
|
+
def update_report_template_without_preload_content(
|
3502
|
+
self,
|
3503
|
+
template_id: StrictInt,
|
3504
|
+
report_template_update_payload: ReportTemplateUpdatePayload,
|
2865
3505
|
q_answer_api_key: Optional[StrictStr] = None,
|
2866
3506
|
_request_timeout: Union[
|
2867
3507
|
None,
|
@@ -2876,11 +3516,13 @@ class TaskReportCopilotApi:
|
|
2876
3516
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2877
3517
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2878
3518
|
) -> RESTResponseType:
|
2879
|
-
"""
|
3519
|
+
"""Update a report template
|
2880
3520
|
|
2881
3521
|
|
2882
|
-
:param
|
2883
|
-
:type
|
3522
|
+
:param template_id: (required)
|
3523
|
+
:type template_id: int
|
3524
|
+
:param report_template_update_payload: (required)
|
3525
|
+
:type report_template_update_payload: ReportTemplateUpdatePayload
|
2884
3526
|
:param q_answer_api_key:
|
2885
3527
|
:type q_answer_api_key: str
|
2886
3528
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2905,8 +3547,9 @@ class TaskReportCopilotApi:
|
|
2905
3547
|
:return: Returns the result object.
|
2906
3548
|
""" # noqa: E501
|
2907
3549
|
|
2908
|
-
_param = self.
|
2909
|
-
|
3550
|
+
_param = self._update_report_template_serialize(
|
3551
|
+
template_id=template_id,
|
3552
|
+
report_template_update_payload=report_template_update_payload,
|
2910
3553
|
q_answer_api_key=q_answer_api_key,
|
2911
3554
|
_request_auth=_request_auth,
|
2912
3555
|
_content_type=_content_type,
|
@@ -2915,7 +3558,7 @@ class TaskReportCopilotApi:
|
|
2915
3558
|
)
|
2916
3559
|
|
2917
3560
|
_response_types_map: Dict[str, Optional[str]] = {
|
2918
|
-
'200': "
|
3561
|
+
'200': "ReportTemplate",
|
2919
3562
|
}
|
2920
3563
|
response_data = self.api_client.call_api(
|
2921
3564
|
*_param,
|
@@ -2924,9 +3567,10 @@ class TaskReportCopilotApi:
|
|
2924
3567
|
return response_data.response
|
2925
3568
|
|
2926
3569
|
|
2927
|
-
def
|
3570
|
+
def _update_report_template_serialize(
|
2928
3571
|
self,
|
2929
|
-
|
3572
|
+
template_id,
|
3573
|
+
report_template_update_payload,
|
2930
3574
|
q_answer_api_key,
|
2931
3575
|
_request_auth,
|
2932
3576
|
_content_type,
|
@@ -2949,14 +3593,16 @@ class TaskReportCopilotApi:
|
|
2949
3593
|
_body_params: Optional[bytes] = None
|
2950
3594
|
|
2951
3595
|
# process the path parameters
|
3596
|
+
if template_id is not None:
|
3597
|
+
_path_params['templateId'] = template_id
|
2952
3598
|
# process the query parameters
|
2953
3599
|
# process the header parameters
|
2954
3600
|
if q_answer_api_key is not None:
|
2955
3601
|
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
2956
3602
|
# process the form parameters
|
2957
3603
|
# process the body parameter
|
2958
|
-
if
|
2959
|
-
_body_params =
|
3604
|
+
if report_template_update_payload is not None:
|
3605
|
+
_body_params = report_template_update_payload
|
2960
3606
|
|
2961
3607
|
|
2962
3608
|
# set the HTTP header `Accept`
|
@@ -2988,8 +3634,8 @@ class TaskReportCopilotApi:
|
|
2988
3634
|
]
|
2989
3635
|
|
2990
3636
|
return self.api_client.param_serialize(
|
2991
|
-
method='
|
2992
|
-
resource_path='/api/tasks/report-copilot/
|
3637
|
+
method='PUT',
|
3638
|
+
resource_path='/api/tasks/report-copilot/templates/{templateId}',
|
2993
3639
|
path_params=_path_params,
|
2994
3640
|
query_params=_query_params,
|
2995
3641
|
header_params=_header_params,
|
@@ -3006,10 +3652,13 @@ class TaskReportCopilotApi:
|
|
3006
3652
|
|
3007
3653
|
|
3008
3654
|
@validate_call
|
3009
|
-
def
|
3655
|
+
def update_slot_of_template(
|
3010
3656
|
self,
|
3657
|
+
username: StrictStr,
|
3658
|
+
dataset: StrictStr,
|
3011
3659
|
template_id: StrictInt,
|
3012
|
-
|
3660
|
+
slot_id: StrictInt,
|
3661
|
+
slot_update: SlotUpdate,
|
3013
3662
|
q_answer_api_key: Optional[StrictStr] = None,
|
3014
3663
|
_request_timeout: Union[
|
3015
3664
|
None,
|
@@ -3023,14 +3672,20 @@ class TaskReportCopilotApi:
|
|
3023
3672
|
_content_type: Optional[StrictStr] = None,
|
3024
3673
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3025
3674
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3026
|
-
) ->
|
3027
|
-
"""Update a report template
|
3675
|
+
) -> Slot:
|
3676
|
+
"""Update a specific slot of a report template
|
3028
3677
|
|
3029
3678
|
|
3679
|
+
:param username: (required)
|
3680
|
+
:type username: str
|
3681
|
+
:param dataset: (required)
|
3682
|
+
:type dataset: str
|
3030
3683
|
:param template_id: (required)
|
3031
3684
|
:type template_id: int
|
3032
|
-
:param
|
3033
|
-
:type
|
3685
|
+
:param slot_id: (required)
|
3686
|
+
:type slot_id: int
|
3687
|
+
:param slot_update: (required)
|
3688
|
+
:type slot_update: SlotUpdate
|
3034
3689
|
:param q_answer_api_key:
|
3035
3690
|
:type q_answer_api_key: str
|
3036
3691
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -3055,9 +3710,12 @@ class TaskReportCopilotApi:
|
|
3055
3710
|
:return: Returns the result object.
|
3056
3711
|
""" # noqa: E501
|
3057
3712
|
|
3058
|
-
_param = self.
|
3713
|
+
_param = self._update_slot_of_template_serialize(
|
3714
|
+
username=username,
|
3715
|
+
dataset=dataset,
|
3059
3716
|
template_id=template_id,
|
3060
|
-
|
3717
|
+
slot_id=slot_id,
|
3718
|
+
slot_update=slot_update,
|
3061
3719
|
q_answer_api_key=q_answer_api_key,
|
3062
3720
|
_request_auth=_request_auth,
|
3063
3721
|
_content_type=_content_type,
|
@@ -3066,7 +3724,7 @@ class TaskReportCopilotApi:
|
|
3066
3724
|
)
|
3067
3725
|
|
3068
3726
|
_response_types_map: Dict[str, Optional[str]] = {
|
3069
|
-
'200': "
|
3727
|
+
'200': "Slot",
|
3070
3728
|
}
|
3071
3729
|
response_data = self.api_client.call_api(
|
3072
3730
|
*_param,
|
@@ -3080,10 +3738,13 @@ class TaskReportCopilotApi:
|
|
3080
3738
|
|
3081
3739
|
|
3082
3740
|
@validate_call
|
3083
|
-
def
|
3741
|
+
def update_slot_of_template_with_http_info(
|
3084
3742
|
self,
|
3743
|
+
username: StrictStr,
|
3744
|
+
dataset: StrictStr,
|
3085
3745
|
template_id: StrictInt,
|
3086
|
-
|
3746
|
+
slot_id: StrictInt,
|
3747
|
+
slot_update: SlotUpdate,
|
3087
3748
|
q_answer_api_key: Optional[StrictStr] = None,
|
3088
3749
|
_request_timeout: Union[
|
3089
3750
|
None,
|
@@ -3097,14 +3758,20 @@ class TaskReportCopilotApi:
|
|
3097
3758
|
_content_type: Optional[StrictStr] = None,
|
3098
3759
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3099
3760
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3100
|
-
) -> ApiResponse[
|
3101
|
-
"""Update a report template
|
3761
|
+
) -> ApiResponse[Slot]:
|
3762
|
+
"""Update a specific slot of a report template
|
3102
3763
|
|
3103
3764
|
|
3765
|
+
:param username: (required)
|
3766
|
+
:type username: str
|
3767
|
+
:param dataset: (required)
|
3768
|
+
:type dataset: str
|
3104
3769
|
:param template_id: (required)
|
3105
3770
|
:type template_id: int
|
3106
|
-
:param
|
3107
|
-
:type
|
3771
|
+
:param slot_id: (required)
|
3772
|
+
:type slot_id: int
|
3773
|
+
:param slot_update: (required)
|
3774
|
+
:type slot_update: SlotUpdate
|
3108
3775
|
:param q_answer_api_key:
|
3109
3776
|
:type q_answer_api_key: str
|
3110
3777
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -3129,9 +3796,12 @@ class TaskReportCopilotApi:
|
|
3129
3796
|
:return: Returns the result object.
|
3130
3797
|
""" # noqa: E501
|
3131
3798
|
|
3132
|
-
_param = self.
|
3799
|
+
_param = self._update_slot_of_template_serialize(
|
3800
|
+
username=username,
|
3801
|
+
dataset=dataset,
|
3133
3802
|
template_id=template_id,
|
3134
|
-
|
3803
|
+
slot_id=slot_id,
|
3804
|
+
slot_update=slot_update,
|
3135
3805
|
q_answer_api_key=q_answer_api_key,
|
3136
3806
|
_request_auth=_request_auth,
|
3137
3807
|
_content_type=_content_type,
|
@@ -3140,7 +3810,7 @@ class TaskReportCopilotApi:
|
|
3140
3810
|
)
|
3141
3811
|
|
3142
3812
|
_response_types_map: Dict[str, Optional[str]] = {
|
3143
|
-
'200': "
|
3813
|
+
'200': "Slot",
|
3144
3814
|
}
|
3145
3815
|
response_data = self.api_client.call_api(
|
3146
3816
|
*_param,
|
@@ -3154,10 +3824,13 @@ class TaskReportCopilotApi:
|
|
3154
3824
|
|
3155
3825
|
|
3156
3826
|
@validate_call
|
3157
|
-
def
|
3827
|
+
def update_slot_of_template_without_preload_content(
|
3158
3828
|
self,
|
3829
|
+
username: StrictStr,
|
3830
|
+
dataset: StrictStr,
|
3159
3831
|
template_id: StrictInt,
|
3160
|
-
|
3832
|
+
slot_id: StrictInt,
|
3833
|
+
slot_update: SlotUpdate,
|
3161
3834
|
q_answer_api_key: Optional[StrictStr] = None,
|
3162
3835
|
_request_timeout: Union[
|
3163
3836
|
None,
|
@@ -3172,13 +3845,19 @@ class TaskReportCopilotApi:
|
|
3172
3845
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3173
3846
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3174
3847
|
) -> RESTResponseType:
|
3175
|
-
"""Update a report template
|
3848
|
+
"""Update a specific slot of a report template
|
3176
3849
|
|
3177
3850
|
|
3851
|
+
:param username: (required)
|
3852
|
+
:type username: str
|
3853
|
+
:param dataset: (required)
|
3854
|
+
:type dataset: str
|
3178
3855
|
:param template_id: (required)
|
3179
3856
|
:type template_id: int
|
3180
|
-
:param
|
3181
|
-
:type
|
3857
|
+
:param slot_id: (required)
|
3858
|
+
:type slot_id: int
|
3859
|
+
:param slot_update: (required)
|
3860
|
+
:type slot_update: SlotUpdate
|
3182
3861
|
:param q_answer_api_key:
|
3183
3862
|
:type q_answer_api_key: str
|
3184
3863
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -3203,9 +3882,12 @@ class TaskReportCopilotApi:
|
|
3203
3882
|
:return: Returns the result object.
|
3204
3883
|
""" # noqa: E501
|
3205
3884
|
|
3206
|
-
_param = self.
|
3885
|
+
_param = self._update_slot_of_template_serialize(
|
3886
|
+
username=username,
|
3887
|
+
dataset=dataset,
|
3207
3888
|
template_id=template_id,
|
3208
|
-
|
3889
|
+
slot_id=slot_id,
|
3890
|
+
slot_update=slot_update,
|
3209
3891
|
q_answer_api_key=q_answer_api_key,
|
3210
3892
|
_request_auth=_request_auth,
|
3211
3893
|
_content_type=_content_type,
|
@@ -3214,7 +3896,7 @@ class TaskReportCopilotApi:
|
|
3214
3896
|
)
|
3215
3897
|
|
3216
3898
|
_response_types_map: Dict[str, Optional[str]] = {
|
3217
|
-
'200': "
|
3899
|
+
'200': "Slot",
|
3218
3900
|
}
|
3219
3901
|
response_data = self.api_client.call_api(
|
3220
3902
|
*_param,
|
@@ -3223,10 +3905,13 @@ class TaskReportCopilotApi:
|
|
3223
3905
|
return response_data.response
|
3224
3906
|
|
3225
3907
|
|
3226
|
-
def
|
3908
|
+
def _update_slot_of_template_serialize(
|
3227
3909
|
self,
|
3910
|
+
username,
|
3911
|
+
dataset,
|
3228
3912
|
template_id,
|
3229
|
-
|
3913
|
+
slot_id,
|
3914
|
+
slot_update,
|
3230
3915
|
q_answer_api_key,
|
3231
3916
|
_request_auth,
|
3232
3917
|
_content_type,
|
@@ -3251,14 +3936,24 @@ class TaskReportCopilotApi:
|
|
3251
3936
|
# process the path parameters
|
3252
3937
|
if template_id is not None:
|
3253
3938
|
_path_params['templateId'] = template_id
|
3939
|
+
if slot_id is not None:
|
3940
|
+
_path_params['slotId'] = slot_id
|
3254
3941
|
# process the query parameters
|
3942
|
+
if username is not None:
|
3943
|
+
|
3944
|
+
_query_params.append(('username', username))
|
3945
|
+
|
3946
|
+
if dataset is not None:
|
3947
|
+
|
3948
|
+
_query_params.append(('dataset', dataset))
|
3949
|
+
|
3255
3950
|
# process the header parameters
|
3256
3951
|
if q_answer_api_key is not None:
|
3257
3952
|
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
3258
3953
|
# process the form parameters
|
3259
3954
|
# process the body parameter
|
3260
|
-
if
|
3261
|
-
_body_params =
|
3955
|
+
if slot_update is not None:
|
3956
|
+
_body_params = slot_update
|
3262
3957
|
|
3263
3958
|
|
3264
3959
|
# set the HTTP header `Accept`
|
@@ -3291,7 +3986,7 @@ class TaskReportCopilotApi:
|
|
3291
3986
|
|
3292
3987
|
return self.api_client.param_serialize(
|
3293
3988
|
method='PUT',
|
3294
|
-
resource_path='/api/tasks/report-copilot/templates/{templateId}',
|
3989
|
+
resource_path='/api/tasks/report-copilot/templates/{templateId}/slots/{slotId}',
|
3295
3990
|
path_params=_path_params,
|
3296
3991
|
query_params=_query_params,
|
3297
3992
|
header_params=_header_params,
|