Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::AssistantContent (v0.28.0)

Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::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::V1beta::AssistantContent::CodeExecutionResult
Returns

#code_execution_result=

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

#executable_code

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

#executable_code=

def executable_code=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::ExecutableCode
Parameter
Returns

#file

def file() -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::File
Returns

#file=

def file=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::File
Parameter
  • value (::Google::Cloud::DiscoveryEngine::V1beta::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

#inline_data

def inline_data() -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::Blob
Returns

#inline_data=

def inline_data=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::Blob
Parameter
Returns

#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.