Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class AssistantContent.
Multi-modal content.
Generated from protobuf message google.cloud.discoveryengine.v1.AssistantContent
Namespace
Google \ Cloud \ DiscoveryEngine \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ text
string
Inline text.
↳ inline_data
↳ file
↳ executable_code
↳ code_execution_result
↳ role
string
The producer of the content. Can be "model" or "user".
↳ thought
bool
Optional. Indicates if the part is thought from the model.
getText
Inline text.
string
hasText
setText
Inline text.
var
string
$this
getInlineData
Inline binary data.
hasInlineData
setInlineData
Inline binary data.
$this
getFile
A file, e.g., an audio summary.
hasFile
setFile
A file, e.g., an audio summary.
$this
getExecutableCode
Code generated by the model that is meant to be executed.
hasExecutableCode
setExecutableCode
Code generated by the model that is meant to be executed.
$this
getCodeExecutionResult
Result of executing an ExecutableCode.
hasCodeExecutionResult
setCodeExecutionResult
Result of executing an ExecutableCode.
$this
getRole
The producer of the content. Can be "model" or "user".
string
setRole
The producer of the content. Can be "model" or "user".
var
string
$this
getThought
Optional. Indicates if the part is thought from the model.
bool
setThought
Optional. Indicates if the part is thought from the model.
var
bool
$this
getData
string

