Skip to content

Conversation

@LeightonWang
Copy link

When calling find_dependencies with entity_type is "class", if the class is inherited from a base class, the tool returns a simple name of the base class instead of the full path of it.

For example, if we parse OpenHands and call find_dependencies:

tools = CodeExploreTools("path/to/OpenHands")
print(tools.find_dependencies(entity_id="openhands.llm.async_llm.AsyncLLM", entity_type="class"))

It returns

Dependencies of class openhands.llm.async_llm.AsyncLLM:
Inherits from following classes:
- LLM

While find_references shows the full paths of the classes inherits from it. So I add some functions to make the return of find_references become

Dependencies of class openhands.llm.async_llm.AsyncLLM:
Inherits from following classes:
- openhands.llm.llm.LLM

@LeightonWang LeightonWang marked this pull request as draft January 8, 2026 09:13
@LeightonWang LeightonWang marked this pull request as ready for review January 8, 2026 09:13
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.

1 participant