Skip to content

docs: add model_id to before_llm_call hook payload documentation #2924

@aheritier

Description

@aheritier

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/agentFor work that has to do with the general agent loop/agentic features of the appgood first issueGood for newcomerskind/docsDocumentation-only changes

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions