Skip to main content

No project description provided

Project description

OpenAGI

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

Python 3.11 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.

    Note: Use python3.11

    # 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 crendentials

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

Follow this example to create a Test Case Developer that reads code files from your github repo and creates test cases for the same. Make sure you complete the steup of Github Tool from here.

Note: Follow setup guide to configure the environment. For quick access click here.

from openagi.agent import Agent
from openagi.init_agent import kickOffAgents
from openagi.llms import OpenAIModel
from openagi.tools.integrations import GithubSearchTool

if __name__ == "__main__":
    agent_names = ["DEVELOPER", "TESTCASEDEVELOPER"]

    agent_list = [
        Agent(
            agentName=agent_names[0],
            role="DEVELOPER",
            goal="Efficiently search and retrieve relevant information regarding repository and code snippets on GitHub.",
            backstory="Developed to enhance productivity for developers, this tool integrates with the GitHub API to provide streamlined access to code resources.",
            capability="search_executor",
            task="Retrieve the code for all the files in the respository.",
            output_consumer_agent=[agent_names[1]],
            tools_list=[GithubSearchTool],
        ),
        Agent(
            agentName=agent_names[1],
            role="TESTCASEDEVELOPER",
            goal="To meticulously examine the provided Python code and provide test cases with adherence to best practices.",
            backstory="You are a seasoned software test case developer who developes unit, integration and functional test cases for the given program code",
            capability="llm_task_executor",
            task="Conduct a comprehensive test cases for the Python code, paying particular attention to functional and acceptance testing including edge cases. Also provide no of positive and edge test cases to enable the management to understand the quality of testing",
            output_consumer_agent=["HGI"],
        ),
    ]

    config = OpenAIModel.load_from_yaml_config()  # Setup a file named config.yaml and set OPENAI_API_KEY variable. Follow instructions from docs in Note above.
    llm = OpenAIModel(config=config)
    kickOffAgents(agent_list, [agent_list[0]], llm=llm)

Prominent Features:

  • Flexible Agent Architecture: OpenAGI features a flexible agent architecture, allowing users to create sequential, parallel, and dynamic communication patterns similar to humans. This flexibility is designed to help users efficiently tackle their unique challenges.
  • Streamlined Integration and Configuration: OpenAGI introduces simplified integration and configuration processes, eliminating the infinite loops commonly encountered in other tools.
  • Automated & Manual Agent Configuration Generation: We provide the functionality to automatically generate the necessary configurations for building agents and their corresponding configurations. For developers preferring a hands-on approach, OpenAGI supports the manual configuration of agent solutions. This allows for detailed customization according to specific needs and preferences.

Use Cases:

  • Education: In education, agents can provide personalized learning experiences. They adapt and tailor learning content based on student's progress, performance and interests. It can extend to automating various other administrative tasks and assist teachers in improving their productivity.
  • Finance and Banking: Financial services can use agents for fraud detection, risk assessment, personalized banking advice, automating trading, and customer service. They help in analyzing large volumes of transactions to identify suspicious activities and offer tailored investment advice.
  • Healthcare: Agents can be deployed to monitor patients, provide personalized health recommendations, manage patient data, and automate administrative tasks. They can also assist in diagnosing diseases based on symptoms and medical history.

Get in Touch

For any queries/suggestions/support connect us at openagi@aiplanet.com

Contribution guidelines

OpenAGI thrives in the rapidly evolving landscape of open-source projects. We wholeheartedly welcome contributions in various capacities, be it through innovative features, enhanced infrastructure, or refined documentation.

For a comprehensive guide on the contribution process, please click here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openagi-0.1.0b4.tar.gz (29.5 kB view hashes)

Uploaded Source

Built Distribution

openagi-0.1.0b4-py3-none-any.whl (43.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page