PromptRunner.Rendering (PromptRunnerSDK v0.6.1)

Copy Markdown View Source

Renders prompt-runner canonical event streams through a pluggable renderer and sink pipeline.

Summary

Types

opts()

@type opts() :: [renderer: renderer_spec(), sinks: [sink_spec()]]

renderer_spec()

@type renderer_spec() :: {module(), PromptRunner.Rendering.Renderer.opts()}

sink_spec()

@type sink_spec() :: {module(), PromptRunner.Rendering.Sink.opts()}

Functions

stream(event_stream, opts)

@spec stream(Enumerable.t(), opts()) :: :ok | {:error, term()}