create_stream_renderer: Create a Stream Renderer (cli / terminal backend)

View source: R/stream_renderer.R

create_stream_rendererR Documentation

Create a Stream Renderer (cli / terminal backend)

Description

The built-in terminal backend for the agent-output Renderer contract, rendering a streaming response (thinking indicators, streamed text, and tool execution status) to the R console via the cli package. It conforms to the Renderer interface (process_chunk, start_thinking, stop_thinking, render_tool_start, render_tool_result, reset_for_new_step), so it can be swapped for any other backend (web, capture, custom UI) via the renderer argument of stream_text().

Usage

create_stream_renderer()

Value

A list of functions implementing the Renderer contract.

See Also

Renderer, create_null_renderer(), create_capture_renderer()


aisdk documentation built on May 29, 2026, 9:07 a.m.