KletsoOutbound class sealed

Something the user sends: text, a structured value, or an action on a surface. The client assigns the clientId and turns it into a frame.

Implementers
Annotations
  • @immutable

Constructors

KletsoOutbound.action({required String surfaceId, required String componentId, required String actionId, Object? value, String? label})
A non-local action on a surface component.
const
factory
KletsoOutbound.confirm({required String surfaceId, required String componentId, required String actionId, required String toolCallId, required bool approve})
An answer to a confirm block.
factory
KletsoOutbound.form({required String surfaceId, required String componentId, required String actionId, required String formId, required JsonMap values})
A form submission: submit action carrying {formId, values}.
factory
KletsoOutbound.text(String text)
A plain text message.
const
factory
KletsoOutbound.value(Object? value, {String? label})
A structured value posted as a user turn (quick replies), with an optional transcript label.
const
factory

Properties

echoText → String?
Text shown in the transcript while the runtime has not echoed the turn.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFrame(String clientId) → KletsoClientFrame
The wire frame for this outbound with clientId.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited