Skip to content

Paving the way for open agents and AGI for all.

Notifications You must be signed in to change notification settings

mojowebs/openagi

 
 

Repository files navigation

OpenAGI

Making the development of autonomous human-like agents accessible to all

Python Versions Discord Twitter

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!

Installation

  1. 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
  2. Install the openagi

    pip install openagi

To setup your credentials

Follow this quick installation guide to complete the setup.

Documentation

For more queries find documentation for OpenAGI at openagi.aiplanet.com

Understand OpenAGI

Thumbnails

Example (Single Agent)

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}