A provider option that sends activity events alongside the model's output.
The run's terminal event waits until the returned promise settles, and a
thrown error ends the run with RUN_ERROR.
API
export type ActivityCallback = (
context: ActivityContext ,
) => Promise <void> | void;