Coder Social home page Coder Social logo

lidongrong / skyagi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from litanlitudan/skyagi

0.0 0.0 0.0 2.17 MB

SkyAGI: Emerging human-behavior simulation capability in LLM

Home Page: https://skyagi.ai

License: Apache License 2.0

Shell 4.48% JavaScript 6.99% Python 57.93% TypeScript 6.14% CSS 7.81% Makefile 0.53% HTML 0.44% Svelte 15.68%

skyagi's Introduction

SkyAGI: Emerging human-behavior simulation capability in LLM

PyPI

SkyAGI is a python package that demonstrates LLM's emerging capability in simulating believable human behaviors. Specifically, SkyAGI implements the idea of Generative Agents and delivers a role-playing game that creates a very interesting user experience.

Different from previous AI based NPC systems, SkyAGI's NPC generates very believable human responses. The interesting observations in this demo show a huge potential for rethinking game development in many aspects, such as NPC script writing.

To demonstrate this, SkyAGI provides example characters from The Big Bang Theory and The Avengers as a starting point. Users could also define customized characters by creating config json files like customized_character.json For details about the interesting observations, refer to the observations section.

Quick Start

Installation

pip install --upgrade skyagi

Or

make install

How to run

export OPENAI_API_KEY="..."
skyagi
# or
OPENAI_API_KEY="..." skyagi

For example if the OpenAI key is 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, then the exact command would be the following

# make sure no quote around the token
export OPENAI_API_KEY=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
skyagi
# or
OPENAI_API_KEY=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 skyagi

To use example agent configs, download it from here: https://github.com/litanlitudan/skyagi/tree/main/examples (pip install doesn't contain the agent configuration)

An example agent configuration (Sheldon) looks something like this:

{
    "name": "Sheldon",
    "age": 27,
    "personality": "Intelligent, rigid, socially challenged, quirky, and arrogant.",
    "memories": [
        "Sheldon is a theoretical physicist who works at Caltech.",
        "Sheldon has an eidetic memory and is highly intelligent, but struggles with social skills and sarcasm.",
        ...
        "Knock, knock, knock, Penny - This is the specific knock that Sheldon uses when he visits Penny's apartment, which he repeats three times.",
        "Bazinga! - This is Sheldon's catchphrase that he uses to indicate he was joking or playing a prank on someone."
    ],
    "current_status": "Sheldon is at the Cheesecake Factory"
}

Interesting observations in this demo

Here is a screenshot of a live demo using The Big Bang Theory example. demo From the conversation, we can observe three interesting points that have not been widely seen in previous systems:

  1. Leonard remembered that Penny had asked him to persuade Sheldon to go for a hike, which shows the capability of some kind of memory.
  2. Leonard changed his mind after Sheldon whispered to him and even tried to convince Penny to join the scientific effort, which shows that the agents had meaningful progress in the story even without human intervention.
  3. All the responses are quite human-like. As a user, it's quite hard to tell whether it's actually an AI behind the responses.

References

  1. https://arxiv.org/abs/2304.03442
  2. https://python.langchain.com/en/latest/use_cases/agent_simulations/characters.html#create-a-generative-character

skyagi's People

Contributors

litanlitudan avatar qizheng7 avatar serenaqiaoo avatar eltociear avatar law-liet avatar solstice-stone avatar tonyz0x0 avatar xuemingdg avatar yuyuan223 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.