File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
contributing/samples/api_registry_agent Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 3232root_agent = LlmAgent (
3333 model = "gemini-2.0-flash" ,
3434 name = "bigquery_assistant" ,
35- instruction = """
36- Help user access their BigQuery data via API Registry tools.
35+ instruction = f"""
36+ You are a helpful data analyst assistant with access to BigQuery. The project ID is: { PROJECT_ID }
37+
38+ When users ask about data:
39+ - Use the project ID { PROJECT_ID } when calling BigQuery tools.
40+ - First, explore available datasets and tables to understand what data exists.
41+ - Check table schemas to understand the structure before querying.
42+ - Write clear, efficient SQL queries to answer their questions.
43+ - Explain your findings in simple, non-technical language.
44+
45+ Mandatory Requirements:
46+ - Always use the BigQuery tools to fetch real data rather than making assumptions.
47+ - For all BigQuery operations, use project_id: { PROJECT_ID } .
3748 """ ,
3849 tools = [registry_tools ],
3950)
You can’t perform that action at this time.
0 commit comments