📂 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_tool_message.cpython-39.pyc
a ���f� � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )� CohereMessage� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sJ e Zd ZdZdd� Zedd� �Zejdd� �Zdd� Zd d � Z dd� Z d S )�CohereToolMessagezF A message that represents a single chat dialog as TOOL role. c K s. ddd�| _ ddd�| _d| _d| _d| _dS )a Initializes a new CohereToolMessage object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_inference.models.CohereToolMessage.role` attribute of this class is ``TOOL`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param role: The value to assign to the role property of this CohereToolMessage. Allowed values for this property are: "CHATBOT", "USER", "SYSTEM", "TOOL" :type role: str :param tool_results: The value to assign to the tool_results property of this CohereToolMessage. :type tool_results: list[oci.generative_ai_inference.models.CohereToolResult] �strzlist[CohereToolResult])�role�tool_resultsr ZtoolResultsNZTOOL)Z swagger_typesZ attribute_mapZ_role� _tool_results)�self�kwargs� r �Z/usr/lib/python3.9/site-packages/oci/generative_ai_inference/models/cohere_tool_message.py�__init__ s ��zCohereToolMessage.__init__c C s | j S )a< **[Required]** Gets the tool_results of this CohereToolMessage. A list of results from invoking tools recommended by the model in the previous chat turn. :return: The tool_results of this CohereToolMessage. :rtype: list[oci.generative_ai_inference.models.CohereToolResult] �r �r r r r r 0 s zCohereToolMessage.tool_resultsc C s || _ dS )a8 Sets the tool_results of this CohereToolMessage. A list of results from invoking tools recommended by the model in the previous chat turn. :param tool_results: The tool_results of this CohereToolMessage. :type: list[oci.generative_ai_inference.models.CohereToolResult] Nr )r r r r r r <