Nice. I'm working on an agent too. How are you handling tool calls?

I followed this example

https://minimal-agent.com/

but I'm running into issues with nested backticks so I'm thinking of making dedicated close tags per tool call.