Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Optimize find_dependencies results when entity_type=='class'#14

Open
LeightonWang wants to merge 2 commits intoQuantaAlpha:main from
LeightonWang:main
Open

Optimize find_dependencies results when entity_type=='class' #14
LeightonWang wants to merge 2 commits intoQuantaAlpha:main from
LeightonWang:main

Conversation

@LeightonWang
Copy link

@LeightonWang LeightonWang commented Jan 7, 2026

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /