What you'll learn
- Action contracts and validation
- Agent state/schema fundamentals
- Signals and routing
- How to wire a dedicated LiveView demo:
AgentJidoWeb.Examples.AddressNormalizationAgentLive
How it works
This example focuses on one learning outcome: Action contracts and validation.
The interactive demo runs two deterministic payloads:
- A valid US-style address payload that normalizes into a canonical string.
- An invalid payload (missing
postal_code) that is rejected by the action contract.
Agent Boundary
- Agent module:
AgentJido.Demos.AddressNormalizationAgent - Execute action:
AgentJido.Demos.AddressNormalization.ExecuteAction - Reset action:
AgentJido.Demos.AddressNormalization.ResetAction - Agent API:
AddressNormalizationAgent.cmd/2
LiveView Boundary
- Demo module:
AgentJidoWeb.Examples.AddressNormalizationAgentLive - Demo source target:
lib/agent_jido_web/examples/address_normalization_agent_live.ex - Route:
/examples/address-normalization-agent
Demo flow
- Click Run Valid Payload to normalize a deterministic address sample.
- Click Run Invalid Payload to trigger action validation rejection.
- Click Reset to clear the demo state.
Prerequisites
training/agent-fundamentals
Story Link
Build this example in ST-EX-001 from specs/stories/07_examples_top20_liveview.md.