From fca0d2d5bb9a5f3d7f255015b083662c8c5411fd Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Tue, 21 Jan 2025 09:43:12 -0800 Subject: [PATCH] Update libs/langgraph/langgraph/utils/future.py Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com> --- libs/langgraph/langgraph/utils/future.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/langgraph/langgraph/utils/future.py b/libs/langgraph/langgraph/utils/future.py index 8445f5396..b7790f48c 100644 --- a/libs/langgraph/langgraph/utils/future.py +++ b/libs/langgraph/langgraph/utils/future.py @@ -152,7 +152,8 @@ def _ensure_future( called_wrap_awaitable = True else: raise TypeError( - "An asyncio.Future, a coroutine or an awaitable is required" + "An asyncio.Future, a coroutine or an awaitable is required." + f" Got {type(future).__name__} instead." ) try: