google-deepmind / concordia

A library for generative social simulation
Apache License 2.0
497 stars 96 forks source link

Fix calendar example #72

Closed austinmw closed 1 month ago

austinmw commented 1 month ago

Fixes #66

Some of these changes are definitely bugs preventing intended behavior from working, while others are improvements to the existing code to prevent edge cases I discovered. I separated the changes to examples/phone from the other changes in two separate commits in case you'd only like the former.

phone/components/scene.py

phone/components/apps.py

phone/components/triggering.py

phone/calendar.ipynb

Note: During the interrogation phase, since after 12 episodes, the current observations will not be far enough back in time to recall scheduling the meeting, and the summary of observations may skip this detail, Alice may answer that she doesn't recall whether she has successfully scheduled the meeting. Although not ideal, this seems better in my opinion than her just assuming she scheduled it because it's in her plan, as was previously happening.

Reminder: Need to comment out the pip installs in this notebook to preserve the below changes (the thought_chains modification appeared necessary in my testing to prevent edge cases)

observation.py

thought_chains.py

austinmw commented 1 month ago

hey, not quite sure about the two failures due to Name 'get_ipython' is not defined here

jzleibo commented 1 month ago

I suspect that it's just a linter issue blocking this from submitting. I'll try and follow the steps we have on our side to fix the issue now so that this can get merged.

jzleibo commented 1 month ago

actually, there seems to be something different going on with this PR. I think the system sees it as having a deeper error, so it's not letting me do the next step in our process to merge it. This will take a bit more investigation I think.. Bear with us us while we figure it out. Sorry for the delay

austinmw commented 1 month ago

Thanks!

jzleibo commented 1 month ago

This is merged now!