import { createAgent } from "spinai";
import { openai } from "@ai-sdk/openai";
const agent = createAgent({
instructions: "Help users with support tickets",
actions: [getCustomerInfo, createTicket],
model: openai("gpt-4o"),
});
const { response } = await agent({
input: "I want a refund",
});