Search
Search docs, blog posts, and ecosystem packages with citations.
Enter a query to see grounded citations.
Interactive Jido example showing how signal type routing maps into actions and executes through AgentServer.call/2 and AgentServer.cast/2.
defmodule AgentJido.Demos.SignalRouting.SetNameAction do
@moduledoc """
Sets a human-readable name in agent state.
"""
use Jido.Action,
name: "set_name",
description: "Sets agent name",
schema: [
name: [type: :string, required: true, doc: "Name to set on agent state"]
]
@impl true
@spec run(map(), map()) :: {:ok, map()}
def run(%{name: name}, _context) do
{:ok, %{name: name}}
end
end