a collection of examples on how to use river (it's like TRPC, but for streams/agents) in an actual project
shows off:
- an ai sdk agent with a bunch of tool calls in a contrived example
- a page which displays tool calls, steps, and text as they come in
- is fully durable, when you refresh the page, the stream will resume where it left off...
shows off:
- a
streamTextagent with a couple of tools - a page which displays tool calls, steps, and text as them come in
- is not actually live, it hits an ai endpoint and I'm not putting that live without a wall in front of it
shows off:
- a custom stream "agent" which will check each letter of a word to see if it's a vowel
- a page which displays the letters and their status as they come in
- is actually live: https://river-example-basic-custom.vercel.app