feat(tools/conversational-analytics): Allow optional dataAgent#2490
feat(tools/conversational-analytics): Allow optional dataAgent#2490efantasia wants to merge 14 commits intogoogleapis:mainfrom
Conversation
Summary of ChangesHello @efantasia, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the BigQuery and Looker conversational analytics tools by introducing an optional Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces an optional dataAgent parameter for the bigquery-conversational-analytics and looker-conversational-analytics tools, allowing users to leverage pre-configured data agents for context. While the implementation correctly handles conditional logic for the API payload, a significant security concern exists: the BigQuery tool is vulnerable to prompt injection due to concatenating instructions with user input. It is strongly recommended to update the BigQuery tool to use the systemInstruction field, aligning with the Looker tool's more secure approach. Also, a minor typo was noted in the documentation.
internal/tools/bigquery/bigqueryconversationalanalytics/bigqueryconversationalanalytics.go
Outdated
Show resolved
Hide resolved
docs/en/resources/tools/looker/looker-conversational-analytics.md
Outdated
Show resolved
Hide resolved
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
|
/gcbrun |
|
/gcbrun |
|
Hi @drstrangelooker - thanks for reviewing! This is my first contribution here. JFYI I've tested the dataAgent with BigQuery but do not have a Looker Data Agent to test against. |
|
/gcbrun |
drstrangelooker
left a comment
There was a problem hiding this comment.
I fixed the lint issues. LGTM
|
/gcbrun |
|
Hi @Genesis929, could you review this PR for the BQ change? Thanks! |
There was a problem hiding this comment.
LGTM except maybe we need integration test. Meanwhile may need @shobsi to approve this for bigquery?
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
|
someone from @googleapis/toolbox-bigquery-team needs to approve now |
Description
Modifies both the
bigquery-conversational-analyticsandlooker-conversational-analyticstools to accept an optionaldataAgentconfiguration parameter. The Data Agent provides additional context and settings: https://docs.cloud.google.com/gemini/docs/conversational-analytics-api/build-agent-http#create_a_data_agentPR Checklist
CONTRIBUTING.md
bug/issue
before writing your code! That way we can discuss the change, evaluate
designs, and agree on the general idea
!if this involve a breaking change🛠️ Fixes #<issue_number_goes_here>