Giter Site home page Giter Site logo

scene-based-generative-agent's Issues

Agents do not work autonomously.

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?

IndexError: list index out of range

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.