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"],