data_juicer_agents.tui.noise_filter module#

TUI-specific stderr/warning noise suppression.

data_juicer_agents.tui.noise_filter.install_tui_warning_filters() None[source]#

Install warning filters for known non-actionable runtime noise.

data_juicer_agents.tui.noise_filter.sanitize_reasoning_text(text: str) str[source]#

Pass through reasoning text without reflective-summary filtering.

class data_juicer_agents.tui.noise_filter.FilteredStderr(target, patterns: Iterable[Pattern[str]] | None = None)[source]#

Bases: TextIOBase

Stream wrapper that drops known noise lines and forwards others.

__init__(target, patterns: Iterable[Pattern[str]] | None = None) None[source]#
write(data: str) int[source]#

Write string to stream. Returns the number of characters written (which is always equal to the length of the string).

flush() None[source]#

Flush write buffers, if applicable.

This is not implemented for read-only and non-blocking streams.

isatty() bool[source]#

Return whether this is an ‘interactive’ stream.

Return False if it can’t be determined.

fileno() int[source]#

Returns underlying file descriptor if one exists.

OSError is raised if the IO object does not use a file descriptor.

property encoding: str#

Encoding of the text stream.

Subclasses should override.

data_juicer_agents.tui.noise_filter.suppress_tui_noise_stderr()[source]#

Context manager to suppress known third-party stderr noise in TUI.