Skip to main content

Crate codex_utils_stream_parser

Crate codex_utils_stream_parser 

Source

Structs§

AssistantTextChunk
AssistantTextStreamParser
Parses assistant text streaming markup in one pass:
CitationStreamParser
Stream parser for <oai-mem-citation>...</oai-mem-citation> tags.
ExtractedInlineTag
One hidden inline tag extracted by InlineHiddenTagParser.
InlineHiddenTagParser
Generic streaming parser that hides configured inline tags and extracts their contents.
InlineTagSpec
Literal tag specification used by InlineHiddenTagParser.
ProposedPlanParser
Parser for <proposed_plan> blocks emitted in plan mode.
StreamTextChunk
Incremental parser result for one pushed chunk (or final flush).
Utf8StreamParser
Wraps a StreamTextParser and accepts raw bytes, buffering partial UTF-8 code points.

Enums§

ProposedPlanSegment
Utf8StreamParserError
Error returned by Utf8StreamParser when streamed bytes are not valid UTF-8.

Traits§

StreamTextParser
Trait for parsers that consume streamed text and emit visible text plus extracted payloads.

Functions§

extract_proposed_plan_text
strip_citations
Strip citation tags from a complete string and return (visible_text, citations).
strip_proposed_plan_blocks