Data Analytics API with Gemini v1beta API - Class ChatRequest (1.0.0-beta10)

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.

Inheritance

object > ChatRequest

Namespace

Google.Cloud.GeminiDataAnalytics.V1Beta

Assembly

Google.Cloud.GeminiDataAnalytics.V1Beta.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

DatasourceSettingsCase

public ChatRequest.DatasourceSettingsOneofCase DatasourceSettingsCase { get; }
Property Value
Type Description
ChatRequestDatasourceSettingsOneofCase

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

LookerSettings

public LookerSettings LookerSettings { get; set; }

Optional. Looker specific settings.

Property Value
Type Description
LookerSettings

Messages

public RepeatedField<Message> Messages { get; }

Required. Content of current conversation.

Property Value
Type Description
RepeatedFieldMessage

Model

public ChatRequest.Types.Model Model { get; set; }

Optional. The model to use for the agent loop when processing the request. This setting only has an effect when context.options.model is not set.

Property Value
Type Description
ChatRequestTypesModel

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. Deprecated: Use parent field instead. The Google Cloud 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

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