public sealed class ChatRequest : IMessage<ChatRequest>, IEquatable<ChatRequest>, IDeepCloneable<ChatRequest>, IBufferMessage, IMessageReference documentation and code samples for the Data Analytics API with Gemini v1 API class ChatRequest.
Request for Chat.
Implements
IMessageChatRequest, IEquatableChatRequest, IDeepCloneableChatRequest, IBufferMessage, IMessageNamespace
Google.Cloud.GeminiDataAnalytics.V1Assembly
Google.Cloud.GeminiDataAnalytics.V1.dll
Constructors
ChatRequest()
public ChatRequest()ChatRequest(ChatRequest)
public ChatRequest(ChatRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
ChatRequest |
Properties
ClientManagedResourceContext
public ClientManagedResourceContext ClientManagedResourceContext { get; set; }Optional. Context with client managed resources. Some clients may not use GDA managed resources including conversations and agents, instead they create and manage their own conversations and agents resources.
| Property Value | |
|---|---|
| Type | Description |
ClientManagedResourceContext |
|
ContextProviderCase
public ChatRequest.ContextProviderOneofCase ContextProviderCase { get; }| Property Value | |
|---|---|
| Type | Description |
ChatRequestContextProviderOneofCase |
|
ConversationReference
public ConversationReference ConversationReference { get; set; }Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.
| Property Value | |
|---|---|
| Type | Description |
ConversationReference |
|
Credentials
public Credentials Credentials { get; set; }Optional. The credentials to use when calling the data source(s) specified in the context.
This field can be used to provide credentials for various data sources. For example, when connecting to Looker, it currently supports both OAuth token and API key-based credentials, as described in Authentication with an SDK.
| Property Value | |
|---|---|
| Type | Description |
Credentials |
|
DataAgentContext
public DataAgentContext DataAgentContext { get; set; }Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.
| Property Value | |
|---|---|
| Type | Description |
DataAgentContext |
|
InlineContext
public Context InlineContext { get; set; }Optional. Inline context for the chat request. Use this to chat statelessly (without managed conversation persistence and without an Agent) by passing all context inline.
| Property Value | |
|---|---|
| Type | Description |
Context |
|
Messages
public RepeatedField<Message> Messages { get; }Required. Content of current conversation.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldMessage |
|
Parent
public string Parent { get; set; }Required. The parent value for chat request.
Pattern: projects/{project}/locations/{location}
| Property Value | |
|---|---|
| Type | Description |
string |
|
ThinkingMode
public ChatRequest.Types.ThinkingMode ThinkingMode { get; set; }Optional. The thinking mode to use for the agent loop. Defaults to THINKING_MODE_UNSPECIFIED if not specified.
| Property Value | |
|---|---|
| Type | Description |
ChatRequestTypesThinkingMode |
|