mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System.Diagnostics;
|
|
|
|
namespace Microsoft.Agents.AI;
|
|
|
|
/// <summary>
|
|
/// Provides metadata information about an <see cref="AIAgent"/> instance.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This class contains descriptive information about an agent that can be used for identification,
|
|
/// telemetry, and logging purposes.
|
|
/// </remarks>
|
|
[DebuggerDisplay("ProviderName = {ProviderName}")]
|
|
public class AIAgentMetadata
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="AIAgentMetadata"/> class.
|
|
/// </summary>
|
|
/// <param name="providerName">
|
|
/// The name of the agent provider, if applicable. Where possible, this should map to the
|
|
/// appropriate name defined in the OpenTelemetry Semantic Conventions for Generative AI systems.
|
|
/// </param>
|
|
public AIAgentMetadata(string? providerName = null)
|
|
{
|
|
this.ProviderName = providerName;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the name of the agent provider.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The provider name that identifies the underlying service or implementation powering the agent.
|
|
/// </value>
|
|
/// <remarks>
|
|
/// Where possible, this maps to the appropriate name defined in the
|
|
/// OpenTelemetry Semantic Conventions for Generative AI systems.
|
|
/// </remarks>
|
|
public string? ProviderName { get; }
|
|
}
|