From ce6cd6d509d71ff4e8eeffd27239e97ad58f9067 Mon Sep 17 00:00:00 2001 From: lxcxjxhx Date: Tue, 10 Nov 2026 22:17:25 +0800 Subject: [PATCH] Python: Remove a stale Args block from a samples docstring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `run_chat_client()` in `samples/02-agents/observability/advanced_manual_setup_console_output.py` takes no parameters, but its docstring documents one: async def run_chat_client() -> None: """Run an AI service. ... Args: stream: Whether to use streaming for the plugin """ Nothing in the function reads `stream`, and the phrase "for the plugin" says where the paragraph came from — a sibling sample. A reader who wants to turn streaming on will look for the parameter, not find it, and have to decide whether the sample is out of date or they are reading the wrong overload. Removing the block leaves the rest of the docstring untouched; `Args:` is the only section that described something absent. --- .../observability/advanced_manual_setup_console_output.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/python/samples/02-agents/observability/advanced_manual_setup_console_output.py b/python/samples/02-agents/observability/advanced_manual_setup_console_output.py index 8ae3b17dfae..54513a9504d 100644 --- a/python/samples/02-agents/observability/advanced_manual_setup_console_output.py +++ b/python/samples/02-agents/observability/advanced_manual_setup_console_output.py @@ -93,9 +93,6 @@ async def run_chat_client() -> None: The telemetry will include information about the AI service execution. - Args: - stream: Whether to use streaming for the plugin - Remarks: By default, the built-in non-`Raw...Client` chat clients already compose the layers in this order: