benwaldner / generative-agents-2

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

Home Page:https://arxiv.org/abs/2304.03442

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://arxiv.org/abs/2304.03442

License:MIT License


Languages

Language:Python 100.0%