From 522c3702d2b281ef68598d51a8cc85c4c6a20678 Mon Sep 17 00:00:00 2001 From: Jeeho Lee Date: Tue, 13 Oct 2026 06:56:52 +0000 Subject: [PATCH] Python: Make tool-normalization documentation examples self-contained Assisted-by: OpenAI Codex --- python/packages/core/agent_framework/_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/packages/core/agent_framework/_types.py b/python/packages/core/agent_framework/_types.py index 6ffebae8700..ebc753c1835 100644 --- a/python/packages/core/agent_framework/_types.py +++ b/python/packages/core/agent_framework/_types.py @@ -4906,7 +4906,7 @@ def my_tool(x: int) -> int: tools = normalize_tools(my_tool) # List of tools - tools = normalize_tools([my_tool, another_tool]) + tools = normalize_tools([my_tool]) """ from ._tools import normalize_tools as _normalize_tools @@ -4942,7 +4942,7 @@ def my_tool(x: int) -> int: tools = await validate_tools(my_tool) # List of tools - tools = await validate_tools([my_tool, another_tool]) + tools = await validate_tools([my_tool]) """ # Use normalize_tools for common sync logic (converts callables to FunctionTool) normalized = normalize_tools(tools)