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: src/Observability/Runtime/Tracing/Contracts/AgentDetails.cs
+16-3Lines changed: 16 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ public class AgentDetails : IEquatable<AgentDetails>
25
25
/// <param name="agentClientIP">Optional client IP address of the agent.</param>
26
26
/// <param name="agentPlatformId">Optional platform ID for the agent.</param>
27
27
/// <param name="providerName">Optional provider name (e.g., openai, anthropic).</param>
28
+
/// <param name="agentVersion">Optional version of the agent (e.g., "1.0.0", "2025-05-01").</param>
28
29
/// <remarks>
29
30
/// <para>
30
31
/// <b>Certification Requirements:</b> The following parameters must be set for the agent to pass certification requirements, and these values override any of the same values specified in the <see cref="Microsoft.Agents.A365.Observability.Runtime.Common.BaggageBuilder"/> class:
@@ -55,7 +56,8 @@ public AgentDetails(
55
56
AgentType?agentType=null,
56
57
IPAddress?agentClientIP=null,
57
58
string?agentPlatformId=null,
58
-
string?providerName=null)
59
+
string?providerName=null,
60
+
string?agentVersion=null)
59
61
{
60
62
AgentId=agentId;
61
63
AgentName=agentName;
@@ -68,6 +70,7 @@ public AgentDetails(
68
70
AgentClientIP=agentClientIP;
69
71
AgentPlatformId=agentPlatformId;
70
72
ProviderName=providerName;
73
+
AgentVersion=agentVersion;
71
74
}
72
75
73
76
/// <summary>
@@ -125,6 +128,11 @@ public AgentDetails(
125
128
/// </summary>
126
129
publicstring?ProviderName{get;}
127
130
131
+
/// <summary>
132
+
/// Optional version of the agent (e.g., "1.0.0", "2025-05-01").
133
+
/// </summary>
134
+
publicstring?AgentVersion{get;}
135
+
128
136
/// <summary>
129
137
/// Deconstructs the current instance into discrete values.
130
138
/// </summary>
@@ -138,6 +146,7 @@ public AgentDetails(
138
146
/// <param name="tenantId">Receives the tenant identifier.</param>
139
147
/// <param name="agentClientIP">Receives the client IP address.</param>
140
148
/// <param name="agentPlatformId">Receives the platform ID.</param>
149
+
/// <param name="agentVersion">Receives the agent version.</param>
141
150
publicvoidDeconstruct(
142
151
outstring?agentId,
143
152
outstring?agentName,
@@ -148,7 +157,8 @@ public void Deconstruct(
148
157
outAgentType?agentType,
149
158
outstring?tenantId,
150
159
outIPAddress?agentClientIP,
151
-
outstring?agentPlatformId)
160
+
outstring?agentPlatformId,
161
+
outstring?agentVersion)
152
162
{
153
163
agentId=AgentId;
154
164
agentName=AgentName;
@@ -160,6 +170,7 @@ public void Deconstruct(
160
170
tenantId=TenantId;
161
171
agentClientIP=AgentClientIP;
162
172
agentPlatformId=AgentPlatformId;
173
+
agentVersion=AgentVersion;
163
174
}
164
175
165
176
/// <inheritdoc/>
@@ -179,7 +190,8 @@ public bool Equals(AgentDetails? other)
0 commit comments