Skip to content

Google Provider Compatibility Specification

Scope

This package is a compatibility wrapper for the canonical @robota-sdk/agent-provider-gemini package. It exists to preserve existing imports from @robota-sdk/agent-provider-google during the documented migration window.

Boundaries

  • Does not own Gemini API transport, message conversion, image operations, provider defaults, or provider-definition metadata. Those belong to agent-provider-gemini.
  • Does not add CLI, SDK, or provider-name-specific branches.
  • Does not duplicate Gemini implementation code.

Architecture Overview

src/
  index.ts               # public compatibility exports
  provider.ts            # GoogleProvider compatibility subclass
  provider-definition.ts # canonical Gemini provider definition re-export
  types.ts               # Google-named type aliases

Type Ownership

TypeLocationPurpose
IGoogleProviderOptionssrc/types.tsDeprecated alias of IGeminiProviderOptions.
TGoogleProviderOptionValuesrc/types.tsDeprecated alias of TGeminiProviderOptionValue.
GoogleProvidersrc/provider.tsCompatibility subclass of GeminiProvider with name = "google".

Public API Surface

ExportKindDescription
GoogleProviderclassDeprecated compatibility provider class.
createGeminiProviderDefinitionfunctionRe-export from agent-provider-gemini.
DEFAULT_GEMINI_PROVIDER_MODELconstantRe-export from agent-provider-gemini.
IGoogleProviderOptionsinterfaceDeprecated compatibility alias.
TGoogleProviderOptionValuetype aliasDeprecated compatibility alias.

Extension Points

None. New behavior must be added to agent-provider-gemini, not this wrapper.

Test Strategy

  • Unit tests verify GoogleProvider remains constructible from this package.
  • Unit tests verify GoogleProvider is backed by GeminiProvider behavior and keeps the compatibility name value.
  • Unit tests verify the re-exported provider definition preserves canonical type: "gemini" and google alias metadata.

Class Contract Registry

Inheritance Chains

Base (Owner)DerivedLocationNotes
GeminiProvider (agent-provider-gemini)GoogleProvidersrc/provider.tsCompatibility import surface.

Cross-Package Port Consumers

Port (Owner)AdapterLocation
Gemini provider implementationGoogleProvidersrc/provider.ts

Released under the MIT License.