From 7bdd9c9a30a91e91cf8139f21e4b862b0188ae60 Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Wed, 30 Jul 2025 18:34:59 +0000 Subject: [PATCH] Apply patch [skip ci] --- libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index 1914cc541..844edda36 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -252,8 +252,8 @@ def create_react_agent( model: Union[ str, LanguageModelLike, - Callable[[StateSchema, Runtime[ContextT]], BaseChatModel], - Callable[[StateSchema, Runtime[ContextT]], Awaitable[BaseChatModel]], + Callable[[StateSchema, Runtime[ContextT]], LanguageModelLike], + Callable[[StateSchema, Runtime[ContextT]], Awaitable[LanguageModelLike]], ], tools: Union[Sequence[Union[BaseTool, Callable, dict[str, Any]]], ToolNode], *, @@ -952,3 +952,4 @@ __all__ = [ "AgentStateWithStructuredResponse", "AgentStateWithStructuredResponsePydantic", ] +