StreamResponseReceiver

Receiver class for configuring streaming responses from the LLM.

This class is part of the fluent API for configuring how the LLM should respond with stream frames when it receives specific inputs.

Constructors

Link copied to clipboard
constructor(stream: Flow<StreamFrame>, builder: MockExecutorDSLBuilder)

Properties

Link copied to clipboard

Sets this stream as the default response to be returned when no other response matches.

Functions

Link copied to clipboard

Configures the LLM to respond with this stream when the user request contains the specified pattern.

Link copied to clipboard
infix fun onRequestEquals(pattern: String): Flow<StreamFrame>

Configures the LLM to respond with this stream when the user request exactly matches the specified pattern.