DummyLiveModel

class DummyLiveModel @JvmOverloads constructor(steps: List<DummyLiveStep>, val name: String = "dummy-live-model") : Model

A fake live Model for testing live agents and runners without a network connection.

Each call to connect records the request and returns a new DummyLiveConnection that plays steps.

Use perConnection to give each connection its own steps, for example to script a reconnect.

Constructors

Link copied to clipboard
constructor(steps: List<DummyLiveStep>, name: String = "dummy-live-model")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Every connection opened so far, oldest first.

Link copied to clipboard

The requests passed to connect, oldest first.

Link copied to clipboard
open override val name: String

Functions

Link copied to clipboard
open suspend override fun connect(request: LlmRequest): LiveConnection
Link copied to clipboard
open override fun generateContent(request: LlmRequest, stream: Boolean): Flow<LlmResponse>

Returns a flow that throws AssertionError when collected; only connect is supported.