Skip to content

ci(changesets): version packages#95

Merged
omeraplak merged 1 commit intomainfrom
changeset-release/main
May 6, 2025
Merged

ci(changesets): version packages#95
omeraplak merged 1 commit intomainfrom
changeset-release/main

Conversation

@voltagent-bot
Copy link
Copy Markdown
Member

@voltagent-bot voltagent-bot commented May 6, 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/core@0.1.12

Patch Changes

  • #94 004df81 Thanks @omeraplak! - feat: Add Langfuse Observability Exporter

    This introduces a new package @voltagent/langfuse-exporter that allows you to export OpenTelemetry traces generated by @voltagent/core directly to Langfuse (https://langfuse.com/) for detailed observability into your agent's operations.

    How to Use:

    Installation

    Install the necessary packages:

    npm install @voltagent/langfuse-exporter

    Configuration

    Configure the LangfuseExporter and pass it to VoltAgent:

    import { Agent, VoltAgent } from "@voltagent/core";
    import { VercelAIProvider } from "@voltagent/vercel-ai";
    import { openai } from "@ai-sdk/openai";
    
    import { LangfuseExporter } from "@voltagent/langfuse-exporter";
    
    // Ensure LANGFUSE_SECRET_KEY and LANGFUSE_PUBLIC_KEY are set in your environment
    
    // Define your agent(s)
    const agent = new Agent({
      name: "my-voltagent-app",
      description: "A helpful assistant that answers questions without using tools",
      llm: new VercelAIProvider(),
      model: openai("gpt-4o-mini"),
    });
    
    // Configure the Langfuse Exporter
    const langfuseExporter = new LangfuseExporter({
      publicKey: process.env.LANGFUSE_PUBLIC_KEY,
      secretKey: process.env.LANGFUSE_SECRET_KEY,
      baseUrl: process.env.LANGFUSE_BASE_URL, // Optional: Defaults to Langfuse Cloud
      // debug: true // Optional: Enable exporter logging
    });
    
    // Initialize VoltAgent with the exporter
    // This automatically sets up OpenTelemetry tracing
    new VoltAgent({
      agents: {
        agent, // Register your agent(s)
      },
      telemetryExporter: langfuseExporter, // Pass the exporter instance
    });
    
    console.log("VoltAgent initialized with Langfuse exporter.");
    
    // Now, any operations performed by 'agent' (e.g., agent.generateText(...))
    // will automatically generate traces and send them to Langfuse.

    By providing the telemetryExporter to VoltAgent, OpenTelemetry is automatically configured, and detailed traces including LLM interactions, tool usage, and agent metadata will appear in your Langfuse project.

@voltagent/langfuse-exporter@0.1.1

Patch Changes

  • #94 004df81 Thanks @omeraplak! - feat: Add Langfuse Observability Exporter

    This introduces a new package @voltagent/langfuse-exporter that allows you to export OpenTelemetry traces generated by @voltagent/core directly to Langfuse (https://langfuse.com/) for detailed observability into your agent's operations.

    How to Use:

    Installation

    Install the necessary packages:

    npm install @voltagent/langfuse-exporter

    Configuration

    Configure the LangfuseExporter and pass it to VoltAgent:

    import { Agent, VoltAgent } from "@voltagent/core";
    import { VercelAIProvider } from "@voltagent/vercel-ai";
    import { openai } from "@ai-sdk/openai";
    
    import { LangfuseExporter } from "@voltagent/langfuse-exporter";
    
    // Ensure LANGFUSE_SECRET_KEY and LANGFUSE_PUBLIC_KEY are set in your environment
    
    // Define your agent(s)
    const agent = new Agent({
      name: "my-voltagent-app",
      description: "A helpful assistant that answers questions without using tools",
      llm: new VercelAIProvider(),
      model: openai("gpt-4o-mini"),
    });
    
    // Configure the Langfuse Exporter
    const langfuseExporter = new LangfuseExporter({
      publicKey: process.env.LANGFUSE_PUBLIC_KEY,
      secretKey: process.env.LANGFUSE_SECRET_KEY,
      baseUrl: process.env.LANGFUSE_BASE_URL, // Optional: Defaults to Langfuse Cloud
      // debug: true // Optional: Enable exporter logging
    });
    
    // Initialize VoltAgent with the exporter
    // This automatically sets up OpenTelemetry tracing
    new VoltAgent({
      agents: {
        agent, // Register your agent(s)
      },
      telemetryExporter: langfuseExporter, // Pass the exporter instance
    });
    
    console.log("VoltAgent initialized with Langfuse exporter.");
    
    // Now, any operations performed by 'agent' (e.g., agent.generateText(...))
    // will automatically generate traces and send them to Langfuse.

    By providing the telemetryExporter to VoltAgent, OpenTelemetry is automatically configured, and detailed traces including LLM interactions, tool usage, and agent metadata will appear in your Langfuse project.

  • Updated dependencies [004df81]:

    • @voltagent/core@0.1.12

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 6, 2025

Deploying voltagent with  Cloudflare Pages  Cloudflare Pages

Latest commit: 716b5c4
Status:⚡️  Build in progress...

View logs

@voltagent-bot voltagent-bot force-pushed the changeset-release/main branch from de4d85b to a876a93 Compare May 6, 2025 01:01
@voltagent-bot voltagent-bot force-pushed the changeset-release/main branch from a876a93 to 716b5c4 Compare May 6, 2025 01:09
@omeraplak omeraplak merged commit e8c0e7c into main May 6, 2025
4 of 5 checks passed
@omeraplak omeraplak deleted the changeset-release/main branch May 6, 2025 01:13
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