public sealed class Context : IMessage<Context>, IEquatable<Context>, IDeepCloneable<Context>, IBufferMessage, IMessageReference documentation and code samples for the Data Analytics API with Gemini v1beta API class Context.
A collection of context to apply to this conversation
Namespace
Google.Cloud.GeminiDataAnalytics.V1BetaAssembly
Google.Cloud.GeminiDataAnalytics.V1Beta.dll
Constructors
Context()
public Context()Context(Context)
public Context(Context other)| Parameter | |
|---|---|
| Name | Description |
other |
Context |
Properties
DatasourceReferences
public DatasourceReferences DatasourceReferences { get; set; }Required. Data sources that are available for answering the question.
| Property Value | |
|---|---|
| Type | Description |
DatasourceReferences |
|
ExampleQueries
public RepeatedField<ExampleQuery> ExampleQueries { get; }Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldExampleQuery |
|
Options
public ConversationOptions Options { get; set; }Optional. Additional options for the conversation.
| Property Value | |
|---|---|
| Type | Description |
ConversationOptions |
|
SystemInstruction
public string SystemInstruction { get; set; }Optional. The basic entry point for data owners creating domain knowledge for Agent.
Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) can help the model understand the business context around a user question.
| Property Value | |
|---|---|
| Type | Description |
string |
|