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/how-to/develop/sdk-overview.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,10 @@ The Azure AI Foundry SDK is a set of client libraries and services designed to w
41
41
42
42
## Unified Projects client library
43
43
44
+
The following examples show how to connect to your Azure AI Foundry project using different programming languages. This connection is the first step to accessing models, data, and AI services through the SDK. Each code block demonstrates how to authenticate and create a client for your project endpoint.
45
+
46
+
> [!TIP]
47
+
> The code samples below are starting points. You’ll use these clients to interact with models, run evaluations, and more, as described in the client libraries section below.
44
48
45
49
46
50
::: zone pivot="programming-language-python"
@@ -62,6 +66,7 @@ The [Azure AI Foundry Projects client library for Python](/python/api/overview/a
62
66
project = AIProjectClient(
63
67
endpoint="your_project_endpoint", # Replace with your endpoint
64
68
credential=DefaultAzureCredential())
69
+
# The AIProjectClient lets you access models, data, and services in your project.
65
70
```
66
71
::: zone-end
67
72
@@ -88,6 +93,7 @@ The [Azure AI Foundry Projects client library for Java (preview)](/java/api/over
88
93
.credential(new DefaultAzureCredential())
89
94
.endpoint(endpoint)
90
95
.buildClient();
96
+
// The ProjectsClient enables unified access to your project's resources.
91
97
```
92
98
93
99
@@ -113,6 +119,7 @@ The [Azure AI Foundry Projects client library for JavaScript](/javascript/api/ov
113
119
114
120
const endpoint = "your_project_endpoint"; // Replace with your actual endpoint
115
121
const project = new AIProjectClient(endpoint, new DefaultAzureCredential());
122
+
// The AIProjectClient lets you access models, data, and services in your project.
116
123
```
117
124
118
125
@@ -147,17 +154,20 @@ The [Azure AI Foundry Projects client library for .NET](/dotnet/api/overview/azu
147
154
credential,
148
155
new string[] { "https://cognitiveservices.azure.com/.default" }
149
156
);
157
+
// The PerRetry position ensures the authentication policy is applied to every retry attempt.
158
+
// This is important for robust authentication in distributed/cloud environments.
// The ChatCompletionsClient lets you interact with models and services in your project.
157
167
```
158
168
159
169
::: zone-end
160
-
170
+
After you create a client, you can use it to access models, run evaluations, and connect to other AI services. The next section lists the available client libraries and shows how to use them for specific Azure AI services.
161
171
<a name="azure-ai-foundry-agent-service"></a>
162
172
* Using the project endpoint, you can:
163
173
- [Use Foundry Model](../../quickstarts/get-started-code.md), including Azure OpenAI
0 commit comments