prebuilt: update type annotation for tools (#3829)

This commit is contained in:
ccurme
2025-03-13 15:45:44 +00:00
committed by GitHub
parent 108a041fa7
commit 8a2765c8f2
@@ -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[