Skip to content

Comments

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

Open
themavik wants to merge 1 commit intoawslabs:mainfrom
themavik:fix/360-on-llm-start-docstring
Open

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

Conversation

@themavik
Copy link

@themavik themavik commented Feb 11, 2026

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 awslabs#360
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