vlandlive / scene-based-generative-agent Goto Github PK
View Code? Open in Web Editor NEWScene-Based Generative Agent
Home Page: https://us.vland.live/app
License: MIT License
Scene-Based Generative Agent
Home Page: https://us.vland.live/app
License: MIT License
I have run the code and get the error below.
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
connect success
handshakeack success
Tommie generated successfully!
Traceback (most recent call last):
File "/content/drive/MyDrive/scene-based-generative-agent-main/main.py", line 163, in
generate_agents_by_data()
File "/content/drive/MyDrive/scene-based-generative-agent-main/main.py", line 157, in generate_agents_by_data
agent = VlandAgent(player, vland, eventbus)
File "/content/drive/MyDrive/scene-based-generative-agent-main/main.py", line 58, in init
self.vland.born_in_space(self.playerInfo, area="living room")
File "/content/drive/MyDrive/scene-based-generative-agent-main/vland/vlandapi.py", line 179, in born_in_space
area = random.choice(self.areaList["names"])
File "/usr/lib/python3.10/random.py", line 378, in choice
return seq[self._randbelow(len(seq))]
IndexError: list index out of range
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
Can anyone help me figure out what is causing this?
Please excuse my question.
I generated an agent by running this code, but no matter how much I run it, the agent only speaks the same lines.
Maybe the code below is not executed and hasOthers is not set to True.
if pid != self.playerInfo["pid"] and pid in agentData: observation += agentData[pid]["name"] + ", " hasOthers = True
Sorry for the newbie question, but how do I set up the agent to run autonomously?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.