Class GeminiProviderErrorMapper

java.lang.Object
com.tnsai.llm.errors.AbstractGoogleErrorMapper
com.tnsai.llm.errors.GeminiProviderErrorMapper
All Implemented Interfaces:
ProviderErrorMapper

public class GeminiProviderErrorMapper extends AbstractGoogleErrorMapper
ProviderErrorMapper for Google's Generative Language API (Gemini).

Gemini returns the canonical Google API-Gateway error envelope; all of the parsing and google.rpc.Code-status mapping lives in AbstractGoogleErrorMapper, shared with VertexAIProviderErrorMapper.

Since:
0.5.1 (issue #87 follow-up — third pilot mapper); rebased onto AbstractGoogleErrorMapper in 0.11.1 (TNS-622)
  • Constructor Details

    • GeminiProviderErrorMapper

      public GeminiProviderErrorMapper()