core beginner

Counter Agent

A real Jido agent that counts up and down using Actions, Signals, and signal routing. Demonstrates the core agent pattern: immutable state, validated actions, and LiveView integration.

getting-started state actions signals

Related guides and notebooks

Counter Agent
id: 019cc059…
0
current count
Raw Agent State
%Jido.Agent{
  id: "019cc059-042b-7bc4-9f18-b30cd037bc14",
  name: "counter_agent",
  description: "Simple counter demonstration",
  vsn: nil,
  category: nil,
  agent_module: AgentJido.Demos.CounterAgent,
  state: %{count: 0},
  schema: #Zoi.map<
    coerce: false,
    unrecognized_keys: :strip,
    fields: ["%{" | "}"]
  >,
  tags: []
}