Expand description
The advise agent tool — ported from omp AdviseTool (advise-tool.ts).
The advisor LLM calls this to surface one piece of advice to the primary
agent. The tool applies a severity-rank dedupe (a call passes only when its
rank strictly exceeds the previously-delivered rank for that note — a real
escalation nit → concern → blocker), then hands accepted notes to a
host-provided EnqueueAdviceFn callback. The host owns the
crate::advisor::emission_guard::AdvisorEmissionGuard (the final
per-update/dedupe/content-free gate) and routes the note to the primary.
§Attribution
Translated to Rust from omp (oh-my-pi), MIT licensed.
Structs§
- Advise
Tool - The
adviseagent tool.
Type Aliases§
- Enqueue
Advice Fn - Host callback invoked for each dedupe-passing note. The host’s
crate::advisor::emission_guard::AdvisorEmissionGuard(not this tool) is the final accept/reject authority; this callback only fires when this tool’s own severity-rank gate admits the note.