Manually setting the agent_id

A user question related to agent_id:

Can I actually set the agent_id, should I, or leave this to Hash to automate?

You can manually set the ID of an agent, but you don’t need to - the HASH engine will automatically assign an ID to every agent. There are cases where you’ll want to do this - for instance if you are assigning ‘child’ agents to a ‘parent’ agent that will message and control their actions, and you want the agent_ids collected at initialization.

The agent_id needs to be a string and UUIDv4. You can use the HASH standard library to assign it.