AIDK API Reference / aidk-google
aidk-google ​
AIDK Google AI Adapter ​
Native Google AI (Gemini) adapter for AIDK. Provides direct integration with Google's Gemini models without requiring the Vercel AI SDK.
Features ​
- Native API - Direct Google AI API integration
- Streaming - Full streaming support
- Tool Calling - Native function calling support
- Multimodal - Image and document understanding
- All Models - Gemini Pro, Gemini Flash, and more
Quick Start ​
typescript
import { google } from 'aidk-google';
const model = google('gemini-1.5-pro');
// Use with engine
const engine = createEngine();
const result = await engine.execute(
<Model model={model}>
<System>You are a helpful assistant.</System>
<User>Hello!</User>
</Model>
);Interfaces ​
| Interface | Description |
|---|---|
| GoogleModelProps | Props for GoogleModel component. Extends adapter config with optional Model component props. |
Type Aliases ​
| Type Alias | Description |
|---|---|
| GoogleAdapter | - |
Functions ​
| Function | Description |
|---|---|
| buildClientOptions | - |
| convertBlocksToGoogleParts | Convert ContentBlocks to Google GenAI parts |
| createGoogleModel | Factory function for creating Google model adapter using createModel |
| Factory function for creating Google adapter (alias for createGoogleModel) | |
| GoogleModel | GoogleModel component for declarative model configuration in JSX. |
| mapGoogleFinishReason | Map Google FinishReason to normalized StopReason |
| mapToolDefinition | Map tool definition to Google format |