codexreasoning

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripEmptyHTMLCommentMarkers

func StripEmptyHTMLCommentMarkers(text string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL