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

[Feature]: Add input-based micro-agents to support template workflows #5826

Open
xingyaoww opened this issue Dec 26, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@xingyaoww
Copy link
Collaborator

xingyaoww commented Dec 26, 2024

What problem or use case are you trying to solve?
We need to extend micro-agents to support template-based workflows. Currently, micro-agents are triggered by keywords and inject specialized knowledge (e.g., GitHub API understanding). However, users often find themselves repeatedly typing similar prompts that could be templatized.

For example, a template for addressing PR comments could be a micro-agent that accepts inputs:

Can you look at this PR ${PR_URL}
And then check out to branch ${BRANCH_NAME} which corresponds to that PR
Then, read the diff against the main, understand the purpose of this PR, and then address the PR comments.
${USER_MESSAGE}

Describe the UX of the solution you'd like
Micro-agents would have two triggering mechanisms:

  1. Traditional keyword-based triggers (e.g., .openhands_instruction)
  2. UI-based selection where users can pick a micro-agent and provide required inputs via a form in FE

For future: If the user did NOT provide those inputs, the micro-agent itself can conversationally ask users for the required information.

Do you have thoughts on the technical implementation?

  • Add an inputs parameter to the micro-agent system to specify required template variables
  • Store micro-agent templates in the repository (e.g., in the existing micro-agents location)
  • Add UI elements:
    • Button to create new micro-agent templates
    • "Save" button to automatically create PRs against the repository
  • Future potential: Build an API to trigger these micro-agents (e.g., /start_session?workflow=resolve_issue)

Additional context
This enhancement maintains the existing micro-agent concept while adding template capabilities. Rather than creating separate systems for specialized knowledge injection and templated workflows, we're unifying them under the micro-agent framework with support for both keyword triggers and user-supplied inputs.

How's this revised version that maintains the micro-agent terminology while incorporating the template functionality?

@xingyaoww xingyaoww added the enhancement New feature or request label Dec 26, 2024
@xingyaoww xingyaoww changed the title [Feature]: More advanced prompt library / template [Feature]: Add input-based micro-agents to support template workflows Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant