LiveRequest

data class LiveRequest(val input: LiveInput? = null, val close: Boolean = false, val stateDelta: Map<String, Any> = emptyMap())

One item sent to a live agent through a LiveRequestQueue.

A close request carries no input; the constructor throws IllegalArgumentException if it does.

Constructors

Link copied to clipboard
constructor(input: LiveInput? = null, close: Boolean = false, stateDelta: Map<String, Any> = emptyMap())

Types

Link copied to clipboard
class Builder

Fluent builder for LiveRequest, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Closes the queue: requests sent before it are still delivered, and anything sent after it is dropped.

Link copied to clipboard

The turn or realtime input to send, or null to send nothing to the model.

Link copied to clipboard

State changes intended for the session, which may accompany any request and are applied by whatever consumes the queue; empty when none were set.

Functions

Link copied to clipboard

Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.