QuestionQ3

Solution Design

According to naming best practices, which of the following is the most suitable name for a tool that creates summaries of PDF files?

  • A pdfSummary
  • B summarize.pdf@tool
  • C file_processor
  • D pdf_summary
Explanation

A clear, descriptive lowercase snake_case name makes a tool’s purpose easy to identify and follows a common function-naming convention. pdf_summary specifically conveys that the tool produces a PDF summary; file_processor is overly broad. Official Gemini function-calling documentation permits underscores or camelCase for function names, and its examples commonly use descriptive underscore-separated names.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!