{"text": "Hello there.",
"eval_labels": ["General Kenobi."]},
]
obs_elabs = [agent.vectorize(o) for o in obs_elabs]
reply = agent.batch_act(obs_elabs)
for i in range(len(obs_elabs)):
self.assertEqual(reply[i]["text"], f"Evaluating {i}!")
After Change
]
obs_elabs_vecs = []
for o in obs_elabs:
agent.history.clear()
agent.history.update_history(o)
obs_elabs_vecs.append(agent.vectorize(o, agent.history))
reply = agent.batch_act(obs_elabs_vecs)
import pdb; pdb.set_trace()