@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
| Variable | Description |
|---|---|
| E_GEMINI_INVALID_TOOL_CALL_ARGS | A functionCall part carried an args value that is not a plain object. |
| E_GEMINI_MISSING_THOUGHT_SIGNATURE | Gemini rejected the request because a historical functionCall part carried no thoughtSignature. |
| E_GEMINI_REQUEST_FAILED | The provider returned a non-2xx status. |
| E_GEMINI_STREAM_ERROR | A transport error or malformed frame killed the stream mid-generation. |
| E_INVALID_GEMINI_GENERATE_CONTENT_OPTIONS | Resolved options (constructor, executor overrides, or stash.geminiGenerateContent) failed validation. |