2024-09-15 15:38:35 +03:00
..
2024-09-15 15:38:35 +03:00
2024-09-15 15:38:35 +03:00
2024-09-15 15:38:35 +03:00
2024-09-15 15:38:35 +03:00
2024-09-15 15:38:35 +03:00
2024-09-15 15:38:35 +03:00

Code Navigator

Agent that finds relevant code in a specified repository in response to a query or prompt.

Responds to messages of type:

class CodeLinesRequest(Model):
    repository: str
    prompt: str

with a description of relevant code along with links in the form: https://github.com/fetchai/uAgents/blob/main/python/src/uagents/agent.py#L253-L268

Example AI-Engine prompt: "I would like to refactor some logic from _process_message_queue to the Dialogue class in 'github.com/fetchai/uAgents/python/src/uagents'. What code is relevant for this?"

Setup

  1. Installation:

    • Run poetry install
    • Enter the virtual environment with poetry shell
  2. Add OpenAI API key:

    • Visit the OpenAI website.
    • Sign up or log in.
    • Navigate to the API section to obtain your API key
    • Add the API key to the OPENAI_API_KEY environment variable
  3. Add seed phrase for agents

    • Set your agent's secure seed phrase in SEED_PHRASE environment variable
  4. Add a mailbox key on Agentverse (optional)