qanswer_sdk 3.1212.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.1212.0.dist-info → qanswer_sdk-3.1244.0.dist-info}/METADATA +2 -2
- {qanswer_sdk-3.1212.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.1212.0.dist-info → qanswer_sdk-3.1244.0.dist-info}/WHEEL +0 -0
qanswer_sdk/api/chatbot_api.py
CHANGED
@@ -18,11 +18,10 @@ from typing_extensions import Annotated
|
|
18
18
|
|
19
19
|
from pydantic import StrictStr
|
20
20
|
from typing import Optional
|
21
|
-
from qanswer_sdk.models.available_endpoints_response import AvailableEndpointsResponse
|
22
21
|
from qanswer_sdk.models.chatbot_chat_payload import ChatbotChatPayload
|
23
22
|
from qanswer_sdk.models.chatbot_response import ChatbotResponse
|
24
|
-
from qanswer_sdk.models.
|
25
|
-
from qanswer_sdk.models.
|
23
|
+
from qanswer_sdk.models.chatbot_setting_dto import ChatbotSettingDto
|
24
|
+
from qanswer_sdk.models.chatbot_setting_request import ChatbotSettingRequest
|
26
25
|
|
27
26
|
from qanswer_sdk.api_client import ApiClient, RequestSerialized
|
28
27
|
from qanswer_sdk.api_response import ApiResponse
|
@@ -315,8 +314,9 @@ class ChatbotApi:
|
|
315
314
|
|
316
315
|
|
317
316
|
@validate_call
|
318
|
-
def
|
317
|
+
def get_chatbot_setting(
|
319
318
|
self,
|
319
|
+
conversation_id: Optional[StrictStr] = None,
|
320
320
|
_request_timeout: Union[
|
321
321
|
None,
|
322
322
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -329,10 +329,12 @@ class ChatbotApi:
|
|
329
329
|
_content_type: Optional[StrictStr] = None,
|
330
330
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
331
331
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
332
|
-
) ->
|
333
|
-
"""
|
332
|
+
) -> ChatbotSettingDto:
|
333
|
+
"""Retrieves the settings of the general chatbot.
|
334
334
|
|
335
335
|
|
336
|
+
:param conversation_id:
|
337
|
+
:type conversation_id: str
|
336
338
|
:param _request_timeout: timeout setting for this request. If one
|
337
339
|
number provided, it will be total request
|
338
340
|
timeout. It can also be a pair (tuple) of
|
@@ -355,7 +357,8 @@ class ChatbotApi:
|
|
355
357
|
:return: Returns the result object.
|
356
358
|
""" # noqa: E501
|
357
359
|
|
358
|
-
_param = self.
|
360
|
+
_param = self._get_chatbot_setting_serialize(
|
361
|
+
conversation_id=conversation_id,
|
359
362
|
_request_auth=_request_auth,
|
360
363
|
_content_type=_content_type,
|
361
364
|
_headers=_headers,
|
@@ -363,7 +366,7 @@ class ChatbotApi:
|
|
363
366
|
)
|
364
367
|
|
365
368
|
_response_types_map: Dict[str, Optional[str]] = {
|
366
|
-
'200': "
|
369
|
+
'200': "ChatbotSettingDto",
|
367
370
|
}
|
368
371
|
response_data = self.api_client.call_api(
|
369
372
|
*_param,
|
@@ -377,8 +380,9 @@ class ChatbotApi:
|
|
377
380
|
|
378
381
|
|
379
382
|
@validate_call
|
380
|
-
def
|
383
|
+
def get_chatbot_setting_with_http_info(
|
381
384
|
self,
|
385
|
+
conversation_id: Optional[StrictStr] = None,
|
382
386
|
_request_timeout: Union[
|
383
387
|
None,
|
384
388
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -391,10 +395,12 @@ class ChatbotApi:
|
|
391
395
|
_content_type: Optional[StrictStr] = None,
|
392
396
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
393
397
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
394
|
-
) -> ApiResponse[
|
395
|
-
"""
|
398
|
+
) -> ApiResponse[ChatbotSettingDto]:
|
399
|
+
"""Retrieves the settings of the general chatbot.
|
396
400
|
|
397
401
|
|
402
|
+
:param conversation_id:
|
403
|
+
:type conversation_id: str
|
398
404
|
:param _request_timeout: timeout setting for this request. If one
|
399
405
|
number provided, it will be total request
|
400
406
|
timeout. It can also be a pair (tuple) of
|
@@ -417,7 +423,8 @@ class ChatbotApi:
|
|
417
423
|
:return: Returns the result object.
|
418
424
|
""" # noqa: E501
|
419
425
|
|
420
|
-
_param = self.
|
426
|
+
_param = self._get_chatbot_setting_serialize(
|
427
|
+
conversation_id=conversation_id,
|
421
428
|
_request_auth=_request_auth,
|
422
429
|
_content_type=_content_type,
|
423
430
|
_headers=_headers,
|
@@ -425,7 +432,7 @@ class ChatbotApi:
|
|
425
432
|
)
|
426
433
|
|
427
434
|
_response_types_map: Dict[str, Optional[str]] = {
|
428
|
-
'200': "
|
435
|
+
'200': "ChatbotSettingDto",
|
429
436
|
}
|
430
437
|
response_data = self.api_client.call_api(
|
431
438
|
*_param,
|
@@ -439,8 +446,9 @@ class ChatbotApi:
|
|
439
446
|
|
440
447
|
|
441
448
|
@validate_call
|
442
|
-
def
|
449
|
+
def get_chatbot_setting_without_preload_content(
|
443
450
|
self,
|
451
|
+
conversation_id: Optional[StrictStr] = None,
|
444
452
|
_request_timeout: Union[
|
445
453
|
None,
|
446
454
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -454,9 +462,11 @@ class ChatbotApi:
|
|
454
462
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
455
463
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
456
464
|
) -> RESTResponseType:
|
457
|
-
"""
|
465
|
+
"""Retrieves the settings of the general chatbot.
|
458
466
|
|
459
467
|
|
468
|
+
:param conversation_id:
|
469
|
+
:type conversation_id: str
|
460
470
|
:param _request_timeout: timeout setting for this request. If one
|
461
471
|
number provided, it will be total request
|
462
472
|
timeout. It can also be a pair (tuple) of
|
@@ -479,7 +489,8 @@ class ChatbotApi:
|
|
479
489
|
:return: Returns the result object.
|
480
490
|
""" # noqa: E501
|
481
491
|
|
482
|
-
_param = self.
|
492
|
+
_param = self._get_chatbot_setting_serialize(
|
493
|
+
conversation_id=conversation_id,
|
483
494
|
_request_auth=_request_auth,
|
484
495
|
_content_type=_content_type,
|
485
496
|
_headers=_headers,
|
@@ -487,7 +498,7 @@ class ChatbotApi:
|
|
487
498
|
)
|
488
499
|
|
489
500
|
_response_types_map: Dict[str, Optional[str]] = {
|
490
|
-
'200': "
|
501
|
+
'200': "ChatbotSettingDto",
|
491
502
|
}
|
492
503
|
response_data = self.api_client.call_api(
|
493
504
|
*_param,
|
@@ -496,8 +507,9 @@ class ChatbotApi:
|
|
496
507
|
return response_data.response
|
497
508
|
|
498
509
|
|
499
|
-
def
|
510
|
+
def _get_chatbot_setting_serialize(
|
500
511
|
self,
|
512
|
+
conversation_id,
|
501
513
|
_request_auth,
|
502
514
|
_content_type,
|
503
515
|
_headers,
|
@@ -520,6 +532,10 @@ class ChatbotApi:
|
|
520
532
|
|
521
533
|
# process the path parameters
|
522
534
|
# process the query parameters
|
535
|
+
if conversation_id is not None:
|
536
|
+
|
537
|
+
_query_params.append(('conversationId', conversation_id))
|
538
|
+
|
523
539
|
# process the header parameters
|
524
540
|
# process the form parameters
|
525
541
|
# process the body parameter
|
@@ -542,7 +558,7 @@ class ChatbotApi:
|
|
542
558
|
|
543
559
|
return self.api_client.param_serialize(
|
544
560
|
method='GET',
|
545
|
-
resource_path='/api/chatbot/
|
561
|
+
resource_path='/api/chatbot/settings',
|
546
562
|
path_params=_path_params,
|
547
563
|
query_params=_query_params,
|
548
564
|
header_params=_header_params,
|
@@ -559,9 +575,8 @@ class ChatbotApi:
|
|
559
575
|
|
560
576
|
|
561
577
|
@validate_call
|
562
|
-
def
|
578
|
+
def reset_chat_bot_settings(
|
563
579
|
self,
|
564
|
-
conversation_id: Optional[StrictStr] = None,
|
565
580
|
_request_timeout: Union[
|
566
581
|
None,
|
567
582
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -574,12 +589,10 @@ class ChatbotApi:
|
|
574
589
|
_content_type: Optional[StrictStr] = None,
|
575
590
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
576
591
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
577
|
-
) ->
|
578
|
-
"""
|
592
|
+
) -> None:
|
593
|
+
"""Resets the settings of the general chatbot.
|
579
594
|
|
580
595
|
|
581
|
-
:param conversation_id:
|
582
|
-
:type conversation_id: str
|
583
596
|
:param _request_timeout: timeout setting for this request. If one
|
584
597
|
number provided, it will be total request
|
585
598
|
timeout. It can also be a pair (tuple) of
|
@@ -602,8 +615,7 @@ class ChatbotApi:
|
|
602
615
|
:return: Returns the result object.
|
603
616
|
""" # noqa: E501
|
604
617
|
|
605
|
-
_param = self.
|
606
|
-
conversation_id=conversation_id,
|
618
|
+
_param = self._reset_chat_bot_settings_serialize(
|
607
619
|
_request_auth=_request_auth,
|
608
620
|
_content_type=_content_type,
|
609
621
|
_headers=_headers,
|
@@ -611,7 +623,7 @@ class ChatbotApi:
|
|
611
623
|
)
|
612
624
|
|
613
625
|
_response_types_map: Dict[str, Optional[str]] = {
|
614
|
-
'200':
|
626
|
+
'200': None,
|
615
627
|
}
|
616
628
|
response_data = self.api_client.call_api(
|
617
629
|
*_param,
|
@@ -625,9 +637,8 @@ class ChatbotApi:
|
|
625
637
|
|
626
638
|
|
627
639
|
@validate_call
|
628
|
-
def
|
640
|
+
def reset_chat_bot_settings_with_http_info(
|
629
641
|
self,
|
630
|
-
conversation_id: Optional[StrictStr] = None,
|
631
642
|
_request_timeout: Union[
|
632
643
|
None,
|
633
644
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -640,12 +651,10 @@ class ChatbotApi:
|
|
640
651
|
_content_type: Optional[StrictStr] = None,
|
641
652
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
642
653
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
643
|
-
) -> ApiResponse[
|
644
|
-
"""
|
654
|
+
) -> ApiResponse[None]:
|
655
|
+
"""Resets the settings of the general chatbot.
|
645
656
|
|
646
657
|
|
647
|
-
:param conversation_id:
|
648
|
-
:type conversation_id: str
|
649
658
|
:param _request_timeout: timeout setting for this request. If one
|
650
659
|
number provided, it will be total request
|
651
660
|
timeout. It can also be a pair (tuple) of
|
@@ -668,8 +677,7 @@ class ChatbotApi:
|
|
668
677
|
:return: Returns the result object.
|
669
678
|
""" # noqa: E501
|
670
679
|
|
671
|
-
_param = self.
|
672
|
-
conversation_id=conversation_id,
|
680
|
+
_param = self._reset_chat_bot_settings_serialize(
|
673
681
|
_request_auth=_request_auth,
|
674
682
|
_content_type=_content_type,
|
675
683
|
_headers=_headers,
|
@@ -677,7 +685,7 @@ class ChatbotApi:
|
|
677
685
|
)
|
678
686
|
|
679
687
|
_response_types_map: Dict[str, Optional[str]] = {
|
680
|
-
'200':
|
688
|
+
'200': None,
|
681
689
|
}
|
682
690
|
response_data = self.api_client.call_api(
|
683
691
|
*_param,
|
@@ -691,9 +699,8 @@ class ChatbotApi:
|
|
691
699
|
|
692
700
|
|
693
701
|
@validate_call
|
694
|
-
def
|
702
|
+
def reset_chat_bot_settings_without_preload_content(
|
695
703
|
self,
|
696
|
-
conversation_id: Optional[StrictStr] = None,
|
697
704
|
_request_timeout: Union[
|
698
705
|
None,
|
699
706
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -707,11 +714,9 @@ class ChatbotApi:
|
|
707
714
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
708
715
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
709
716
|
) -> RESTResponseType:
|
710
|
-
"""
|
717
|
+
"""Resets the settings of the general chatbot.
|
711
718
|
|
712
719
|
|
713
|
-
:param conversation_id:
|
714
|
-
:type conversation_id: str
|
715
720
|
:param _request_timeout: timeout setting for this request. If one
|
716
721
|
number provided, it will be total request
|
717
722
|
timeout. It can also be a pair (tuple) of
|
@@ -734,8 +739,7 @@ class ChatbotApi:
|
|
734
739
|
:return: Returns the result object.
|
735
740
|
""" # noqa: E501
|
736
741
|
|
737
|
-
_param = self.
|
738
|
-
conversation_id=conversation_id,
|
742
|
+
_param = self._reset_chat_bot_settings_serialize(
|
739
743
|
_request_auth=_request_auth,
|
740
744
|
_content_type=_content_type,
|
741
745
|
_headers=_headers,
|
@@ -743,7 +747,7 @@ class ChatbotApi:
|
|
743
747
|
)
|
744
748
|
|
745
749
|
_response_types_map: Dict[str, Optional[str]] = {
|
746
|
-
'200':
|
750
|
+
'200': None,
|
747
751
|
}
|
748
752
|
response_data = self.api_client.call_api(
|
749
753
|
*_param,
|
@@ -752,9 +756,8 @@ class ChatbotApi:
|
|
752
756
|
return response_data.response
|
753
757
|
|
754
758
|
|
755
|
-
def
|
759
|
+
def _reset_chat_bot_settings_serialize(
|
756
760
|
self,
|
757
|
-
conversation_id,
|
758
761
|
_request_auth,
|
759
762
|
_content_type,
|
760
763
|
_headers,
|
@@ -777,22 +780,11 @@ class ChatbotApi:
|
|
777
780
|
|
778
781
|
# process the path parameters
|
779
782
|
# process the query parameters
|
780
|
-
if conversation_id is not None:
|
781
|
-
|
782
|
-
_query_params.append(('conversationId', conversation_id))
|
783
|
-
|
784
783
|
# process the header parameters
|
785
784
|
# process the form parameters
|
786
785
|
# process the body parameter
|
787
786
|
|
788
787
|
|
789
|
-
# set the HTTP header `Accept`
|
790
|
-
if 'Accept' not in _header_params:
|
791
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
792
|
-
[
|
793
|
-
'*/*'
|
794
|
-
]
|
795
|
-
)
|
796
788
|
|
797
789
|
|
798
790
|
# authentication setting
|
@@ -802,8 +794,8 @@ class ChatbotApi:
|
|
802
794
|
]
|
803
795
|
|
804
796
|
return self.api_client.param_serialize(
|
805
|
-
method='
|
806
|
-
resource_path='/api/chatbot/settings',
|
797
|
+
method='POST',
|
798
|
+
resource_path='/api/chatbot/settings/reset',
|
807
799
|
path_params=_path_params,
|
808
800
|
query_params=_query_params,
|
809
801
|
header_params=_header_params,
|
@@ -822,7 +814,7 @@ class ChatbotApi:
|
|
822
814
|
@validate_call
|
823
815
|
def update_chatbot_setting(
|
824
816
|
self,
|
825
|
-
|
817
|
+
chatbot_setting_request: ChatbotSettingRequest,
|
826
818
|
_request_timeout: Union[
|
827
819
|
None,
|
828
820
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -835,12 +827,12 @@ class ChatbotApi:
|
|
835
827
|
_content_type: Optional[StrictStr] = None,
|
836
828
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
837
829
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
838
|
-
) ->
|
830
|
+
) -> None:
|
839
831
|
"""Updates the settings of the general chatbot.
|
840
832
|
|
841
833
|
|
842
|
-
:param
|
843
|
-
:type
|
834
|
+
:param chatbot_setting_request: (required)
|
835
|
+
:type chatbot_setting_request: ChatbotSettingRequest
|
844
836
|
:param _request_timeout: timeout setting for this request. If one
|
845
837
|
number provided, it will be total request
|
846
838
|
timeout. It can also be a pair (tuple) of
|
@@ -864,7 +856,7 @@ class ChatbotApi:
|
|
864
856
|
""" # noqa: E501
|
865
857
|
|
866
858
|
_param = self._update_chatbot_setting_serialize(
|
867
|
-
|
859
|
+
chatbot_setting_request=chatbot_setting_request,
|
868
860
|
_request_auth=_request_auth,
|
869
861
|
_content_type=_content_type,
|
870
862
|
_headers=_headers,
|
@@ -872,7 +864,7 @@ class ChatbotApi:
|
|
872
864
|
)
|
873
865
|
|
874
866
|
_response_types_map: Dict[str, Optional[str]] = {
|
875
|
-
'200':
|
867
|
+
'200': None,
|
876
868
|
}
|
877
869
|
response_data = self.api_client.call_api(
|
878
870
|
*_param,
|
@@ -888,7 +880,7 @@ class ChatbotApi:
|
|
888
880
|
@validate_call
|
889
881
|
def update_chatbot_setting_with_http_info(
|
890
882
|
self,
|
891
|
-
|
883
|
+
chatbot_setting_request: ChatbotSettingRequest,
|
892
884
|
_request_timeout: Union[
|
893
885
|
None,
|
894
886
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -901,12 +893,12 @@ class ChatbotApi:
|
|
901
893
|
_content_type: Optional[StrictStr] = None,
|
902
894
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
903
895
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
904
|
-
) -> ApiResponse[
|
896
|
+
) -> ApiResponse[None]:
|
905
897
|
"""Updates the settings of the general chatbot.
|
906
898
|
|
907
899
|
|
908
|
-
:param
|
909
|
-
:type
|
900
|
+
:param chatbot_setting_request: (required)
|
901
|
+
:type chatbot_setting_request: ChatbotSettingRequest
|
910
902
|
:param _request_timeout: timeout setting for this request. If one
|
911
903
|
number provided, it will be total request
|
912
904
|
timeout. It can also be a pair (tuple) of
|
@@ -930,7 +922,7 @@ class ChatbotApi:
|
|
930
922
|
""" # noqa: E501
|
931
923
|
|
932
924
|
_param = self._update_chatbot_setting_serialize(
|
933
|
-
|
925
|
+
chatbot_setting_request=chatbot_setting_request,
|
934
926
|
_request_auth=_request_auth,
|
935
927
|
_content_type=_content_type,
|
936
928
|
_headers=_headers,
|
@@ -938,7 +930,7 @@ class ChatbotApi:
|
|
938
930
|
)
|
939
931
|
|
940
932
|
_response_types_map: Dict[str, Optional[str]] = {
|
941
|
-
'200':
|
933
|
+
'200': None,
|
942
934
|
}
|
943
935
|
response_data = self.api_client.call_api(
|
944
936
|
*_param,
|
@@ -954,7 +946,7 @@ class ChatbotApi:
|
|
954
946
|
@validate_call
|
955
947
|
def update_chatbot_setting_without_preload_content(
|
956
948
|
self,
|
957
|
-
|
949
|
+
chatbot_setting_request: ChatbotSettingRequest,
|
958
950
|
_request_timeout: Union[
|
959
951
|
None,
|
960
952
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -971,8 +963,8 @@ class ChatbotApi:
|
|
971
963
|
"""Updates the settings of the general chatbot.
|
972
964
|
|
973
965
|
|
974
|
-
:param
|
975
|
-
:type
|
966
|
+
:param chatbot_setting_request: (required)
|
967
|
+
:type chatbot_setting_request: ChatbotSettingRequest
|
976
968
|
:param _request_timeout: timeout setting for this request. If one
|
977
969
|
number provided, it will be total request
|
978
970
|
timeout. It can also be a pair (tuple) of
|
@@ -996,7 +988,7 @@ class ChatbotApi:
|
|
996
988
|
""" # noqa: E501
|
997
989
|
|
998
990
|
_param = self._update_chatbot_setting_serialize(
|
999
|
-
|
991
|
+
chatbot_setting_request=chatbot_setting_request,
|
1000
992
|
_request_auth=_request_auth,
|
1001
993
|
_content_type=_content_type,
|
1002
994
|
_headers=_headers,
|
@@ -1004,7 +996,7 @@ class ChatbotApi:
|
|
1004
996
|
)
|
1005
997
|
|
1006
998
|
_response_types_map: Dict[str, Optional[str]] = {
|
1007
|
-
'200':
|
999
|
+
'200': None,
|
1008
1000
|
}
|
1009
1001
|
response_data = self.api_client.call_api(
|
1010
1002
|
*_param,
|
@@ -1015,7 +1007,7 @@ class ChatbotApi:
|
|
1015
1007
|
|
1016
1008
|
def _update_chatbot_setting_serialize(
|
1017
1009
|
self,
|
1018
|
-
|
1010
|
+
chatbot_setting_request,
|
1019
1011
|
_request_auth,
|
1020
1012
|
_content_type,
|
1021
1013
|
_headers,
|
@@ -1041,17 +1033,10 @@ class ChatbotApi:
|
|
1041
1033
|
# process the header parameters
|
1042
1034
|
# process the form parameters
|
1043
1035
|
# process the body parameter
|
1044
|
-
if
|
1045
|
-
_body_params =
|
1036
|
+
if chatbot_setting_request is not None:
|
1037
|
+
_body_params = chatbot_setting_request
|
1046
1038
|
|
1047
1039
|
|
1048
|
-
# set the HTTP header `Accept`
|
1049
|
-
if 'Accept' not in _header_params:
|
1050
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
1051
|
-
[
|
1052
|
-
'*/*'
|
1053
|
-
]
|
1054
|
-
)
|
1055
1040
|
|
1056
1041
|
# set the HTTP header `Content-Type`
|
1057
1042
|
if _content_type:
|