Skip to content

docs: fix on_llm_start docstring to match actual method signature#428

Closed
themavik wants to merge 1 commit into
2FastLabs:mainfrom
themavik:fix/360-on-llm-start-docstring
Closed

docs: fix on_llm_start docstring to match actual method signature#428
themavik wants to merge 1 commit into
2FastLabs:mainfrom
themavik:fix/360-on-llm-start-docstring

Conversation

@themavik

@themavik themavik commented Feb 11, 2026

Copy link
Copy Markdown

Summary

The AgentCallbacks.on_llm_start docstring documents parameters that don't exist in the method signature and uses wrong names for those that do.

Changes

  • agent_name in docstring changed to name (matching the actual parameter name)
  • Removed messages parameter from docstring (not part of the method signature; messages is a parameter on on_agent_start, not on_llm_start)
  • Updated payload_input description to say "LLM's input" instead of "agent's input"

Test Plan

  • Documentation-only change, no runtime behavior affected

Fixes #360

The docstring for `AgentCallbacks.on_llm_start` documented parameters
that don't exist in the method signature (`agent_name`, `messages`)
and omitted the actual parameter name (`name`).

- Changed `agent_name` to `name` to match the method signature
- Removed `messages` parameter (not part of the signature)
- Updated `payload_input` description for clarity

Fixes #360
@themavik themavik closed this by deleting the head repository Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Agent callback - on_llm_start documentation

1 participant