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 "
}這是使用大爆炸理論示例的現場演示的屏幕截圖。
從對話中,我們可以觀察到以前系統中未廣泛看到的三個有趣的觀點: