runs.subscribeToRun()). It contains all the information about the run, including the run ID, task identifier, payload, output, and more.
Type-safety is supported for the run object, so you can infer the types of the run’s payload and output. See type-safety for more information.
The run object
Properties
Type-safety
You can infer the types of the run’s payload and output by passing the type of the task to thesubscribeToRun function. This will give you type-safe access to the run’s payload and output.
subscribeToRunsWithTag, you can pass a union of task types for all the possible tasks that can have the tag.
runs.subscribeToRun<TaskType>()runs.subscribeToRunsWithTag<TaskType>()runs.subscribeToBatch<TaskType>()

