Skip to content
1 min read · 72 words

Function: toolsToGeminiTools()

ts
function toolsToGeminiTools(
  tools: Iterable<Tool<SpooledArtifact> | ArtifactTool>,
): GeminiTool[];

Defined in: src/batteries/llm/gemini_generate_content/helpers.ts:164

ADK tools → native functionDeclarations.

Parameters

ParameterType
toolsIterable< | Tool<SpooledArtifact> | ArtifactTool>

Returns

GeminiTool[]

Remarks

Names are normalised through the shared normalizeToolName so a tool whose ADK name contains characters Gemini rejects still resolves; functionResponse.name must later match whatever this produced, which is why both sides call the same normaliser.