Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

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

export default defineTool({
  description: "Apply a percentage discount to a customer's next invoice.",
  deferred: true,
  inputSchema: z.strictObject({ customer: z.string(), percent: z.number() }),
  async execute({ customer, percent }) {
    return { applied: true, customer, percent };
  },
});