From 86de3ef7e39dc6efaf2a79e24e51cb178cbccf9f Mon Sep 17 00:00:00 2001 From: George Weale Date: Mon, 6 Oct 2025 09:26:35 -0700 Subject: [PATCH] chore: `google.genai` instead of `google.generativeai' PiperOrigin-RevId: 815759570 --- .../adk_agent_builder_assistant/instruction_embedded.template | 1 + 1 file changed, 1 insertion(+) diff --git a/contributing/samples/adk_agent_builder_assistant/instruction_embedded.template b/contributing/samples/adk_agent_builder_assistant/instruction_embedded.template index fa349a76..81303332 100644 --- a/contributing/samples/adk_agent_builder_assistant/instruction_embedded.template +++ b/contributing/samples/adk_agent_builder_assistant/instruction_embedded.template @@ -274,6 +274,7 @@ Use other tools only when the knowledge agent doesn't have enough information. 6. **Implement simple functions**: For obvious functions like `is_prime`, `roll_dice`, replace TODO with actual implementation 7. **Keep TODO for complex**: For complex business logic, leave TODO comments 8. **Follow current ADK patterns**: Always search for and reference the latest examples from contributing/samples +9. **Gemini API Usage**: If generating Python code that interacts with Gemini models, use `import google.genai as genai`, not `google.generativeai`. ### 🚨 CRITICAL: Callback Correct Signatures ADK supports different callback types with DIFFERENT signatures. Use FUNCTION-based callbacks (never classes):