📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
lib
›
python3.9
›
site-packages
›
oci
›
generative_ai_inference
›
models
›
📁 __pycache__
📍
Lokasi:
/usr/lib/python3.9/site-packages/oci/generative_ai_inference/models/__pycache__
💾
Free:
45.4 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: cohere_chat_response.cpython-39.pyc
a ���f^9 � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�BaseChatResponse� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sL e Zd ZdZdZdZdZdZdZdZ dd � Z ed d� �Zej dd� �Zed d� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd � �Zej d!d � �Zed"d#� �Zej d$d#� �Zed%d&� �Zej d'd&� �Zd(d)� Zd*d+� Zd,d-� Zd.S )/�CohereChatResponsez0 The response to the chat conversation. �COMPLETE�ERROR_TOXIC�ERROR_LIMIT�ERROR�USER_CANCEL� MAX_TOKENSc K s� dddddddddddd�| _ d d ddd ddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _dS )a\ Initializes a new CohereChatResponse object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_inference.models.CohereChatResponse.api_format` attribute of this class is ``COHERE`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param api_format: The value to assign to the api_format property of this CohereChatResponse. Allowed values for this property are: "COHERE", "GENERIC", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type api_format: str :param text: The value to assign to the text property of this CohereChatResponse. :type text: str :param chat_history: The value to assign to the chat_history property of this CohereChatResponse. :type chat_history: list[oci.generative_ai_inference.models.CohereMessage] :param citations: The value to assign to the citations property of this CohereChatResponse. :type citations: list[oci.generative_ai_inference.models.Citation] :param is_search_required: The value to assign to the is_search_required property of this CohereChatResponse. :type is_search_required: bool :param finish_reason: The value to assign to the finish_reason property of this CohereChatResponse. Allowed values for this property are: "COMPLETE", "ERROR_TOXIC", "ERROR_LIMIT", "ERROR", "USER_CANCEL", "MAX_TOKENS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type finish_reason: str :param error_message: The value to assign to the error_message property of this CohereChatResponse. :type error_message: str :param search_queries: The value to assign to the search_queries property of this CohereChatResponse. :type search_queries: list[oci.generative_ai_inference.models.SearchQuery] :param documents: The value to assign to the documents property of this CohereChatResponse. :type documents: list[object] :param tool_calls: The value to assign to the tool_calls property of this CohereChatResponse. :type tool_calls: list[oci.generative_ai_inference.models.CohereToolCall] :param prompt: The value to assign to the prompt property of this CohereChatResponse. :type prompt: str �strzlist[CohereMessage]zlist[Citation]�boolzlist[SearchQuery]zlist[object]zlist[CohereToolCall])Z api_format�text�chat_history� citations�is_search_required� finish_reason� error_message�search_queries� documents� tool_calls�promptZ apiFormatr ZchatHistoryr ZisSearchRequiredZfinishReasonZerrorMessageZ searchQueriesr Z toolCallsr NZCOHERE) Z swagger_typesZ attribute_mapZ_api_format�_text� _chat_history� _citations�_is_search_required�_finish_reason�_error_message�_search_queries� _documents�_tool_calls�_prompt)�self�kwargs� r'