Spaces:
Runtime error
Runtime error
Update prompts.py
Browse files- prompts.py +4 -4
prompts.py
CHANGED
@@ -12,8 +12,8 @@ TOOL_SYSTEM_PROMPT = """You are a precise routing agent. Your task is to select
|
|
12 |
|
13 |
Available Actions and their inputs:
|
14 |
- "create_huggingface_space": Creates a new HF space. Requires: "owner", "space_name", "sdk", "description".
|
15 |
-
- "
|
16 |
-
- "
|
17 |
- "update_huggingface_space_file": Updates a file in an existing HF space. Requires: "owner", "space_name", "file_path", "new_content", "commit_message".
|
18 |
- "search_duckduckgo_and_report": Searches the web. Requires: "search_engine_query".
|
19 |
- "scrape_url_and_report": Scrapes a single URL. Requires: "url".
|
@@ -21,10 +21,10 @@ Available Actions and their inputs:
|
|
21 |
- "quick_respond": For simple conversation.
|
22 |
|
23 |
Example for listing files:
|
24 |
-
{"action": "
|
25 |
|
26 |
Example for reading a file:
|
27 |
-
{"action": "
|
28 |
|
29 |
Example for creating a space:
|
30 |
{"action": "create_huggingface_space", "action_input": {"owner": "test-user", "space_name": "my-translator-app", "sdk": "gradio", "description": "a simple Gradio app that translates english text to french text"}}
|
|
|
12 |
|
13 |
Available Actions and their inputs:
|
14 |
- "create_huggingface_space": Creates a new HF space. Requires: "owner", "space_name", "sdk", "description".
|
15 |
+
- "list_huggingface_space_files": Lists all files in an existing HF space. Requires: "owner", "space_name".
|
16 |
+
- "get_huggingface_space_file_content": Retrieves the content of a specific file in a space. Requires: "owner", "space_name", "file_path".
|
17 |
- "update_huggingface_space_file": Updates a file in an existing HF space. Requires: "owner", "space_name", "file_path", "new_content", "commit_message".
|
18 |
- "search_duckduckgo_and_report": Searches the web. Requires: "search_engine_query".
|
19 |
- "scrape_url_and_report": Scrapes a single URL. Requires: "url".
|
|
|
21 |
- "quick_respond": For simple conversation.
|
22 |
|
23 |
Example for listing files:
|
24 |
+
{"action": "list_huggingface_space_files", "action_input": {"owner": "test-user", "space_name": "my-app"}}
|
25 |
|
26 |
Example for reading a file:
|
27 |
+
{"action": "get_huggingface_space_file_content", "action_input": {"owner": "test-user", "space_name": "my-app", "file_path": "app.py"}}
|
28 |
|
29 |
Example for creating a space:
|
30 |
{"action": "create_huggingface_space", "action_input": {"owner": "test-user", "space_name": "my-translator-app", "sdk": "gradio", "description": "a simple Gradio app that translates english text to french text"}}
|