Skip to content

Automatically calling tool via Gemini Live#7

Closed
marinacoelho wants to merge 2 commits into
mainfrom
marina/automate-tool-calling
Closed

Automatically calling tool via Gemini Live#7
marinacoelho wants to merge 2 commits into
mainfrom
marina/automate-tool-calling

Conversation

@marinacoelho

Copy link
Copy Markdown
Contributor

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the live assistant tool execution to use the new automatic function calling API (AutoFunctionDeclaration). The manual function call handling logic has been moved from LiveAssistantViewModel to LiveAIRemoteDataSource under the addToGroceryList method. Feedback on these changes suggests improving the robustness of the addToGroceryList function by implementing safe JSON parsing, filtering out empty ingredients, and wrapping the database call in a try-catch block to handle potential errors gracefully.

@marinacoelho marinacoelho deleted the marina/automate-tool-calling branch May 28, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant