Agentic.Strategy behaviour
(agentic v0.2.2)
Copy Markdown
Behaviour for orchestration strategies.
A strategy controls how the agent loop runs: it can modify opts before each run, decide whether to re-run, react to events, and contribute telemetry tags.
Callbacks
| Callback | When | Purpose |
|---|---|---|
init/1 | Before first run | Strategy-specific setup |
prepare_run/2 | Before each Agentic.run | Modify profile, mode, system prompt, etc. |
handle_result/3 | After each run completes | Decide: done, rerun, or record |
telemetry_tags/0 | In telemetry events | Strategy-specific dimensions |