You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-foundry/agents/how-to/tools/browser-automation-samples.md
+76-59Lines changed: 76 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,9 +28,8 @@ Use this article to find step-by-step instructions and code samples for using th
28
28
* The following packages:
29
29
30
30
```console
31
-
pip install --pre azure-ai-projects
32
-
pip install azure-ai-agents==1.2.0b1
33
-
pip install azure-identity
31
+
pip install azure-ai-agents --pre
32
+
pip install azure-ai-projects azure-identity
34
33
```
35
34
* The **contributor** role assigned to your AI Foundry project from within your Playwright workplace.
36
35
* Your playwright connection ID. You can find it in the Azure AI Foundry portal by selecting **Management center** from the left navigation menu. Then select **Connected resources**. The URI should start with `wss://` instead of `https://` if presented.
@@ -48,87 +47,105 @@ Use this article to find step-by-step instructions and code samples for using th
48
47
49
48
```python
50
49
import os
51
-
from azure.identity import DefaultAzureCredential
52
-
from azure.ai.agents import AgentsClient
53
-
from azure.ai.agents.models import MessageRole
54
50
from azure.ai.projects import AIProjectClient
51
+
from azure.ai.agents.models import (
52
+
MessageRole,
53
+
RunStepToolCallDetails,
54
+
BrowserAutomationTool,
55
+
RunStepBrowserAutomationToolCall,
56
+
)
57
+
from azure.identity import DefaultAzureCredential
55
58
56
-
project_endpoint = os.environ["PROJECT_ENDPOINT"] # Ensure the PROJECT_ENDPOINT environment variable is set
0 commit comments