AsyncGraphExecutionContext(
self,
handler: AsyncBigQueryCallbackHandler,
graph_name: str,
metadata: Optional[DictAsync context manager for wrapping graph execution with events.
Usage:
async with handler.graph_context("my_graph") as ctx:
result = await graph.ainvoke(inputs)
Emits INVOCATION_STARTING on enter and INVOCATION_COMPLETED on exit. On exception, INVOCATION_ERROR is emitted instead of INVOCATION_COMPLETED.
Optional metadata to include in events.