Untitled conversation
- User
[BUG] @Tool methods not inherited from superclas
@Toolmethods not inherited from superclass. I think this is a bug as this is something that should work.I didn't 100% verify this, but my inherited tools weren't being called and the LLM was stating that it didn't know what tool to call. Once I put the tool methods back in the concrete class, things worked, so I'm assuming that this bug report is true.
This should be done in LC4J too if it already doesn't work there.
Interface
No new interfaces are introduced.
- Assistant
I’ll trace how tool methods are discovered, reproduce the superclass case with a focused test, then patch and run the relevant module tests.
- Assistant
The failure is in two discovery paths: core tool specification generation and AI Service executable-tool registration both inspect only methods declared directly on the concrete class. I’m checking override, visibility, and duplicate-name behavior so inheritance doesn’t regress existing non-public tools.
- Assistant
The regression test now passes for both discovery and actual invocation of a public tool inherited from a superclass, while a package-private tool declared on the concrete class remains supported. I’m doing the repository formatting check and a final diff review.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.