google / Exports / GoogleProvider
Class: GoogleProvider
Google Gemini provider implementation for Robota
IMPORTANT PROVIDER-SPECIFIC RULES:
- This provider MUST extend BaseAIProvider from @robota-sdk/agents
- Content handling for Google Gemini API:
- Function calls can have content (text) along with function calls
- Content can be empty string or actual text, NOT null
- Use override keyword for all methods inherited from BaseAIProvider
- Provider-specific API behavior should be documented here
Hierarchy
unknown↳
GoogleProvider
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new GoogleProvider(options): GoogleProvider
Parameters
| Name | Type |
|---|---|
options | GoogleProviderOptions |
Returns
Overrides
BaseAIProvider.constructor
Defined in
Properties
name
• Readonly name: "google"
Defined in
version
• Readonly version: "1.0.0"
Defined in
Methods
chat
▸ chat(messages, options?): Promise<UniversalMessage>
Generate response using UniversalMessage
Parameters
| Name | Type |
|---|---|
messages | UniversalMessage[] |
options? | any |
Returns
Promise<UniversalMessage>
Defined in
chatStream
▸ chatStream(messages, options?): AsyncIterable<UniversalMessage, any, any>
Generate streaming response using UniversalMessage
Parameters
| Name | Type |
|---|---|
messages | UniversalMessage[] |
options? | any |
Returns
AsyncIterable<UniversalMessage, any, any>
Defined in
supportsTools
▸ supportsTools(): boolean
Returns
boolean
Defined in
validateConfig
▸ validateConfig(): boolean
Returns
boolean
Defined in
dispose
▸ dispose(): Promise<void>
Returns
Promise<void>