Action

@Serializable(with = ActionSerializer::class)
sealed interface Action

An interaction handler: either dispatch an event to the agent, or run a function locally.

Inheritors

Types

Link copied to clipboard
data class Event(val event: ActionEvent) : Action

Dispatches event to the agent.

Link copied to clipboard
data class Invoke(val functionCall: FunctionCall) : Action

Executes functionCall on the renderer or the agent, per the catalog's allowedCallers.