From fe7e7b9121d8ef1682c97c9509ed8f56a31e9416 Mon Sep 17 00:00:00 2001 From: William FH <13333726+hinthornw@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:41:40 -0700 Subject: [PATCH] Use typing_extensions typeddict (#1869) --- .../langgraph/prebuilt/chat_agent_executor.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/libs/langgraph/langgraph/prebuilt/chat_agent_executor.py b/libs/langgraph/langgraph/prebuilt/chat_agent_executor.py index c5c64cd24..341aafe14 100644 --- a/libs/langgraph/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/langgraph/langgraph/prebuilt/chat_agent_executor.py @@ -1,19 +1,10 @@ -from typing import ( - Annotated, - Callable, - Literal, - Optional, - Sequence, - Type, - TypedDict, - TypeVar, - Union, -) +from typing import Callable, Literal, Optional, Sequence, Type, TypeVar, Union from langchain_core.language_models import BaseChatModel from langchain_core.messages import AIMessage, BaseMessage, SystemMessage, ToolMessage from langchain_core.runnables import Runnable, RunnableConfig, RunnableLambda from langchain_core.tools import BaseTool +from typing_extensions import Annotated, TypedDict from langgraph._api.deprecation import deprecated_parameter from langgraph.graph import StateGraph