GraphSession

constructor(graph: CompiledGraph<State>, config: GraphConfig<State>, scope: CoroutineScope)

Parameters

graph

the graph to run.

config

the thread this session runs, and how. resume and restore need its GraphConfig.checkpointer.

scope

where the session runs, such as viewModelScope.