This project is a Python-based AI agent system designed to interact with Divar.ir, a popular Iranian online marketplace. The system uses Google's ADK (Agent Development Kit) to create specialized agents for various tasks, such as searching for cars, real estate, and retrieving post details.
- Greeting Agent: Provides friendly Persian greetings.
- Farewell Agent: Handles polite Persian goodbyes.
- Car Search Agent: Searches for car listings in a specified city.
- Real Estate Agent: Searches for real estate listings in a specified city.
- Post Details Agent: Retrieves detailed information about specific Divar posts using their post ID.
-
Clone the repository:
git clone <repository-url> cd multi_tool_agent
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
- Create a
.envfile in the root directory. - Add the following keys:
GOOGLE_GENAI_USE_VERTEXAI=FALSE GOOGLE_API_KEY=<Your Google API Key> DIVAR_API_KEY=<Your Divar API Key>
- Create a
To run the project, you can use the ADK CLI. Ensure that the ADK CLI is installed and properly configured on your system.
Run the following command to start the web interface:
adk webThis will launch a local web server where you can interact with the agents. Make sure your environment variables are correctly set before running this command.