AsContentPendingFlush reports whether the server refused the write with content_pending_flush.
()
| 2747 | // AsContentPendingFlush reports whether the server refused the write with |
| 2748 | // content_pending_flush. |
| 2749 | func (e *APIError) AsContentPendingFlush() bool { |
| 2750 | return e != nil && e.Code == ContentPendingFlushCode |
| 2751 | } |
| 2752 | |
| 2753 | // WriteContentPendingFlushError renders the content_pending_flush refusal: the |
| 2754 | // structured marker line for the MCP stdio classifier (the same contract as |