Skip to content
1 min read · 77 words

Variable: defaultToolsToGeminiTools

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

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

Default implementation; alias of toolsToGeminiTools.

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.