You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
agent = Agent("model_name", enable_memory = True)
agent.add_repo("url") # it will add the repo to the system prompt
agent.add_message("user", "Issue: xxx help me to solve it")
response = agent.generate_response()
The text was updated successfully, but these errors were encountered:
Related to #1
Add support for adding a GitHub repository to the `Agent` class.
* Add `add_repo` method to the `Agent` class in `llm_dialog_manager/agent.py` to update the `system_prompt` attribute with the provided repository URL.
* Update the `__init__` method of the `Agent` class to include the `repo_content` attribute.
* Add logic to `add_repo` method to accept username and repository name as input.
* Save repository content as a buffer and update it.
* Add repository content to the user message and empty the buffer using `self.repo_content.pop()`.
* Add tests for the `add_repo` method in `tests/test_agent.py`.
* Test `add_repo` method with direct repository URL.
* Test `add_repo` method with username and repository name.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/xihajun/llm_dialog_manager/issues/1?shareId=XXXX-XXXX-XXXX-XXXX).
The text was updated successfully, but these errors were encountered: