Something about this just looks like pure art to me. It’s the logic for the Assistants API from OpenAI. I’ve yet to switch over as it doesn’t support streaming yet (and I’ve got enough on my hands switching everything over to the new tools methodology), but love the simplicity of the complexity.

James R. Hull @jhull