Emergent generative agents
Revisão | fb141bdbd01871afcd0c7e22ebda2d518472392e (tree) |
---|---|
Hora | 2023-05-20 04:04:24 |
Autor | Corbin <cds@corb...> |
Commiter | Corbin |
Fix a typo. A type-error thinko.
I think it all works? I'm gonna let it run overnight and see what
happens. What could go wrong~
@@ -163,12 +163,11 @@ class ChoiceMaker(Agent): | ||
163 | 163 | if len(possibilities) == 0: return |
164 | 164 | elif len(possibilities) == 1: return self.dispatch(*possibilities[0]) |
165 | 165 | |
166 | - options = [choices[tag].format(subtag=subtag) | |
167 | - for tag, subtag in possibilities] | |
168 | - prompt = choicify(options.values()) | |
166 | + prompt = choicify([choices[tag].format(subtag=subtag) | |
167 | + for tag, subtag in possibilities]) | |
169 | 168 | self.broadcast(prompt) |
170 | 169 | d = self.mind.forceChoice(self.tag, self.subtag, "My choice: ", |
171 | - ascii_uppercase[:len(options)]) | |
170 | + ascii_uppercase[:len(possibilities)]) | |
172 | 171 | d.addCallback(lambda s: self.dispatch(*possibilities[chr(ord(s[0]) - |
173 | 172 | ord('A'))])) |
174 | 173 | return d |