Mix.install([
{:ortex, "~> 0.1.9"},
{:image, "~> 0.37"},
{:nx_image, "~> 0.1.2"},
{:exla, "~> 0.7.2"},
{:kino, "~> 0.12.3"},
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule ElixirAiAgent do | |
| @moduledoc """ | |
| A minimal ai agent implementation showcasing how simple it is to build AI agents in Elixir. | |
| Combines agent logic and server management in one module. | |
| """ | |
| use GenServer | |
| alias LangChain.Chains.LLMChain | |
| alias LangChain.Message |