CharlesIrvine
I just published a free course on building agents using Elixir.
Elixir agents combine language models with tools and feedback loops to reason and act autonomously, moving beyond single-shot responses to iterative problem-solving. Build a research assistant that searches the web and private knowledge bases, weighs conflicting sources, and serves answers via terminal or web UI.
- Contents
- Step 3 — Module 1: a model, a tool, and the loopBuilding the core Model, Tool, and Step abstractions, a first web-search tool, and the THINK-ACT-OBSERVE loop into a working ToolCallingAgent script.
- Step 11 — The capstoneCombining all prior modules into a capstone research-assistant agent with CLI and web entry points.
- Step 5 — Module 3: a second agent style that writes codeBuilding a CodeAgent that has the model write and evaluate Elixir code directly, with sandboxing.
- Step 2 — Dependencies, config, and your API keyConfiguring mix.exs, the Application module, runtime config, and environment files, then fetching dependencies.
- What you’ll buildOverview of the finished research-assistant agent and its capabilities.
- Before you startSetup expectations, what the Anthropic API key is for, and what to expect from the tutorial process.
- Step 8 — Module 6: loading tools over MCPBuilding an MCP server and client from scratch to load tools from another process.
- Step 6 — Module 4: retrieval (RAG)Adding local embedding dependencies and building a knowledge-base tool with cosine similarity retrieval.
- Step 9 — Module 7: a streaming web UIBuilding a Plug/Bandit web UI with a router and streaming responses via Server-Sent Events.
- What is an agent?Explains what an agentic AI system is and how tool calling actually works under the hood.
- A note on safety / Where to go nextClosing remarks on safety considerations and pointers for further exploration.
- Step 7 — Module 5: multiple agentsImplementing a manager/worker multi-agent pattern using as_tool/1 and a page-reading tool.
- Step 10 — Module 8: seeing what it did and what it costAdding telemetry helpers for observability and per-run cost tracking.
- Who this is for / What you’ll needIntroductory notes on the target audience and prerequisites for the tutorial.
- Step 4 — Module 2: writing your own toolAdding a hand-written weather tool to the agent and verifying it works.
- Step 1 — Create the Mix projectCreating the new Mix project and setting up .gitignore.
It’s at:
Feedback would be appreciated.
Cheers, Chuck
Trending in Other Resources
AI assistants now write a lot of our Elixir and Erlang, and they’re fluent at it. What they get wrong is quieter: code that compiles, rea...
New
I just published a free course on building agents using Elixir.
Elixir agents combine language models with tools and feedback loops to ...
New
Other Trending Topics
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with.
But I don’t use it anymore.
Serverless was the promis...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #security
- #hex










Showing Posts 1 to 1- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
CharlesIrvine
Actually, it’s more accurate to call it a tutorial. Just gets your feet wet.