Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::AssistantContent.
Multi-modal content.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#code_execution_result
def code_execution_result() -> ::Google::Cloud::DiscoveryEngine::V1::AssistantContent::CodeExecutionResult
-
(::Google::Cloud::DiscoveryEngine::V1::AssistantContent::CodeExecutionResult) — Result of executing an ExecutableCode.
Note: The following fields are mutually exclusive:
code_execution_result
,text
,inline_data
,file
,executable_code
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#code_execution_result=
def code_execution_result=(value) -> ::Google::Cloud::DiscoveryEngine::V1::AssistantContent::CodeExecutionResult
-
value (::Google::Cloud::DiscoveryEngine::V1::AssistantContent::CodeExecutionResult) — Result of executing an ExecutableCode.
Note: The following fields are mutually exclusive:
code_execution_result
,text
,inline_data
,file
,executable_code
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::DiscoveryEngine::V1::AssistantContent::CodeExecutionResult) — Result of executing an ExecutableCode.
Note: The following fields are mutually exclusive:
code_execution_result
,text
,inline_data
,file
,executable_code
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#executable_code
def executable_code() -> ::Google::Cloud::DiscoveryEngine::V1::AssistantContent::ExecutableCode
-
(::Google::Cloud::DiscoveryEngine::V1::AssistantContent::ExecutableCode) — Code generated by the model that is meant to be executed.
Note: The following fields are mutually exclusive:
executable_code
,text
,inline_data
,file
,code_execution_result
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#executable_code=
def executable_code=(value) -> ::Google::Cloud::DiscoveryEngine::V1::AssistantContent::ExecutableCode
-
value (::Google::Cloud::DiscoveryEngine::V1::AssistantContent::ExecutableCode) — Code generated by the model that is meant to be executed.
Note: The following fields are mutually exclusive:
executable_code
,text
,inline_data
,file
,code_execution_result
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::DiscoveryEngine::V1::AssistantContent::ExecutableCode) — Code generated by the model that is meant to be executed.
Note: The following fields are mutually exclusive:
executable_code
,text
,inline_data
,file
,code_execution_result
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#file
def file() -> ::Google::Cloud::DiscoveryEngine::V1::AssistantContent::File
-
(::Google::Cloud::DiscoveryEngine::V1::AssistantContent::File) — A file, e.g., an audio summary.
Note: The following fields are mutually exclusive:
file
,text
,inline_data
,executable_code
,code_execution_result
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#file=
def file=(value) -> ::Google::Cloud::DiscoveryEngine::V1::AssistantContent::File
-
value (::Google::Cloud::DiscoveryEngine::V1::AssistantContent::File) — A file, e.g., an audio summary.
Note: The following fields are mutually exclusive:
file
,text
,inline_data
,executable_code
,code_execution_result
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::DiscoveryEngine::V1::AssistantContent::File) — A file, e.g., an audio summary.
Note: The following fields are mutually exclusive:
file
,text
,inline_data
,executable_code
,code_execution_result
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#inline_data
def inline_data() -> ::Google::Cloud::DiscoveryEngine::V1::AssistantContent::Blob
-
(::Google::Cloud::DiscoveryEngine::V1::AssistantContent::Blob) — Inline binary data.
Note: The following fields are mutually exclusive:
inline_data
,text
,file
,executable_code
,code_execution_result
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#inline_data=
def inline_data=(value) -> ::Google::Cloud::DiscoveryEngine::V1::AssistantContent::Blob
-
value (::Google::Cloud::DiscoveryEngine::V1::AssistantContent::Blob) — Inline binary data.
Note: The following fields are mutually exclusive:
inline_data
,text
,file
,executable_code
,code_execution_result
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::DiscoveryEngine::V1::AssistantContent::Blob) — Inline binary data.
Note: The following fields are mutually exclusive:
inline_data
,text
,file
,executable_code
,code_execution_result
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#role
def role() -> ::String
- (::String) — The producer of the content. Can be "model" or "user".
#role=
def role=(value) -> ::String
- value (::String) — The producer of the content. Can be "model" or "user".
- (::String) — The producer of the content. Can be "model" or "user".
#text
def text() -> ::String
-
(::String) — Inline text.
Note: The following fields are mutually exclusive:
text
,inline_data
,file
,executable_code
,code_execution_result
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#text=
def text=(value) -> ::String
-
value (::String) — Inline text.
Note: The following fields are mutually exclusive:
text
,inline_data
,file
,executable_code
,code_execution_result
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Inline text.
Note: The following fields are mutually exclusive:
text
,inline_data
,file
,executable_code
,code_execution_result
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#thought
def thought() -> ::Boolean
- (::Boolean) — Optional. Indicates if the part is thought from the model.
#thought=
def thought=(value) -> ::Boolean
- value (::Boolean) — Optional. Indicates if the part is thought from the model.
- (::Boolean) — Optional. Indicates if the part is thought from the model.