strands.experimental.bidi.io.transcript
Terminal transcript output for bidirectional streaming.
_UserText
Section titled “_UserText”class _UserText(ConsoleRenderable)Defined in: src/strands/experimental/bidi/io/transcript.py:27
Render a full-width user block without adding copyable trailing spaces.
__init__
Section titled “__init__”def __init__(text: str | None = None) -> NoneDefined in: src/strands/experimental/bidi/io/transcript.py:36
Initialize a user transcript block.
__rich_console__
Section titled “__rich_console__”def __rich_console__(console: Console, options: ConsoleOptions) -> RenderResultDefined in: src/strands/experimental/bidi/io/transcript.py:40
Render wrapped text and color each row through the terminal edge.
_BidiTranscriptOutput
Section titled “_BidiTranscriptOutput”class _BidiTranscriptOutput(BidiOutput)Defined in: src/strands/experimental/bidi/io/transcript.py:69
Render transcript events to a terminal stream.
__init__
Section titled “__init__”def __init__() -> NoneDefined in: src/strands/experimental/bidi/io/transcript.py:72
Initialize transcript output.
async def start(_agent: "BidiAgent") -> NoneDefined in: src/strands/experimental/bidi/io/transcript.py:79
Start transcript output.
async def stop() -> NoneDefined in: src/strands/experimental/bidi/io/transcript.py:83
Finish pending transcript output and restore the terminal cursor.
__call__
Section titled “__call__”async def __call__(event: BidiOutputEvent) -> NoneDefined in: src/strands/experimental/bidi/io/transcript.py:90
Render transcript lifecycle events.