From 8a2765c8f28afc9be5b179f3db465d8655a9f51a Mon Sep 17 00:00:00 2001 From: ccurme Date: Thu, 13 Mar 2025 11:45:44 -0400 Subject: [PATCH] prebuilt: update type annotation for tools (#3829) --- libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index 0fead9c1e..405a18d2f 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -257,7 +257,7 @@ def _validate_chat_history( @_convert_modifier_to_prompt def create_react_agent( model: Union[str, LanguageModelLike], - tools: Union[Sequence[BaseTool], ToolNode], + tools: Union[Sequence[Union[BaseTool, Callable]], ToolNode], *, prompt: Optional[Prompt] = None, response_format: Optional[