Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make use of microagents configurable in codeact_agent #4931

Closed
neubig opened this issue Nov 12, 2024 · 2 comments · Fixed by #4932
Closed

Make use of microagents configurable in codeact_agent #4931

neubig opened this issue Nov 12, 2024 · 2 comments · Fixed by #4932
Assignees
Labels
enhancement New feature or request fix-me Attempt to fix this issue with OpenHands

Comments

@neubig
Copy link
Contributor

neubig commented Nov 12, 2024

What problem or use case are you trying to solve?

In codeact_agent.py, currently all microagents that have prompts in the micro directory are enabled by default:

self.prompt_manager = PromptManager(
microagent_dir=os.path.join(os.path.dirname(__file__), 'micro'),
prompt_dir=os.path.join(os.path.dirname(__file__), 'prompts', 'tools'),
)

microagent_files = []
if microagent_dir:
microagent_files = [
os.path.join(microagent_dir, f)
for f in os.listdir(microagent_dir)
if f.endswith('.md')
]

Describe the UX of the solution you'd like

It would be better if we could customize (1) whether to use microagents, (2) which microagents to exclude.

We could add arguments to the AgentConfig that is passed in to CodeActAgent:

  • use_microagents: bool whether to use at all
  • disabled_microagents: list[str] a list of microagents to disable

Do you have thoughts on the technical implementation?

If use_microagents is set to False, we can simply set microagents_dir in PromptManager to None.

Additional context

Discussion on slack: https://openhands-ai.slack.com/archives/C07V9BMGHH6/p1731413460742369

@neubig neubig added enhancement New feature or request fix-me Attempt to fix this issue with OpenHands labels Nov 12, 2024
@neubig neubig self-assigned this Nov 12, 2024
Copy link
Contributor

OpenHands started fixing the issue! You can monitor the progress here.

Copy link
Contributor

A potential fix has been generated and a draft PR #4932 has been created. Please review the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fix-me Attempt to fix this issue with OpenHands
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant