Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1 Client class Context.
A collection of context to apply to this conversation
Generated from protobuf message google.cloud.geminidataanalytics.v1.Context
Namespace
Google \ Cloud \ GeminiDataAnalytics \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ system_instruction
string
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.
↳ datasource_references
↳ options
↳ example_queries
array< ExampleQuery
>
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.
↳ looker_golden_queries
array< LookerGoldenQuery
>
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.
↳ glossary_terms
array< GlossaryTerm
>
Optional. Term definitions (currently, only user authored) Not supported for databases (alloydb, cloudsql, spanner) data sources.
↳ schema_relationships
array< Context\SchemaRelationship
>
Optional. Relationships between table schema, including referencing and referenced columns.
↳ user_functions
getSystemInstruction
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.
string
setSystemInstruction
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.
var
string
$this
getDatasourceReferences
Required. Data sources that are available for answering the question.
hasDatasourceReferences
clearDatasourceReferences
setDatasourceReferences
Required. Data sources that are available for answering the question.
$this
getOptions
Optional. Additional options for the conversation.
hasOptions
clearOptions
setOptions
Optional. Additional options for the conversation.
$this
getExampleQueries
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.
setExampleQueries
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.
$this
getLookerGoldenQueries
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.
setLookerGoldenQueries
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.
$this
getGlossaryTerms
Optional. Term definitions (currently, only user authored) Not supported for databases (alloydb, cloudsql, spanner) data sources.
setGlossaryTerms
Optional. Term definitions (currently, only user authored) Not supported for databases (alloydb, cloudsql, spanner) data sources.
$this
getSchemaRelationships
Optional. Relationships between table schema, including referencing and referenced columns.
setSchemaRelationships
Optional. Relationships between table schema, including referencing and referenced columns.
$this
getUserFunctions
Optional. A collection of user functions to be included in context.
hasUserFunctions
clearUserFunctions
setUserFunctions
Optional. A collection of user functions to be included in context.
$this

