mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
.Net: Added Azure AI Persistent Agents (#81)
* Added PersistentAgentsChatClient * Added integration tests * Small fixes * Added sample * Added TODO for tools * Small rename * Removed user-secrets id * Renamed project * Fixed warning * Fixed warning * More fixes * More fixes
This commit is contained in:
committed by
GitHub
Unverified
parent
d1d69af482
commit
47dcad6b49
@@ -43,6 +43,16 @@ public sealed class TestConfiguration
|
||||
public string? ApiKey { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>Represents the configuration settings required to interact with the Azure AI service.</summary>
|
||||
public sealed class AzureAIConfig
|
||||
{
|
||||
/// <summary>Gets or sets the endpoint of Azure AI Foundry project.</summary>
|
||||
public string? Endpoint { get; set; }
|
||||
|
||||
/// <summary>Gets or sets the name of the model deployment.</summary>
|
||||
public string? DeploymentName { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes the configuration system with the specified configuration root.
|
||||
/// </summary>
|
||||
@@ -53,6 +63,7 @@ public sealed class TestConfiguration
|
||||
}
|
||||
|
||||
#region Private Members
|
||||
|
||||
private readonly IConfigurationRoot _configRoot;
|
||||
private static TestConfiguration? s_instance;
|
||||
|
||||
@@ -66,6 +77,11 @@ public sealed class TestConfiguration
|
||||
/// </summary>
|
||||
private static IConfigurationRoot? ConfigurationRoot => s_instance?._configRoot;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the configuration settings for the AzureAI integration.
|
||||
/// </summary>
|
||||
public static AzureAIConfig AzureAI => LoadSection<AzureAIConfig>();
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a configuration section based on the specified key.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user