LLMs are good at predicting words, since each word in the id is ~1 BPE token.
But uuids are random hex characters, this is where LLMs struggle to output the right ids.
You can use the .from method https://github.com/vostride/id-agent/#idagentfrominput-opts
To convert uuid or any text to id-agent based id. Then do the LLM inference and then convert it back to UUID.