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
Use this article to find step-by-step instructions and code samples for using the Sharepoint tool in Azure AI Foundry Agent Service.
19
19
20
-
## Step 1: Create a project client
21
-
22
-
Create a client object, which will contain the connection string for connecting to your AI project and other resources.
23
-
24
-
```python
25
-
import os
26
-
from azure.ai.projects import AIProjectClient
27
-
from azure.identity import DefaultAzureCredential
28
-
from azure.ai.projects.models import SharepointTool
20
+
## Step 1: Create an agent
21
+
22
+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AGENT_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
## Step 2: Create an Agent with the SharePoint tool enabled
32
-
33
-
To make the SharePoint tool available to your agent, use a connection to initialize the tool and attach it to the agent. You can find your connection in the **connected resources** section of your project in the Azure AI Foundry portal.
0 commit comments