examples/ai-agent/README.md
Example project demonstrating queue-driven Rivet Actor AI agents with streaming Vercel AI SDK responses.
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/ai-agent
npm install
npm run dev
for await over c.queue.iter(...) inside the run loopOPENAI_API_KEYThe AgentManager creates and tracks agent actors, while each AI agent Rivet Actor consumes queue messages in run and streams responses with the Vercel AI SDK.
src/actors.ts)frontend/App.tsx)src/server.ts)Read more about queues, run handlers, state, and events.
MIT