public sealed class ChatRequest : IMessage<ChatRequest>, IEquatable<ChatRequest>, IDeepCloneable<ChatRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Data Analytics API with Gemini v1beta API class ChatRequest.
Request for Chat.
Implements
IMessageChatRequest, IEquatableChatRequest, IDeepCloneableChatRequest, IBufferMessage, IMessageNamespace
Google.Cloud.GeminiDataAnalytics.V1BetaAssembly
Google.Cloud.GeminiDataAnalytics.V1Beta.dll
Constructors
ChatRequest()
public ChatRequest()
ChatRequest(ChatRequest)
public ChatRequest(ChatRequest other)
Parameter | |
---|---|
Name | Description |
other |
ChatRequest |
Properties
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 |
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 |
Project
[Obsolete]
public string Project { get; set; }
Optional. The GCP project to be used for quota and billing.
Property Value | |
---|---|
Type | Description |
string |
ProjectAsProjectName
[Obsolete]
public ProjectName ProjectAsProjectName { get; set; }
ProjectName-typed view over the Project resource name property.
Property Value | |
---|---|
Type | Description |
ProjectName |