temporarily remove puppeteer; TODO: switch to playwright for web browsing
parent
6bdec72cb6
commit
66f5c69afb
|
@ -24,9 +24,7 @@ struct Humanus : ToolCallAgent {
|
||||||
const ToolCollection& available_tools = ToolCollection( // Add general-purpose tools to the tool collection
|
const ToolCollection& available_tools = ToolCollection( // Add general-purpose tools to the tool collection
|
||||||
{
|
{
|
||||||
std::make_shared<PythonExecute>(),
|
std::make_shared<PythonExecute>(),
|
||||||
std::make_shared<Puppeteer>(), // for web browsing
|
|
||||||
std::make_shared<Filesystem>(),
|
std::make_shared<Filesystem>(),
|
||||||
// std::make_shared<Shell>(),
|
|
||||||
std::make_shared<Terminate>()
|
std::make_shared<Terminate>()
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
|
@ -6,7 +6,7 @@ namespace prompt {
|
||||||
|
|
||||||
namespace humanus {
|
namespace humanus {
|
||||||
const char* SYSTEM_PROMPT = "\
|
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.
|
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.
|
- 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.
|
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.
|
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.
|
||||||
|
|
Loading…
Reference in New Issue