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.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ text |
string
Inline text. |
↳ inline_data |
AssistantContent\Blob
Inline binary data. |
↳ file |
AssistantContent\File
A file, e.g., an audio summary. |
↳ executable_code |
AssistantContent\ExecutableCode
Code generated by the model that is meant to be executed. |
↳ code_execution_result |
AssistantContent\CodeExecutionResult
Result of executing an ExecutableCode. |
↳ 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.
Returns | |
---|---|
Type | Description |
string |
hasText
setText
Inline text.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getInlineData
Inline binary data.
Returns | |
---|---|
Type | Description |
AssistantContent\Blob|null |
hasInlineData
setInlineData
Inline binary data.
Parameter | |
---|---|
Name | Description |
var |
AssistantContent\Blob
|
Returns | |
---|---|
Type | Description |
$this |
getFile
A file, e.g., an audio summary.
Returns | |
---|---|
Type | Description |
AssistantContent\File|null |
hasFile
setFile
A file, e.g., an audio summary.
Parameter | |
---|---|
Name | Description |
var |
AssistantContent\File
|
Returns | |
---|---|
Type | Description |
$this |
getExecutableCode
Code generated by the model that is meant to be executed.
Returns | |
---|---|
Type | Description |
AssistantContent\ExecutableCode|null |
hasExecutableCode
setExecutableCode
Code generated by the model that is meant to be executed.
Parameter | |
---|---|
Name | Description |
var |
AssistantContent\ExecutableCode
|
Returns | |
---|---|
Type | Description |
$this |
getCodeExecutionResult
Result of executing an ExecutableCode.
Returns | |
---|---|
Type | Description |
AssistantContent\CodeExecutionResult|null |
hasCodeExecutionResult
setCodeExecutionResult
Result of executing an ExecutableCode.
Parameter | |
---|---|
Name | Description |
var |
AssistantContent\CodeExecutionResult
|
Returns | |
---|---|
Type | Description |
$this |
getRole
The producer of the content. Can be "model" or "user".
Returns | |
---|---|
Type | Description |
string |
setRole
The producer of the content. Can be "model" or "user".
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getThought
Optional. Indicates if the part is thought from the model.
Returns | |
---|---|
Type | Description |
bool |
setThought
Optional. Indicates if the part is thought from the model.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getData
Returns | |
---|---|
Type | Description |
string |