Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

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

export default defineTool({
  description:
    "Smoke-test fixture: echoes the input as structured output. Only call when the user explicitly asks to use `structured-echo`.",
  inputSchema: z.object({
    label: z.string().describe("Any label string."),
  }),
  async execute(input) {
    return {
      echoed: input.label,
      timestamp: 1700000000,
      nested: { ok: true },
    };
  },
});