# call

abstract suspend fun call(invocationContext: InvocationContext, event: Event): Event

Callback executed when the runner produces an event.

This is the ideal place to modify the event before it is persisted to the session service and yielded to the caller.

#### Return

The potentially modified Event to propagate downstream.

#### Parameters

invocationContext

The context for the entire invocation.

event

The event raised by the runner.