Context manager for wrapping graph execution with GRAPH_START/GRAPH_END events.
GraphExecutionContext(
self,
handler: BigQueryCallbackHandler,
graph_name: str,
metadata: Optional[Dict[str, Any]] = None
)Usage:
with handler.graph_context("my_graph") as ctx:
result = graph.invoke(inputs)
This will emit GRAPH_START when entering and GRAPH_END when exiting. If an exception occurs, GRAPH_ERROR will be emitted instead of GRAPH_END.