Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::AssistantContent (v2.4.0)

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
Returns

#code_execution_result=

def code_execution_result=(value) -> ::Google::Cloud::DiscoveryEngine::V1::AssistantContent::CodeExecutionResult
Parameter
Returns

#executable_code

def executable_code() -> ::Google::Cloud::DiscoveryEngine::V1::AssistantContent::ExecutableCode
Returns

#executable_code=

def executable_code=(value) -> ::Google::Cloud::DiscoveryEngine::V1::AssistantContent::ExecutableCode
Parameter
  • 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.

Returns

#file

def file() -> ::Google::Cloud::DiscoveryEngine::V1::AssistantContent::File
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns
  • (::String) — The producer of the content. Can be "model" or "user".

#role=

def role=(value) -> ::String
Parameter
  • value (::String) — The producer of the content. Can be "model" or "user".
Returns
  • (::String) — The producer of the content. Can be "model" or "user".

#text

def text() -> ::String
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns
  • (::Boolean) — Optional. Indicates if the part is thought from the model.

#thought=

def thought=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Indicates if the part is thought from the model.
Returns
  • (::Boolean) — Optional. Indicates if the part is thought from the model.