Search
Search docs, blog posts, and ecosystem packages with citations.
Enter a query to see grounded citations.
Build your first AI agent in minutes
defp deps do
[
{:jido, "~> 2.0"},
{:jido_ai, "~> 2.0"}
]
end
defmodule MyApp.WeatherAgent do
use Jido.AI.Agent,
name: "weather_agent",
description: "Weather Q&A agent",
tools: [
Jido.Tools.Weather,
Jido.Tools.Weather.ByLocation,
Jido.Tools.Weather.Forecast,
Jido.Tools.Weather.CurrentConditions,
Jido.Tools.Weather.Geocode
],
system_prompt: ~S|You are a weather planning assistant.
Use weather tools to answer with practical advice.|
end
iex> {:ok, pid} = Jido.AgentServer.start(agent: MyApp.WeatherAgent)
iex> {:ok, request} = MyApp.WeatherAgent.ask(pid, "What's the weather in Tokyo?")
iex> {:ok, answer} = MyApp.WeatherAgent.await(request)
iex> {:ok, answer} = MyApp.WeatherAgent.ask_sync(pid, "Should I bring an umbrella?")