Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

add prompt, env example, config

Eddie Cohen4d8de551b54f
diff --git a/.env.template b/.env.template
index b8140dd84c..9013560fa8 100644
--- a/.env.template
+++ b/.env.template
@@ -99,6 +99,16 @@ IMAGE_PROVIDER=dalle
# HUGGINGFACE_API_TOKEN - HuggingFace API token (Example: my-huggingface-api-token)
HUGGINGFACE_API_TOKEN=your-huggingface-api-token
+################################################################################
+### GIT Provider for repository actions
+################################################################################
+
+### GITHUB
+# GITHUB_API_KEY - Github API key / PAT (Example: github_pat_123)
+# GITHUB_USERNAME - Github username
+GITHUB_API_KEY=github_pat_123
+GITHUB_USERNAME=your-github-username
+
################################################################################
### SEARCH PROVIDER
################################################################################
diff --git a/autogpt/config/config.py b/autogpt/config/config.py
index 667c817820..1fe4a870c8 100644
--- a/autogpt/config/config.py
+++ b/autogpt/config/config.py
@@ -55,6 +55,9 @@ class Config(metaclass=Singleton):
self.use_brian_tts = False
self.use_brian_tts = os.getenv("USE_BRIAN_TTS")
+
+ self.github_api_key = os.getenv("GITHUB_API_KEY")
+ self.github_username = os.getenv("GITHUB_USERNAME")
self.google_api_key = os.getenv("GOOGLE_API_KEY")
self.custom_search_engine_id = os.getenv("CUSTOM_SEARCH_ENGINE_ID")
diff --git a/autogpt/prompt.py b/autogpt/prompt.py
index 050c2560de..20492978eb 100644
--- a/autogpt/prompt.py
+++ b/autogpt/prompt.py
@@ -55,6 +55,7 @@ def get_prompt() -> str:
),
("List GPT Agents", "list_agents", {}),
("Delete GPT Agent", "delete_agent", {"key": "<key>"}),
+ ("Clone Repository", "clone_repository", {"repository_url": "<url>", "clone_path": "<directory>"}),
("Write to file", "write_to_file", {"file": "<file>", "text": "<text>"}),
("Read file", "read_file", {"file": "<file>"}),
("Append to file", "append_to_file", {"file": "<file>", "text": "<text>"}),