emit

fun emit(event: String, label: String, payload: Map<String, Any?> = emptyMap())

Tells the agent about one of the component's events, as the person's next message.

Parameters

event

The event's name in the component's definition.

label

What the person did, in their words, such as "Tell me more about St. Naum".

payload

What the event carries, as plain Kotlin values.