From e483e7d3a15ecb8f44c29bec3573dbb17ee0b7be Mon Sep 17 00:00:00 2001 From: Mitesh Shah <58204159+mitsha-microsoft@users.noreply.github.com> Date: Fri, 11 Sep 2026 12:11:22 +0000 Subject: [PATCH] Updated sample for Browser Automation Tool --- .../samples/agents/tools/sample_agent_browser_automation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_browser_automation.py b/sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_browser_automation.py index 25585081f81b..22e7ecdb5db9 100644 --- a/sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_browser_automation.py +++ b/sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_browser_automation.py @@ -6,7 +6,7 @@ """ DESCRIPTION: This sample demonstrates how to create an AI agent with Browser Automation capabilities - using the BrowserAutomationPreviewTool and synchronous Azure AI Projects client. The agent can + using the BrowserAutomationTool and synchronous Azure AI Projects client. The agent can perform automated web browsing tasks and provide responses based on web interactions. USAGE: @@ -34,7 +34,7 @@ from azure.ai.projects import AIProjectClient from azure.ai.projects.models import ( PromptAgentDefinition, - BrowserAutomationPreviewTool, + BrowserAutomationTool, BrowserAutomationToolParameters, BrowserAutomationToolConnectionParameters, ) @@ -45,7 +45,7 @@ agent_name = os.environ.get("FOUNDRY_AGENT_NAME") or "MyAgent" -tool = BrowserAutomationPreviewTool( +tool = BrowserAutomationTool( browser_automation_preview=BrowserAutomationToolParameters( connection=BrowserAutomationToolConnectionParameters( project_connection_id=os.environ["BROWSER_AUTOMATION_PROJECT_CONNECTION_ID"],