From c32d3dcc1227af468c050cbafcc734c790439756 Mon Sep 17 00:00:00 2001 From: Hassieb Pakzad <68423100+hassiebp@users.noreply.github.com> Date: Thu, 25 Sep 2025 13:26:49 +0200 Subject: [PATCH] fix(langchain): maintain async context in tool executions --- langfuse/langchain/CallbackHandler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/langfuse/langchain/CallbackHandler.py b/langfuse/langchain/CallbackHandler.py index b4c27c3bc..98ef24680 100644 --- a/langfuse/langchain/CallbackHandler.py +++ b/langfuse/langchain/CallbackHandler.py @@ -78,6 +78,7 @@ def __init__( update_trace: Whether to update the Langfuse trace with the chains input / output / metadata / name. Defaults to False. """ self.client = get_client(public_key=public_key) + self.run_inline = True self.runs: Dict[ UUID,