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

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

# Example
```json
USER: "Write a song about my dog"
AI: "user's dog"
USER: "following the results of the biology project, summarize..."
AI: "biology project results"
```

# HISTORY:
human: {
    "response_from_tool": "code_execution_tool",
    "data": cd /home/tt4/Desktop/agent-zero-current/instruments/custom/web_scraper && bash web_scrape.sh https://www.coingecko.com/

}

ai: {
    "thoughts": [
        "The web scraping tool doesn't seem to have executed correctly.",
        "I need to check what instruments are available and use them appropriately.",
        "I'll use the knowledge tool to gather the latest prices from CoinGecko instead."
    ],
    "tool_name": "knowledge_tool",
    "tool_args": {
        "question": "What are the current prices of Ethereum and Bitcoin on CoinGecko?"
    }
}
human: {
    "response_from_tool": "knowledge_tool",
    "data": # Online sources
As of the latest data from CoinGecko, here are the current prices for Ethereum and Bitcoin:

## Ethereum (ETH)
The current price of Ethereum is approximately $2,532.31.

## Bitcoin (BTC)
The current price of Bitcoin is approximately $67,760.86.

["{'title': 'ETH to BTC: Ethereum Price in Bitcoin | CoinGecko', 'href': 'https://webloadtest.coingecko.com/en/coins/ethereum/btc', 'body': 'The daily exchange rate of Ethereum (ETH) to BTC fluctuated between a high of BTC0.03978783 on Tuesday and a low of BTC0.03860642 on Thursday in the last 7 days. Within the week, the price of ETH in BTC had the largest 24-hour price movement on Wednesday (3 days ago) by -BTC0.00093444 (2.3%).'}", "{'title': 'ETH to USD: Ethereum Price in US Dollar | CoinGecko', 'href': 'https://www.coingecko.com/en/coins/ethereum/usd', 'body': 'Within the week, the price of ETH in USD had the largest 24-hour price movement on Monday (3 days ago) by $92.98 (3.5%). Compare the daily prices of Ethereum (ETH) in USD and their 24-hour price movements for the week.'}", "{'title': 'Ethereum USD Historical Data - CoinGecko', 'href': 'https://www.coingecko.com/en/coins/ethereum/historical_data', 'body': 'Get Ethereum (ETH) USD historical prices. Coins: 14,982. Exchanges: 1,137. Market Cap: $2 ... CoinGecko provides a fundamental analysis of the crypto market. ... Crypto Heatmap Crypto API Donations Bitcoin Donate Bitcoin Ethereum Donate Ethereum Support Request Form Advertising Candy<< 5143 CHARACTERS REMOVED TO SAVE SPACE >> tool can be found in the **python/tools/** folder and changed or copied to create new predefined tools.
- Of course, it is open-source (except for some tools like Perplexity, but that will be replaced with an open-source alternative as well in the future).

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/installation). Scroll down to see the readme file.

> ⚠️ **Changes to launch files since v0.6:**  
> main.py file has been replaced with run_ui.py (webui) and run_cli.py (terminal) launch files.
> configuration has been moved to initialize.py for both webui and terminal launch files.

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

id: 3b5e1aa2-c184-4291-a91a-e95d0b461daa
timestamp: 2024-10-24 22:57:28
area: fragments
Content: Assistant responded with a traditional greeting and offered help
}

ai: {
    "thoughts": [
        "The user requested the latest prices of Ethereum and Bitcoin from CoinGecko.",
        "I used the knowledge_tool to gather the prices and the info_tool to get additional details.",
        "To proceed with other tasks, I need to wait for the user's next request."
    ],
    "tool_name": "response",
    "tool_args": {
        "text": "As of the latest data from CoinGecko, here are the current prices for Ethereum and Bitcoin:\n\n## Ethereum (ETH)\nThe current price of Ethereum is approximately $2,532.31.\n\n## Bitcoin (BTC)\nThe current price of Bitcoin is approximately $67,760.86.\n\nPlease let me know if you need further assistance or have any other requests."
    }
}
human: {
    "user": "I need fresh data! It must be scraped and not out of memory"
}

User: {
    "user": "I need fresh data! It must be scraped and not out of memory"
}

Assistant: