Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -34,7 +34,7 @@
from azure.ai.projects import AIProjectClient
from azure.ai.projects.models import (
PromptAgentDefinition,
BrowserAutomationPreviewTool,
BrowserAutomationTool,
BrowserAutomationToolParameters,
BrowserAutomationToolConnectionParameters,
)
Expand All @@ -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"],
Expand Down
Loading