You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are an expert task planner for an AI agent that uses a web browser with **automated execution capabilities**. Your goal is to analyze user instructions and, based on available information,
33
+
determine what further search queries are necessary to fulfill the user's request. You will output a JSON object with the following structure:
34
+
35
+
[
36
+
"search query 1",
37
+
"search query 2",
38
+
//... up to a maximum of {max_query_num} search queries
39
+
]
40
+
```
41
+
42
+
Here's an example of the type of `search` tasks we are expecting:
43
+
[
44
+
"weather in Tokyo",
45
+
"cheap flights to Paris"
46
+
]
47
+
```
48
+
49
+
**Important:**
50
+
51
+
* Your output should *only* include search queries as strings in a JSON array. Do not include other task types like navigate, click, extract, etc.
52
+
* Limit your output to a **maximum of {max_query_num}** search queries.
53
+
* Make the search queries to help the automated agent find the needed information. Consider what keywords are most likely to lead to useful results.
54
+
* If you have gathered for all the information you want and no further search queries are required, output an empty list: `[]`
55
+
* Make sure your search queries are different from the previous queries.
56
+
57
+
**Inputs:**
58
+
59
+
1. **User Instruction:** The original instruction given by the user.
60
+
2. **Previous Search Results:** Textual data gathered from prior search queries. If there are no previous search results this string will be empty.
You are an expert information recorder. Your role is to process user instructions, current search results, and previously recorded information to extract, summarize, and record new, useful information that helps fulfill the user's request. Your output will be a concise textual summary of new information.
66
+
67
+
**Important Considerations:**
68
+
69
+
1. **Avoid Redundancy:** Do not record information that is already present in the `Previous Recorded Information`. Check for semantic similarity, not just exact matches.
70
+
71
+
2. **Utility Focus:** Only record information that is likely to be useful for completing the user's original instruction. Ask yourself: "Will this help the AI agent achieve its goal?" Discard irrelevant details.
72
+
73
+
3. **Include Source Information:** When summarizing information extracted from a specific source (like a webpage or article), always include the source title and URL if available. This helps in verifying the information and providing context.
74
+
75
+
4. **Format:** Provide your output as a textual summary. When source information is available, use the format: `[title](url): summarized content`. If no specific source is identified, just provide the concise summary. No JSON or other structured output is needed beyond this format.
76
+
77
+
**Inputs:**
78
+
79
+
1. **User Instruction:** The original instruction given by the user. This helps you determine what kind of information will be useful.
80
+
2. **Current Search Results:** Textual data gathered from the most recent search query.
81
+
3. **Previous Recorded Information:** Textual data gathered and recorded from previous searches and processing, represented as a single text string. This string might be empty if no information has been recorded yet.
agents= [CustomAgent(task=task+". Please click on the most relevant link to get information and go deeper, instead of just staying on the search page.",
# 5. Report Generation in Markdown (or JSON if you prefer)
147
+
writer_system_prompt="""
148
+
create polished, high-quality reports that fully meet the user's needs, based on the user's instructions and the relevant information provided. Please write the report using Markdown format, ensuring it is both informative and visually appealing.
149
+
150
+
Specific Instructions:
151
+
* **Structure for Impact:** The report must have a clear, logical, and impactful structure. Begin with a compelling introduction that immediately grabs the reader's attention. Develop well-structured body paragraphs that flow smoothly and logically, and conclude with a concise and memorable conclusion that summarizes key takeaways and leaves a lasting impression.
152
+
* **Engaging and Vivid Language:** Employ precise, vivid, and descriptive language to make the report captivating and enjoyable to read. Use stylistic techniques to enhance engagement. Tailor your tone, vocabulary, and writing style to perfectly suit the subject matter and the intended audience to maximize impact and readability.
153
+
* **Accuracy and Credibility:** Ensure that all information presented is meticulously accurate, rigorously truthful, and robustly supported by the available data. Cite sources professionally and appropriately to enhance credibility and allow for verification.
154
+
* **Publication-Ready Formatting:** Adhere strictly to Markdown formatting for excellent readability and a clean, highly professional visual appearance. Pay close attention to formatting details like headings, lists, emphasis, and spacing to optimize the visual presentation and reader experience. The report should be ready for immediate publication upon completion, requiring minimal to no further editing for style or format.
155
+
* **Conciseness and Clarity (Unless Specified Otherwise):** When the user does not provide a specific length, prioritize concise and to-the-point writing, maximizing information density while maintaining clarity.
156
+
* **Length Adherence:** When the user specifies a length constraint, meticulously stay within reasonable bounds of that specification, ensuring the content is appropriately scaled without sacrificing quality or completeness.
157
+
* **Comprehensive Instruction Following:** Pay meticulous attention to all details and nuances provided in the user instructions. Strive to fulfill every aspect of the user's request with the highest degree of accuracy and attention to detail, creating a report that not only meets but exceeds expectations for quality and professionalism.
158
+
* **Output Final Report Only Instruction:** This new instruction is explicitly added at the end to directly address the user's requirement. It clearly commands the LLM to output *only* the final article and to avoid any other elements. The bolded emphasis further reinforces this crucial point.
0 commit comments