Skip to content

Include messages within json_state output - #98

Merged
TimDiekmann merged 1 commit into
mainfrom
am/output-messages
Dec 16, 2021
Merged

TimDiekmann merged 1 commit into
mainfrom
am/output-messages

Conversation

@Alfred-Mountfield

Copy link
Copy Markdown
Contributor

🌟 What is the purpose of this PR?

The JSON output of Agent state includes messages within hCore/hCloud. Until this PR we were only serializing the AgentBatch rather than also the more dynamic messages batch.

🔗 Related links

🔍 What does this change?

  • Uses the message batch as well as the agent batch for serializing AgentState

🛡 Tests

✅ Manual Tests

❓ How to test this?

  1. Run any experiment that utilises messages (e.g. sugarscape)
  2. Check the json_state.json output file and verify that the agents have a messages field.

@TimDiekmann
TimDiekmann merged commit 9150b83 into main Dec 16, 2021
@TimDiekmann
TimDiekmann deleted the am/output-messages branch December 16, 2021 17:23
@claude claude Bot mentioned this pull request Aug 10, 2026
6 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants