Skip to content
1 min read · 153 words

@nhtio/adk/batteries/llm/gemini_generate_content/exceptions

Battery-scoped exception constructors for the native Gemini generateContent adapter.

Remarks

Owned by the battery, not the ADK core, and minted via createException from @nhtio/adk/factories. The set mirrors the other chat batteries with one Gemini-specific addition: E_GEMINI_MISSING_THOUGHT_SIGNATURE, which classifies the vendor's own hard rejection of unsigned historical function calls so a caller can tell it apart from a generic invalid-request — Gemini's error body is otherwise an opaque INVALID_ARGUMENT.

Variables

VariableDescription
E_GEMINI_INVALID_TOOL_CALL_ARGSA functionCall part carried an args value that is not a plain object.
E_GEMINI_MISSING_THOUGHT_SIGNATUREGemini rejected the request because a historical functionCall part carried no thoughtSignature.
E_GEMINI_REQUEST_FAILEDThe provider returned a non-2xx status.
E_GEMINI_STREAM_ERRORA transport error or malformed frame killed the stream mid-generation.
E_INVALID_GEMINI_GENERATE_CONTENT_OPTIONSResolved options (constructor, executor overrides, or stash.geminiGenerateContent) failed validation.