public sealed class Context : IMessage<Context>, IEquatable<Context>, IDeepCloneable<Context>, IBufferMessage, IMessageReference documentation and code samples for the Data Analytics API with Gemini v1 API class Context.
A collection of context to apply to this conversation
Namespace
Google.Cloud.GeminiDataAnalytics.V1Assembly
Google.Cloud.GeminiDataAnalytics.V1.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. Currently only used for BigQuery data sources and databases (alloydb, cloudsql, spanner) data sources.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldExampleQuery |
|
GlossaryTerms
public RepeatedField<GlossaryTerm> GlossaryTerms { get; }Optional. Term definitions (currently, only user authored) Not supported for databases (alloydb, cloudsql, spanner) data sources.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldGlossaryTerm |
|
LookerGoldenQueries
public RepeatedField<LookerGoldenQuery> LookerGoldenQueries { get; }Optional. A list of golden queries, providing examples of relevant and commonly used Looker queries and their corresponding natural language queries optionally present. Only supported for Looker data sources.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldLookerGoldenQuery |
|
Options
public ConversationOptions Options { get; set; }Optional. Additional options for the conversation.
| Property Value | |
|---|---|
| Type | Description |
ConversationOptions |
|
SchemaRelationships
public RepeatedField<Context.Types.SchemaRelationship> SchemaRelationships { get; }Optional. Relationships between table schema, including referencing and referenced columns.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldContextTypesSchemaRelationship |
|
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 |
|
UserFunctions
public UserFunctions UserFunctions { get; set; }Optional. A collection of user functions to be included in context.
| Property Value | |
|---|---|
| Type | Description |
UserFunctions |
|