Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class ConversationReference.
Reference to a persisted conversation and agent context.
Generated from protobuf message google.cloud.geminidataanalytics.v1beta.ConversationReference
Namespace
Google \ Cloud \ GeminiDataAnalytics \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ conversation |
string
Required. Name of the conversation resource. Format: |
↳ data_agent_context |
DataAgentContext
Required. Context for the chat request using a data agent. |
getConversation
Required. Name of the conversation resource.
Format:
projects/{project}/locations/{location}/conversations/{conversation_id}
| Returns | |
|---|---|
| Type | Description |
string |
|
setConversation
Required. Name of the conversation resource.
Format:
projects/{project}/locations/{location}/conversations/{conversation_id}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDataAgentContext
Required. Context for the chat request using a data agent.
| Returns | |
|---|---|
| Type | Description |
DataAgentContext|null |
|
hasDataAgentContext
clearDataAgentContext
setDataAgentContext
Required. Context for the chat request using a data agent.
| Parameter | |
|---|---|
| Name | Description |
var |
DataAgentContext
|
| Returns | |
|---|---|
| Type | Description |
$this |
|