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 inheritance with a focused test, then patch the implementation and run the relevant module tests.
- Assistant
rgisn’t installed in this checkout, so I’m using the repository’s available search tools. The likely fault is reflective discovery using only declared methods, which excludes superclass members. - Assistant
The discovery path has the confirmed defect: both AI-service tool registration and low-level tool-spec generation inspect only
getDeclaredMethods(). I’m applying one shared reflection rule that preserves existing non-public methods declared on the concrete class while adding inherited public methods, and I’ll cover discovery plus execution. - Assistant
The regression tests now pass for both specification generation and actual executor invocation. I’m doing the final formatting and diff review next, including checking that existing support for package-private tools remains unchanged.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.