Code Monkey home page Code Monkey logo

weldingking87 / mindmapper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jmanhype/mindmapper

0.0 0.0 0.0 25 KB

MindMapper is an innovative program that empowers intelligent agents to navigate complex thought landscapes and collaboratively map their cognitive processes. This cutting-edge tool harnesses the power of artificial intelligence and machine learning to facilitate seamless cooperation and information sharing among agents.

License: Apache License 2.0

Python 100.00%

mindmapper's Introduction

MindMapper

MindMapper is a Python project that explores the concept of Theory of Mind through thought trees and agent interactions. It simulates agents with different goals interacting and learning from their experiences.

Table of Contents

Introduction

The MindMapper project focuses on implementing the Theory of Mind concept, which involves agents having the ability to understand and infer the mental states of other agents. It uses thought trees to represent an agent's thoughts and experiences, allowing them to explore and learn from their interactions with other agents.

The project consists of the following components:

  • Simulation: The main simulation class that orchestrates agent interactions and tracks their progress.
  • Agent: Represents an agent with a unique ID, a goal, and knowledge about their experiences and thought tree.
  • Thought_Tree_Explorer: Provides different strategies for exploring thought trees, including depth-first search, breadth-first search, and heuristic search.
  • Experience and ExperienceType: Classes that define an agent's experiences and their types (positive, neutral, negative).
  • Thought: Represents a thought in the thought tree, connecting parent thoughts and child thoughts.

Installation

  1. Clone the MindMapper repository:

    git clone https://github.com/jmanhype/MindMapper.git
  2. Navigate to the project directory:

    cd MindMapper
  3. Update the API keys in the agents.py file. Make sure to replace the placeholders with your actual API keys. Refer to the instructions in agents.py for details.

  4. (Optional) Create a virtual environment:

    python -m venv venv
    source venv/bin/activate  # For Unix/Linux
    venv\Scripts\activate  # For Windows
  5. Install the required dependencies:

    pip install -r requirements.txt

API Keys

The MindMapper project requires API keys for certain functionalities. You need to obtain the following API keys and update them in the agents.py file:

Google API Key: Obtain a Google API key from the Google Cloud Console. It is used for agent interactions.

OpenAI API Key: Obtain an OpenAI API key from the OpenAI website. It is used for generating context-aware messages.

Make sure to keep your API keys secure and avoid sharing them publicly.

Usage

To run the MindMapper simulation, follow these steps:

  1. Open the terminal and navigate to the project directory.

  2. Run the main script:

    python main.py

    The simulation will start, and you will see the agent interactions and their progress displayed in the console.

  3. Modify the simulation parameters in the main.py file according to your needs, such as the maximum number of iterations and the agents' goals.

Contributing

Contributions to MindMapper are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

When contributing, please adhere to the existing code style and conventions. Also, make sure to update the documentation and tests as necessary.

License

MindMapper is licensed under the Apache License 2.0.

mindmapper's People

Contributors

jmanhype 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.