from Hacker News

Show HN: Create AI Agents with React

by bazaz on 11/24/24, 8:03 PM with 2 comments

For the last couple of months, we've been exploring how to make agentic AI development more approachable for web developers.

Here's what we have, so far:

    import { Agent } from "react-agents";
    const NoteTaker = () => {
      return (
        <Agent>
          <Prompt>
            You are a note-taking assistant that helps organize and summarize information.
          </Prompt>
          <Memory type="vectorstore" />
        </Agent>
       )
    }
It's somewhat inspired by [Priompt](https://github.com/anysphere/priompt): instead of rendering a user interface, our framework renders a prompt + action interface for AI agents.

The renderer is backed by a stateful agentic runtime loop, with a library of components you can import to add capabilities like TTS, database and social media integration. We want the experience to feel nice and webby like Vercel, but for AI agents.

For those interested in trying it out:

    npm install usdk -g
    usdk create
We're particularly curious about: - Does this approach feel natural to React developers? Does it help you transition to agentic AI? - DX roadblocks we should fix for our next release - Integrations you'd like us to add (We already have Discord, X, and we're working on Twitter Spaces) - Different environments this can integrate with (we've tested local, electron, browser, and server)

The source is open and we're actively working on improvements.

Links: - [1] Homepage: https://upstreet.ai - [2] Documentation: https://docs.upstreet.ai - [3] Open-source GitHub repository: https://github.com/UpstreetAI/upstreet-core

  • by zohairhadi on 11/26/24, 5:29 PM

    in the process of building a agent which writes SDAs after taking a spreadsheet as a datasource. this was pretty easy to setup. would be even better if we're able to do this directly through the company comms channels like Slack or Discord.