Code Monkey home page Code Monkey logo

cognihack's Introduction

Important links:

General information

OSNAP, an innovative open-source project, aims to revolutionize the way AI systems communicate and collaborate. With a Central Registry facilitating AI discovery and a Standardized Communication Protocol ensuring seamless interactions, OSNAP enables AI systems to work together, enhancing their capabilities and scalability. This technology has the potential to streamline workflows across various sectors, including project management, customer service, healthcare, and urban planning, paving the way for significant economic growth. By enabling secure, standardized communication and collaboration among AI systems, OSNAP promises a future where AI systems don't just work for us, but with us and each other, driving economic growth while ensuring privacy and security.

How to run

  • cp .env.example .env
  • Change env vars
  • docker network create cognihack-network
  • docker-compose up --build

Open Swarm Network Agent Protocol (OSNAP)

Architecture

  • FastAPI (Implements the Agent API)
    • /info (describes the role of the agent)
    • /tools (describe the tools made available)
    • /run (invoke other agents to perform tasks)
    • /listen (listen for task results distributed to other agents)
    • /finish (agents try and agree they are done)
  • Agent (Python/Langchain)
    • Agent State
    • Task Store (Queue, Whatever)
  • Tool Store (Redis)
    • Self-Describing Format, with Permissions, Preferences, Restrictions
    • Could be JSON
    • Could be Vectors

Call Sequence

  1. My user (agent1) gives the objective
  2. Agent1 calls Agent2 /tools endpoint
  3. Agent2 sends back tools response from Tool Store
  4. Agent1 makes plan (ala babyagi) and asks Agent2 to execute the first step Can potentially explore more traits and roles here. This is done via a request to agent2's /run endpoint. Agent2 acknowledges that it recieved the task by responding with some status.
  5. Agent1 registers a listener for the task ID.
  6. Agent2 does the thing in the background, and when it's done, send a POST request to Agent1s listen endpoint with the result.
  7. Continue as long as Agent1 wants to in order to solve the problem.
  8. Agent1 sends a request to the /finish endpoint.

cognihack's People

Contributors

ryangr0 avatar fmurray avatar kayshreyas avatar alignment-lab-ai avatar ytsrc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.