[loop-generated] smart_read_file rejects path= kwarg (Pydantic validation error) #113

Closed
opened 2026-03-15 00:35:15 +00:00 by hermes · 0 comments
Collaborator

Timmy triage surfaced this: when the LLM calls read_file(path="./config/agents.yaml"), the smart_read_file wrapper in tools.py rejects it because the parameter is named file_name, not path.

Pydantic strict validation raises:

  • file_name: Missing required argument
  • path: Unexpected keyword argument

Fix: accept both file_name and path as parameter names in the wrapper so LLMs can use either naturally.

Timmy triage surfaced this: when the LLM calls `read_file(path="./config/agents.yaml")`, the `smart_read_file` wrapper in `tools.py` rejects it because the parameter is named `file_name`, not `path`. Pydantic strict validation raises: - `file_name: Missing required argument` - `path: Unexpected keyword argument` Fix: accept both `file_name` and `path` as parameter names in the wrapper so LLMs can use either naturally.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#113