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
| Parameter | Type |
|---|---|
tools | Iterable< | Tool<SpooledArtifact> | ArtifactTool> |
Returns
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.