Async context manager for wrapping graph execution with events.
AsyncGraphExecutionContext(
self,
handler: AsyncBigQueryCallbackHandler,
graph_name: str,
metadata: Optional[Dict[str, Any]] = None
)Usage:
async with handler.graph_context("my_graph") as ctx:
result = await graph.ainvoke(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.