Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by calcsam

10 months ago

We originally were wrapping AI SDK, but that confused people who wanted to use both, so we decided to make the API more explicit, eg:

import { Agent } from "@mastra/core/agent"; import { openai } from "@ai-sdk/openai";

export const myAgent = new Agent({ name: "My Agent", instructions: "You are a helpful assistant.", model: openai("gpt-4o-mini"), });

0 comments

calcsam

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities