skyagi
0.0.30
SkyAGI是一个Python包,展示了LLM在模拟可信的人类行为方面的新兴能力。具体来说, SkyAGI实现了生成代理的想法,并提供了一个创造非常有趣的用户体验的角色扮演游戏。
与以前基于AI的NPC系统不同, SkyAGI的NPC产生了非常可信的人类反应。该演示中有趣的观察结果表明,在许多方面(例如NPC脚本写作)重新思考游戏开发的巨大潜力。
为了证明这一点, SkyAGI提供了The Big Bang Theory和The Avengers的示例角色。用户还可以通过创建config JSON文件(例如customized_character.json)来定义自定义字符,以获取有关有趣的观测值的详细信息,请参阅“观察”部分。
安装
pip install --upgrade skyagi或者
make install如何运行
export OPENAI_API_KEY= " ... "
skyagi
# or
OPENAI_API_KEY= " ... " skyagi例如,如果OpenAI键是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 ,则确切的命令将为以下
# 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要使用示例代理配置,请从此处下载:https://github.com/litanlitudan/skyagi/tree/main/main/examples(pip install不包含代理配置)
示例代理配置(Sheldon)看起来像这样:
{
"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 "
}这是使用大爆炸理论示例的现场演示的屏幕截图。
从对话中,我们可以观察到以前系统中未广泛看到的三个有趣的观点: