Learn how to call the ChatGPT from within Unity.
Here we’ll create two agents who are each able to query ChatGPT, display their speech as text, and respond to each other in dialogue.
A recent paper pointed towards a future of interactive experiences populated by AI agents which tap into large language models to be able to simulate believable human behaviour. In the simulation they go about their day - paint and write and work - as well as forming memories, reflect on those memories and retrieve them as needed to plan dynamic behaviour.
Folk have also tried to get ChatGPT to assist in understanding philosophy in general, or some philosopher in particular, with mixed results so far. So here we will create two agents in Unity with very simple behaviour where they engage in philosophical dialogue of some kind with each other.
Following along, you’ll also learn to add ChatGPT-enabled AI agents into your Unity project, and then do what you want with that capacity to interact with a large language model.
00:00 Intro
01:38 Using the ChatGPT wrapper for Unity
05:00 Creating an agent and making them interact with ChatGPT
09:40 Creating another agent and a little world
13:50 Interlude
14:10 Giving each agent their own brain
19:00 Getting the agents to have a dialogue with each other
24:40 Philosophical prompt engineering
29:36 Making a little garden generator
39:45 Conclusion
Repo for ChatGPT Unity wrapper: https://github.com/GraesonB/ChatGPT-W...
Repo for this project: https://github.com/Mikael-Codes/ChatG...
Paper on Generative Agents: https://arxiv.org/abs/2304.03442
Subscribe: / @mikaelcodes
#ChatGPT #Unity #GermanIdealism #GenerativeAgent #AIAgent