Skip to content

Conversation

@voltagent-bot
Copy link
Member

@voltagent-bot voltagent-bot commented May 1, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@voltagent/[email protected]

Patch Changes

  • e5b3a46 Thanks @omeraplak! - feat: enhance API Overview documentation

    • Added curl examples for all key generation endpoints (/text, /stream, /object, /stream-object).
    • Clarified that userId and conversationId options are optional.
    • Provided separate curl examples demonstrating usage both with and without optional parameters (userId, conversationId).
    • Added a new "Common Generation Options" section with a detailed table explaining parameters like temperature, maxTokens, contextLimit, etc., including their types and default values.
  • 4649c3c Thanks @omeraplak! - fix: improve agent event handling and error processing

    • Enhanced start event emission in agent operations
    • Fixed timeline event creation for agent operations
  • 8e6d2e9 Thanks @omeraplak! - feat: Allow passing arbitrary provider-specific options via the provider object in agent generation methods (generateText, streamText, etc.).

    Added an index signature [key: string]: unknown; to the ProviderOptions type (voltagent/packages/core/src/agent/types.ts). This allows users to pass any provider-specific parameters directly through the provider object, enhancing flexibility and enabling the use of features not covered by the standard options.

    Example using a Vercel AI SDK option:

    import { Agent } from "@voltagent/core";
    import { VercelProvider } from "@voltagent/vercel-ai";
    import { openai } from "@ai-sdk/openai";
    
    const agent = new Agent({
      name: "Example Agent",
      llm: new VercelProvider(),
      model: openai("gpt-4o-mini"),
    });
    
    await agent.streamText("Tell me a joke", {
      provider: {
        // Standard options can still be used
        temperature: 0.7,
        // Provider-specific options are now allowed by the type
        experimental_activeTools: ["tool1", "tool2"],
        anotherProviderOption: "someValue",
      },
    });

[email protected]

Patch Changes

@voltagent/[email protected]

Patch Changes

  • 340feee Thanks @omeraplak! - fix: Add index signature [key: string]: any; to GoogleProviderRuntimeOptions. This allows passing arbitrary extra options to the Google AI provider, alongside refactoring types to prevent TypeScript deep instantiation errors.

  • Updated dependencies [e5b3a46, 4649c3c, 8e6d2e9]:

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 1, 2025

Deploying voltagent with  Cloudflare Pages  Cloudflare Pages

Latest commit: d2f8d7f
Status: ✅  Deploy successful!
Preview URL: https://821c7bfd.voltagent.pages.dev
Branch Preview URL: https://changeset-release-main.voltagent.pages.dev

View logs

@voltagent-bot voltagent-bot force-pushed the changeset-release/main branch 2 times, most recently from 5fdc65d to 950988e Compare May 1, 2025 23:36
@voltagent-bot voltagent-bot force-pushed the changeset-release/main branch from 950988e to d2f8d7f Compare May 3, 2025 21:09
@omeraplak omeraplak merged commit ab4ed08 into main May 3, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants