From 341473c017891d23629f5c768fdcf7e3a5d72985 Mon Sep 17 00:00:00 2001 From: Bryant Date: Wed, 15 Jul 2026 09:49:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20(python-sdk-docs):=20Complet?= =?UTF-8?q?e=20truncated=20smolagents=20quick-start=20with-body?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit quickstart_snippets/smolagents-tool-policy.py ended at a dangling `with init_assembly(...) as ctx:` with zero body lines, failing ast.parse (IndentationError). Re-vendor the standard Agent/Gateway/Mode + policy-rules print block from the upstream examples repo source (examples/python/smolagents-tool-policy/src/main.py), mirroring the cutoff style AAASM-4585 used for the Google ADK/Pydantic AI/Microsoft Agent Framework tabs. Refs AAASM-4592 --- quickstart_snippets/smolagents-tool-policy.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/quickstart_snippets/smolagents-tool-policy.py b/quickstart_snippets/smolagents-tool-policy.py index 7171b2bf..4e173fa1 100644 --- a/quickstart_snippets/smolagents-tool-policy.py +++ b/quickstart_snippets/smolagents-tool-policy.py @@ -15,3 +15,12 @@ agent_id="smolagents-demo-agent", mode="sdk-only", ) as ctx: + print(f" Agent: {ctx.client.agent_id}") + print(f" Gateway: {ctx.client.gateway_url}") + print(f" Mode: {ctx.network_mode} (offline demo)") + print() + + print("Policy rules (local simulation of gateway policy):") + print(" DENY — run_shell_command, delete_records (destructive ops)") + print(" ALLOW — everything else") + print() From b4231b27d9e1dc18576c3450badee691698916bd Mon Sep 17 00:00:00 2001 From: Bryant Date: Wed, 15 Jul 2026 09:49:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9D=20(python-sdk-docs):=20Regener?= =?UTF-8?q?ate=20quick-start.md=20smolagents=20tab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rebuild the generated framework-tabs region via scripts/generate_quickstart_tabs.py so the rendered smolagents tab picks up the completed with-body from the previous commit. Refs AAASM-4592 --- docs/quick-start.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/quick-start.md b/docs/quick-start.md index 292f0826..10d1de29 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -608,6 +608,15 @@ with no API keys and no outbound network. agent_id="smolagents-demo-agent", mode="sdk-only", ) as ctx: + print(f" Agent: {ctx.client.agent_id}") + print(f" Gateway: {ctx.client.gateway_url}") + print(f" Mode: {ctx.network_mode} (offline demo)") + print() + + print("Policy rules (local simulation of gateway policy):") + print(" DENY — run_shell_command, delete_records (destructive ops)") + print(" ALLOW — everything else") + print() ``` !!! note "Version compatibility"