-
-
Notifications
You must be signed in to change notification settings - Fork 293
feat(google-ai): implement initial Google GenAI provider #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Adds the initial implementation for the Google Generative AI provider (`@voltagent/google-ai`). This includes: - `GoogleGenAIProvider` class implementing `LLMProvider`. - Integration with the `@google/genai` SDK. - Implementation of `generateText`. - Stubs for `streamText`, `generateObject`, and `streamObject`. - Configuration handling via `GoogleGenAIProviderOptions`. - Basic build (`tsup.config.ts`, `tsconfig.json`) and package (`package.json`) setup.
…ith improved message handling
… ensure newline at end of files
…on and usage instructions
…pes and improve error handling - Changed constructor to accept GoogleGenAIOptions instead of GoogleGenAIProviderOptions. - Introduced GoogleGenerateTextOptions and GoogleStreamTextOptions for better type safety. - Enhanced error handling for API key and Vertex AI configuration. - Refactored stream processing methods to utilize new state management and improve clarity.
…thentication guidelines
…examples and Vertex AI details
Hey @foxy17 , |
Hey! If you’d like to add a changeset, that would be awesome but no pressure at all. Here’s a quick guide on how to create one: Thanks again for the contribution ⚡ |
@omeraplak Added the changeset, let me know if anything else is needed. Waiting for this to be merge so that I can start working on the Generate Object and Stream object part! |
Thanks so much for the contribution! 🙌 Just merged really appreciate the effort. |
Adds the initial implementation for the Google Generative AI provider (
@voltagent/google-ai
).This includes:
GoogleGenAIProvider
class implementingLLMProvider
.@google/genai
SDK.generateText
.streamText
,generateObject
, andstreamObject
.GoogleGenAIProviderOptions
.tsup.config.ts
,tsconfig.json
) and package (package.json
) setup.