←back to thread

638 points wut42 | 2 comments | | HN request time: 0.444s | source
Show context
nilirl ◴[] No.44329011[source]
Beautiful demo! How do I build agents like this?

Does anyone know any great resources to learn how to design agents? Tool agnostic resources would be awesome.

replies(1): >>44329453 #
1. chrismccord ◴[] No.44329453[source]
Thanks! Everything is overly complicated in this space. It's probably far easier than you think. The open secret is it's just a loop that POST [provider]/chat/completions.

Elixir is particularly well suited here. In Elixir this is a genserver doing http posts and reacting to the token stream. The LiveView chat gets messages from the genserver agent regardless of where it is on the planet, and the agent also communicates with the phoenix channel websocket talking to the IDE machines with regular messages, again anywhere they are on the planet.

I talk about this quite a bit in my ElixirConfEU talk and distill things down: https://youtu.be/ojL_VHc4gLk?si=MzQmz-vofWxWDrmo&t=1040

replies(1): >>44329928 #
2. nilirl ◴[] No.44329928[source]
Wow, thank you for the link, it clarified how tool calling and "choice-making" works.

It's like helping LLMs use a computer; like building an interface for it.

Ok, this is enough to get me started.