Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StripEmptyHTMLCommentMarkers ¶
StripEmptyHTMLCommentMarkers removes private empty HTML comment markers from Codex reasoning summaries before they become client-visible reasoning.
Types ¶
type SummarySanitizer ¶
type SummarySanitizer struct {
// contains filtered or unexported fields
}
SummarySanitizer removes hidden Codex reasoning-summary boundaries while preserving one separator between the visible thoughts on either side. Its zero value is ready for use and must be scoped to one upstream stream.
func (*SummarySanitizer) Reset ¶
func (s *SummarySanitizer) Reset()
Reset clears all cross-delta state for a new response or turn.
func (*SummarySanitizer) SanitizeDelta ¶
func (s *SummarySanitizer) SanitizeDelta(text string) string
SanitizeDelta sanitizes one streaming reasoning-summary delta. A hidden boundary is held pending until the next visible delta so newlines supplied by either neighboring delta are respected regardless of chunk boundaries.
func (*SummarySanitizer) StartSummaryPart ¶
func (s *SummarySanitizer) StartSummaryPart()
StartSummaryPart records a native Codex reasoning-summary part boundary. Repeated boundary signals remain idempotent until visible text arrives.