Purpose
This is the smallest complete Jidoka example. It defines one agent, sends one text request, and returns one final answer.
Features
agent definition
-> prompt preflight
-> one model call
-> final text answerThe example is deterministic. It does not need a provider key, network request, recorded response, tool, session, or store.
The preflight report is also the local-inspection proof: it exposes the exact prompt and confirms that no model or operation ran. The chat then injects one provider-free model function through the normal production turn path.
Read It In This Order
lib/agent.ex- the application code to copy.lib/scenario.ex- deterministic local execution for this example.test/getting_started_test.exs- the application behavior check.example.exs- the guided command runner.getting_started.livemd- the interactive walkthrough.
The agent module is the production pattern. The scenario, injected model function, runner, manifest, and test are example support. In production, the agent uses its declared model and the provider credentials from the runtime environment.
Run It
mix run examples/getting_started/example.exs
mix test --only example:getting_started
mix test examples/getting_started/test/getting_started_test.exs --trace
Open getting_started.livemd to inspect the compiled agent, preview its exact
prompt, and run the same deterministic chat.
Expected Result
The command prints the normalized agent id, prompt messages, and this fixed
answer: I can explain Jidoka agents and help you build one.
Next Guide
Read Getting Started for the package path. When this flow is clear, continue with the Support Agent to add a tool and an approval path.