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
> **NOTE**: The Assistants API should always be used from a trusted device. Because the same authentication mechanism for running threads also allows changing persistent resources like Assistant instructions, a malicious user could extract an API key and modify Assistant behavior for other customers.
@@ -135,11 +135,11 @@ purpose of 'assistants' to make a file ID available:
135
135
File.WriteAllText(
136
136
path: "sample_file_for_upload.txt",
137
137
contents: "The word 'apple' uses the code 442345, while the word 'banana' uses the code 673457.");
Copy file name to clipboardExpand all lines: sdk/ai/Azure.AI.Projects/src/Custom/Agent/AgentsClient.cs
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -18,14 +18,14 @@ namespace Azure.AI.Projects
18
18
{
19
19
/// <summary> The Agents sub-client. </summary>
20
20
[CodeGenClient("Agents")]
21
-
publicpartialclassAgentClient
21
+
publicpartialclassAgentsClient
22
22
{
23
23
/// <summary> Initializes a new instance of AzureAIClient. </summary>
24
24
/// <param name="connectionString">The Azure AI Studio project connection string, in the form `endpoint;subscription_id;resource_group_name;project_name`.</param>
25
25
/// <param name="credential"> A credential used to authenticate to an Azure Service. </param>
26
26
/// <exception cref="ArgumentNullException"> <paramref name="connectionString"/> is null. </exception>
@@ -55,7 +55,7 @@ public AgentClient(string connectionString, TokenCredential credential, AIProjec
55
55
/// <param name="credential"> A credential used to authenticate to an Azure Service. </param>
56
56
/// <exception cref="ArgumentNullException"> <paramref name="endpoint"/>, <paramref name="subscriptionId"/>, <paramref name="resourceGroupName"/>, <paramref name="projectName"/> or <paramref name="credential"/> is null. </exception>
57
57
/// <exception cref="ArgumentException"> <paramref name="subscriptionId"/>, <paramref name="resourceGroupName"/> or <paramref name="projectName"/> is an empty string, and was expected to be non-empty. </exception>
@@ -68,7 +68,7 @@ public AgentClient(string connectionString, TokenCredential credential, AIProjec
68
68
/// <param name="options"> The options for configuring the client. </param>
69
69
/// <exception cref="ArgumentNullException"> <paramref name="endpoint"/>, <paramref name="subscriptionId"/>, <paramref name="resourceGroupName"/>, <paramref name="projectName"/> or <paramref name="credential"/> is null. </exception>
70
70
/// <exception cref="ArgumentException"> <paramref name="subscriptionId"/>, <paramref name="resourceGroupName"/> or <paramref name="projectName"/> is an empty string, and was expected to be non-empty. </exception>
0 commit comments