Summary
The before_llm_call hook payload includes a model_id field — this is documented in the code (types.go:177-186: "ModelID identifies the model the runtime is about to call (for before_llm_call) or just called (for after_llm_call)") and confirmed in hooks.go:424-430.
However, docs/configuration/hooks/index.md only lists iteration for the before_llm_call table row, omitting model_id.
Fix needed
In the hook payload table, update the before_llm_call row from:
| `before_llm_call` | `iteration` — 1-based run-loop iteration counter |
to:
| `before_llm_call` | `iteration` — 1-based run-loop iteration counter; `model_id` — the model about to be called |
Context
Discovered during review of PR #2923 (which fixed model_id for after_llm_call). The before_llm_call omission pre-dates that PR.
Summary
The
before_llm_callhook payload includes amodel_idfield — this is documented in the code (types.go:177-186: "ModelID identifies the model the runtime is about to call (for before_llm_call) or just called (for after_llm_call)") and confirmed inhooks.go:424-430.However,
docs/configuration/hooks/index.mdonly listsiterationfor thebefore_llm_calltable row, omittingmodel_id.Fix needed
In the hook payload table, update the
before_llm_callrow from:to:
Context
Discovered during review of PR #2923 (which fixed
model_idforafter_llm_call). Thebefore_llm_callomission pre-dates that PR.