|
32 | 32 | from freeclimb.model.call_list import CallList |
33 | 33 | from freeclimb.model.call_result import CallResult |
34 | 34 | from freeclimb.model.call_status import CallStatus |
| 35 | +from freeclimb.model.completion_request import CompletionRequest |
| 36 | +from freeclimb.model.completion_result import CompletionResult |
35 | 37 | from freeclimb.model.conference_list import ConferenceList |
36 | 38 | from freeclimb.model.conference_participant_list import ConferenceParticipantList |
37 | 39 | from freeclimb.model.conference_participant_result import ConferenceParticipantResult |
@@ -311,6 +313,69 @@ def __init__(self, api_client=None, account_id=None): |
311 | 313 | }, |
312 | 314 | api_client=api_client |
313 | 315 | ) |
| 316 | + self.create_knowledge_base_completion_endpoint = _Endpoint( |
| 317 | + settings={ |
| 318 | + 'response_type': (CompletionResult,), |
| 319 | + 'auth': [ |
| 320 | + 'fc' |
| 321 | + ], |
| 322 | + 'endpoint_path': '/Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion', |
| 323 | + 'operation_id': 'create_knowledge_base_completion', |
| 324 | + 'http_method': 'POST', |
| 325 | + 'servers': None, |
| 326 | + }, |
| 327 | + params_map={ |
| 328 | + 'all': [ |
| 329 | + 'account_id', |
| 330 | + 'knowledge_base_id', |
| 331 | + 'completion_request', |
| 332 | + ], |
| 333 | + 'required': [ |
| 334 | + 'account_id', |
| 335 | + 'knowledge_base_id', |
| 336 | + ], |
| 337 | + 'nullable': [ |
| 338 | + ], |
| 339 | + 'enum': [ |
| 340 | + ], |
| 341 | + 'validation': [ |
| 342 | + ] |
| 343 | + }, |
| 344 | + root_map={ |
| 345 | + 'validations': { |
| 346 | + }, |
| 347 | + 'allowed_values': { |
| 348 | + }, |
| 349 | + 'openapi_types': { |
| 350 | + 'account_id': |
| 351 | + (str,), |
| 352 | + 'knowledge_base_id': |
| 353 | + (str,), |
| 354 | + 'completion_request': |
| 355 | + (CompletionRequest,), |
| 356 | + }, |
| 357 | + 'attribute_map': { |
| 358 | + 'account_id': 'accountId', |
| 359 | + 'knowledge_base_id': 'knowledgeBaseId', |
| 360 | + }, |
| 361 | + 'location_map': { |
| 362 | + 'account_id': 'path', |
| 363 | + 'knowledge_base_id': 'path', |
| 364 | + 'completion_request': 'body', |
| 365 | + }, |
| 366 | + 'collection_format_map': { |
| 367 | + } |
| 368 | + }, |
| 369 | + headers_map={ |
| 370 | + 'accept': [ |
| 371 | + 'application/json' |
| 372 | + ], |
| 373 | + 'content_type': [ |
| 374 | + 'application/json' |
| 375 | + ] |
| 376 | + }, |
| 377 | + api_client=api_client |
| 378 | + ) |
314 | 379 | self.delete_a_recording_endpoint = _Endpoint( |
315 | 380 | settings={ |
316 | 381 | 'response_type': None, |
@@ -3864,6 +3929,94 @@ def create_an_application( |
3864 | 3929 |
|
3865 | 3930 | return self.create_an_application_endpoint.call_with_http_info(**kwargs) |
3866 | 3931 |
|
| 3932 | + def create_knowledge_base_completion( |
| 3933 | + self, |
| 3934 | + knowledge_base_id, |
| 3935 | + **kwargs |
| 3936 | + ): |
| 3937 | + """Query the knowledge base # noqa: E501 |
| 3938 | +
|
| 3939 | + This method makes a synchronous HTTP request by default. To make an |
| 3940 | + asynchronous HTTP request, please pass async_req=True |
| 3941 | +
|
| 3942 | + >>> thread = api.create_knowledge_base_completion(knowledge_base_id, async_req=True) |
| 3943 | + >>> result = thread.get() |
| 3944 | +
|
| 3945 | +
|
| 3946 | + Args: |
| 3947 | +
|
| 3948 | +
|
| 3949 | + knowledge_base_id (str): A string that uniquely identifies the KnowledgeBase resource. |
| 3950 | +
|
| 3951 | +
|
| 3952 | +
|
| 3953 | +
|
| 3954 | + Keyword Args: |
| 3955 | + completion_request (CompletionRequest): Completion request details. [optional] |
| 3956 | + _return_http_data_only (bool): response data without head status |
| 3957 | + code and headers. Default is True. |
| 3958 | + _preload_content (bool): if False, the urllib3.HTTPResponse object |
| 3959 | + will be returned without reading/decoding response data. |
| 3960 | + Default is True. |
| 3961 | + _request_timeout (int/float/tuple): timeout setting for this request. If |
| 3962 | + one number provided, it will be total request timeout. It can also |
| 3963 | + be a pair (tuple) of (connection, read) timeouts. |
| 3964 | + Default is None. |
| 3965 | + _check_input_type (bool): specifies if type checking |
| 3966 | + should be done one the data sent to the server. |
| 3967 | + Default is True. |
| 3968 | + _check_return_type (bool): specifies if type checking |
| 3969 | + should be done one the data received from the server. |
| 3970 | + Default is True. |
| 3971 | + _spec_property_naming (bool): True if the variable names in the input data |
| 3972 | + are serialized names, as specified in the OpenAPI document. |
| 3973 | + False if the variable names in the input data |
| 3974 | + are pythonic names, e.g. snake case (default) |
| 3975 | + _content_type (str/None): force body content-type. |
| 3976 | + Default is None and content-type will be predicted by allowed |
| 3977 | + content-types and body. |
| 3978 | + _host_index (int/None): specifies the index of the server |
| 3979 | + that we want to use. |
| 3980 | + Default is read from the configuration. |
| 3981 | + async_req (bool): execute request asynchronously |
| 3982 | +
|
| 3983 | + Returns: |
| 3984 | + CompletionResult |
| 3985 | + If the method is called asynchronously, returns the request |
| 3986 | + thread. |
| 3987 | + """ |
| 3988 | + kwargs['async_req'] = kwargs.get( |
| 3989 | + 'async_req', False |
| 3990 | + ) |
| 3991 | + kwargs['_return_http_data_only'] = kwargs.get( |
| 3992 | + '_return_http_data_only', True |
| 3993 | + ) |
| 3994 | + kwargs['_preload_content'] = kwargs.get( |
| 3995 | + '_preload_content', True |
| 3996 | + ) |
| 3997 | + kwargs['_request_timeout'] = kwargs.get( |
| 3998 | + '_request_timeout', None |
| 3999 | + ) |
| 4000 | + kwargs['_check_input_type'] = kwargs.get( |
| 4001 | + '_check_input_type', True |
| 4002 | + ) |
| 4003 | + kwargs['_check_return_type'] = kwargs.get( |
| 4004 | + '_check_return_type', True |
| 4005 | + ) |
| 4006 | + kwargs['_spec_property_naming'] = kwargs.get( |
| 4007 | + '_spec_property_naming', False |
| 4008 | + ) |
| 4009 | + kwargs['_content_type'] = kwargs.get( |
| 4010 | + '_content_type') |
| 4011 | + kwargs['_host_index'] = kwargs.get('_host_index') |
| 4012 | + kwargs['account_id'] = \ |
| 4013 | + self.account_id |
| 4014 | + |
| 4015 | + kwargs['knowledge_base_id'] = \ |
| 4016 | + knowledge_base_id |
| 4017 | + |
| 4018 | + return self.create_knowledge_base_completion_endpoint.call_with_http_info(**kwargs) |
| 4019 | + |
3867 | 4020 | def delete_a_recording( |
3868 | 4021 | self, |
3869 | 4022 | recording_id, |
|
0 commit comments