← Back to context

Comment by bobremeika

3 days ago

A TypeScript first AI framework is something that has been missing. How do you work with AI SDK?

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"), });

Mine is written in TypeScript and I still think it's more ergonomic than anything else I'm seeing in the wild. Maybe there's finally an appetite for this stuff and I should release it. The Mastra dashboard looks pretty nice, might take some notes from it.