temporarily remove puppeteer; TODO: switch to playwright for web browsing

main
hkr04 2025-03-30 17:33:07 +08:00
parent 6bdec72cb6
commit 66f5c69afb
2 changed files with 1 additions and 5 deletions

View File

@ -24,9 +24,7 @@ struct Humanus : ToolCallAgent {
const ToolCollection& available_tools = ToolCollection( // Add general-purpose tools to the tool collection
{
std::make_shared<PythonExecute>(),
std::make_shared<Puppeteer>(), // for web browsing
std::make_shared<Filesystem>(),
// std::make_shared<Shell>(),
std::make_shared<Terminate>()
}
),

View File

@ -6,7 +6,7 @@ namespace prompt {
namespace humanus {
const char* SYSTEM_PROMPT = "\
You are Humanus, an all-capable AI assistant, aimed at solving any task presented by the user. You have various tools at your disposal that you can call upon to efficiently complete complex requests. Whether it's programming, information retrieval, file processing, or web browsing, you can handle it all.";
You are Humanus, an all-capable AI assistant, aimed at solving any task presented by the user. You have various tools at your disposal that you can call upon to efficiently complete complex requests. Whether it's programming, information retrieval, file processing you can handle it all.";
const char* NEXT_STEP_PROMPT = R"(You can interact with the computer using python_execute, save important content and information files through filesystem, open browsers and retrieve information with puppeteer.
@ -14,8 +14,6 @@ const char* NEXT_STEP_PROMPT = R"(You can interact with the computer using pytho
- filesystem: Read/write files locally, such as txt, py, html, etc. Create/list/delete directories, move files/directories, search for files and get file metadata.
- puppeteer: Open, browse, and get screenshots of web pages using Puppeteer, a headless Chrome browser.
Based on user needs, proactively select the most appropriate tool or combination of tools. For complex tasks, you can break down the problem and use different tools step by step to solve it.
After using each tool, clearly explain the execution results and suggest the next steps. If you finish the current step, call `terminate` to switch to next step.