Chat-level middleware allows you to intercept and modify calls to the underlying chat client implementation. This is useful for logging, modifying prompts before they reach the AI service, or ...