OpenAGI aims to make human-like agents accessible to everyone, thereby paving the way towards open agents and, eventually, AGI for everyone. We strongly believe in the transformative power of AI and are confident that this initiative will significantly contribute to solving many real-life problems. Currently, OpenAGI is designed to offer developers a framework for creating autonomous human-like agents.
👉 Join our Discord community!-
Setup a virtual environment.
# For Mac users python3 -m venv venv source venv/bin/activate # For Windows users python -m venv venv venv/scripts/activate # to create virtual env using particular python version (in Windows) py -3.11 -m venv venv
-
Install the openagi
pip install openagi
Follow this quick installation guide to complete the setup.
For more queries find documentation for OpenAGI at openagi.aiplanet.com
Follow this example to create a Job Search Agent that helps you to search available job posting for a given category.
Here in the example we are using AzureChatOpenAIModel
along with GoogleSerpAPISearch
to search the internet for various job posting on the particular role.
Note: Follow setup guide to configure the environment. For quick access click here.
from openagi.actions.tools.serp_search import GoogleSerpAPISearch
from openagi.agent import Admin
from openagi.llms.azure import AzureChatOpenAIModel
from openagi.memory import Memory
from openagi.planner.task_decomposer import TaskPlanner
from rich.console import Console
from rich.markdown import Markdown
if __name__ == "__main__":
config = AzureChatOpenAIModel.load_from_env_config()
llm = AzureChatOpenAIModel(config=config)
company_domain = input("What is the company domain?\n")
job_domain = input("What is the job domain?\n")
job_level = input("What level job are you looking for?\n")
job_location = input("In what location are you for the job?\n")
query = f"""
Need help finding a job description based on the following criteria:
Company Domain: {company_domain}
Job Domain: {job_domain}
Job Level: {job_level}
Job Location: {job_location}