Skip to content
1 min read · 109 words

Interface: GeminiFunctionResponse ​

Defined in: src/batteries/llm/gemini_generate_content/types.ts:112

The result of a function invocation, sent back on a user turn.

Remarks ​

name is the DECLARED FUNCTION NAME, not a call id — Gemini has no tool_call_id. A mismatched name is a common source of opaque INVALID_ARGUMENT rejections.

Properties ​

PropertyTypeDescriptionDefined in
namestringThe DECLARED function name — not a call id.src/batteries/llm/gemini_generate_content/types.ts:114
responseRecord<string, unknown>Result payload. Gemini requires an OBJECT here; a bare string is rejected.src/batteries/llm/gemini_generate_content/types.ts:116