Enabling Debug Mode
Polyglot provides a simple way to enable HTTP debug mode:HTTP Debug Events
When HTTP debug mode is enabled, the HTTP middleware stack dispatches debug events that you can listen to withonEvent() or wiretap().
Debugging LLM interactions is essential for troubleshooting and optimizing your applications.
onEvent() or wiretap().