agent-provider-google / Exports / IGoogleProviderOptions
Interface: IGoogleProviderOptions
Google AI Provider options
Indexable
▪ [key: string]: TGoogleProviderOptionValue
Additional provider-specific options
Table of contents
Properties
Properties
apiKey
• apiKey: string
Google AI API key
Defined in
agent-provider-google/src/types.ts:27
responseMimeType
• Optional responseMimeType: "text/plain" | "application/json"
Response MIME type
- 'text/plain': Plain text response (default)
- 'application/json': JSON response format
Defined in
agent-provider-google/src/types.ts:34
responseSchema
• Optional responseSchema: Record<string, TGoogleProviderOptionValue>
Response schema for JSON output (only used when responseMimeType is 'application/json')
Defined in
agent-provider-google/src/types.ts:39
defaultResponseModalities
• Optional defaultResponseModalities: ("TEXT" | "IMAGE")[]
Optional default response modalities for Gemini generation config. Example: ['TEXT', 'IMAGE']
Defined in
agent-provider-google/src/types.ts:45
imageCapableModels
• Optional imageCapableModels: string[]
Optional allowlist of models that support image generation/editing. If not provided, provider validates using model name heuristics.
Defined in
agent-provider-google/src/types.ts:51
executor
• Optional executor: IExecutor
Optional executor for handling AI requests
When provided, the provider will delegate all chat operations to this executor instead of making direct API calls. This enables remote execution capabilities.
Example
import { LocalExecutor, RemoteExecutor } from '@robota-sdk/agent-core';
// Local execution (registers this provider)
const localExecutor = new LocalExecutor();
localExecutor.registerProvider('google', new GoogleProvider({ apiKey: 'AIza...' }));
// Remote execution
const remoteExecutor = new RemoteExecutor({
serverUrl: 'https://api.robota.io',
userApiKey: 'user-token-123'
});
const provider = new GoogleProvider({
apiKey: 'placeholder', // Required for type safety but not used
executor: remoteExecutor
});