Initial commit from agent-native create

This commit is contained in:
agent-native
2026-07-29 11:50:08 +00:00
commit 138d195e4c
122 changed files with 7355 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { defineAction } from "@agent-native/core/action";
import { z } from "zod";
export default defineAction({
description: "Return a friendly greeting.",
schema: z.object({
name: z.string().default("world").describe("Name to greet"),
}),
http: { method: "GET" },
run: async ({ name }) => {
return { message: `Hello, ${name}!` };
},
});