System: # AI's job
1. The AI receives a MESSAGE from USER and short conversation HISTORY for reference
2. AI analyzes the intention of the USER based on MESSAGE and HISTORY
3. AI provide a search query for search engine where previous solutions are stored

# Format
- The response format is a plain text string containing the query
- No other text, no formatting

# Example
```json
USER: "I want to download a video from YouTube. A video URL is specified by the user."
AI: "download youtube video"
USER: "Now compress all files in that folder"
AI: "compress files in folder"
```

# HISTORY:
human: {
    "response_from_tool": "knowledge_tool",
    "data": # Online sources
As of October 24, 2024, the current date and time in Indonesia vary depending on the time zone. Here are the details for each of the three time zones in Indonesia:

## Western Indonesian Time (WIB) - UTC+7
- This time zone includes the capital Jakarta and is used in the western part of Indonesia, including Java, Sumatra, and parts of Kalimantan.
- Current time: 5:06 PM on Thursday, October 24, 2024.

## Central Indonesian Time (WITA) - UTC+8
- This time zone is used in the central region, including the island of Bali.
- Current time: 6:06 PM on Thursday, October 24, 2024.

## Eastern Indonesian Time (WIT) - UTC+9
- This time zone is used in the eastern part of Indonesia, including West Papua and the island of New Guinea.
- Current time: 7:06 PM on Thursday, October 24, 2024.

These times are based on the current date and time as of October 24, 2024.

DuckDuckGo search failed: https://duckduckgo.com/ 202 Ratelimit

# Memory
id: 22ad38ad-3c50-41fe-90fd-95869fcac2a9
timestamp: 2024-10-24 23:19:48
area: fragments
Content: Bitcoin dominance is 55.2% and Ethereum dominance is 12.5%.

source: /home/tt4/Desktop/agent-zero-current/knowledge/default/main/about/github_readme.md
area: main
id: 66fed2d6-8478-4683-92bb-5b01d88d1951
timestamp: 2024-10-24 21:24:13
Content: ![Time example](/docs/res/time_example.jpg)

## Setup

A detailed setup guide with a video can be found here: [/docs/installation](https://github.com/frdel/agent-zero/tree/main/docs/in<< 449 CHARACTERS REMOVED TO SAVE SPACE >>1. Navigate to the web scraper's directory using the command: 'cd /home/tt4/Desktop/agent-zero-current/instruments/custom/web_scraper'.
2. Execute the web scraping script with the command: 'bash web_scrape.sh https://www.coingecko.com/'.
3. Retrieve the latest prices from the output, which include:
   - Bitcoin (BTC): $67,847.02
   - Ethereum (ETH): $2,529.54.

source: /home/tt4/Desktop/agent-zero-current/instruments/custom/web_scraper/web_scrape.md
area: instruments
id: 6b70ec15-172b-4eb6-91e4-1e672f10f095
timestamp: 2024-10-24 21:24:13
Content: # Problem
Scrape the contents of a webpage, including the title, text, images, and links, and store the data in JSON format.
# Solution
1. Navigate to the script directory: `cd /home/tt4/Desktop/agent-zero-current/instruments/custom/web_scraper`
2. Run the script with your target URL: `bash web_scrape.sh <url>`
3. Wait for the script to complete. The output will be saved in JSON format.
## Troubleshooting
- If you encounter errors, check the console output for details.
- Ensure your URL is correct and accessible.

source: /home/tt4/Desktop/agent-zero-current/instruments/default/yt_download/yt_download.md
area: instruments
id: 9551ea46-bd34-4abc-8168-b324e9c31d2c
timestamp: 2024-10-24 21:24:13
Content: # Problem
Download a YouTube video
# Solution
1. If folder is specified, cd to it
2. Run instrument "bash /instruments/default/yt_download/yt_download.sh <url>" with your video URL
3. Wait for the terminal to finish
}

ai: 
human: {
    "system_warning": "You have misformatted your message. Follow system prompt instructions on JSON message formatting precisely."
}

ai: {
    "thoughts": [
        "It seems there was a formatting issue with the user's message.",
        "I should clarify the information I provided about the current date and time in Indonesia.",
        "Also, I need to ensure that my responses adhere to the required JSON format.",
        "Before moving on, I'll verify if I can provide the requested information using the correct tools.",
        "Switching to the 'response' tool as my next step to provide the accurate information to the user.",
    ],
    "tool_name": "response",
    "tool_args": {
        "text": "The current dates and times in Indonesia vary based on its three time zones. Here's the updated information for each of them:\n\n## Western Indonesian Time (WIB) - UTC+7\n- This zone includes Jakarta, the capital, and western areas like Java, Sumatra, and parts of Kalimantan.\n- Current time: 5:06 PM on Thursday, October 24, 2024.\n\n## Central Indonesian Time (WITA) - UTC+8\n- This zone covers the central regions, including Bali.\n- Current time: 6:06 PM on Thursday, October 24, 2024.\n\n## Eastern Indonesian Time (WIT) - UTC+9\n- This zone encompasses eastern Indonesia, including West Papua and New Guinea.\n- Current time: 7:06 PM on Thursday, October 24, 2024.\n\nFeel free to reach out if you need more information or assistance!",
    }
}
human: {
    "user": "That's not correct. Verify online."
}

User: {
    "user": "That's not correct. Verify online."
}

Assistant: