Data Analytics API with Gemini v1beta API - Class Context (1.0.0-beta04)

public sealed class Context : IMessage<Context>, IEquatable<Context>, IDeepCloneable<Context>, IBufferMessage, IMessage

Reference documentation and code samples for the Data Analytics API with Gemini v1beta API class Context.

A collection of context to apply to this conversation

Inheritance

object > Context

Namespace

Google.Cloud.GeminiDataAnalytics.V1Beta

Assembly

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. Currently only used for BigQuery data sources.

Property Value
Type Description
RepeatedFieldExampleQuery

GlossaryTerms

public RepeatedField<GlossaryTerm> GlossaryTerms { get; }

Optional. Term definitions (currently, only user authored)

Property Value
Type Description
RepeatedFieldGlossaryTerm

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