This is a GitHub template that I use to start my Agent apps. It started from the npm create cloudflare@latest and then used the React Framework.
It should be all set to go with Agents.
TODO: Remember to change
- package.json name of the app
- wrangler.jsonc the name of the app
- [agents/my-agent.ts] Class name should match
- Change the import/export in [worker/index.ts]
- wrangler.jsonc the name of the agent, both class name and name
- src/App.tsx update the agent name in the
useAgentcall