Skip to content

An implementations of "Generative Agents: Interactive Simulacra of Human Behavior".

License

Notifications You must be signed in to change notification settings

hankniu01/generative-agents

 
 

Repository files navigation

flowchart LR
    p(Perceive)
    m[["`**Memory Stream**`"]]
    r(Retrieve)
    rm[["`**Retrieved Memories**`"]]
    pl(Plan)
    re(Reflect)
    a(Act)

    p --> m
    subgraph Generative Agent Memory
    m --> r
    r --> rm
    end
    rm --> pl
    rm --> re
    pl --> m
    re --> m
    rm --> a

Generative Agents:
Interactive Simulacra
of Human Behavior

https://arxiv.org/abs/2304.03442

We're building a Python implementation of Generative Agents.

Join us on Discord: https://discord.gg/5dkM59gsDY

TODO and contributing

Check out the issues and projects tabs, there are also # TODOs scatered around the code.

  • Python 3.10+
  • Black
  • isort

Usage

pip install openai

Authentication

Create a openai_api.py file and set your key there.

Note https://platform.openai.com/docs/api-reference/authentication

import openai

openai.api_key = 'OpenAI API key'

About

An implementations of "Generative Agents: Interactive Simulacra of Human Behavior".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%