Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

338 B
Raw Blame
import { defineTool } from "eve/tools";
import { z } from "zod";

export default defineTool({
  description: "Look up an invoice's amount, status, and line items.",
  deferred: true,
  inputSchema: z.strictObject({ invoiceId: z.string() }),
  async execute({ invoiceId }) {
    return { amount: 120, invoiceId, status: "paid" };
  },
});