ObservedRun

A run that a GraphObserver is told about. It is the same object from the start of the run to its end, so an observer can keep what belongs to a run, such as a trace span, in a map with the run as its key.

Properties

Link copied to clipboard

the coroutine context the run was started in: that of the code that called CompiledGraph.invoke or collected CompiledGraph.stream, or that of parent for a subgraph. An observer reads its own elements there, such as the span the app opened around the run, so that it can record the run inside it. It must not cancel the run's kotlinx.coroutines.Job.

Link copied to clipboard

the node that runs this run as a subgraph. null for the run that the app started.

Link copied to clipboard

the thread of the run, from GraphConfig.threadId.

Functions

Link copied to clipboard
open override fun toString(): String