mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
98819e5e94
Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>
25 lines
791 B
C#
25 lines
791 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
namespace AgentConversation.IntegrationTests;
|
|
|
|
/// <summary>
|
|
/// Captures the size characteristics of a conversation context at a specific point in time.
|
|
/// </summary>
|
|
public sealed class ConversationMetrics
|
|
{
|
|
/// <summary>
|
|
/// Gets the number of messages in the conversation context.
|
|
/// </summary>
|
|
public required int MessageCount { get; init; }
|
|
|
|
/// <summary>
|
|
/// Gets the approximate serialized size of the conversation context in bytes.
|
|
/// This serves as a proxy for context window consumption.
|
|
/// </summary>
|
|
public required long SerializedSizeBytes { get; init; }
|
|
|
|
/// <inheritdoc />
|
|
public override string ToString() =>
|
|
$"Messages={MessageCount}, Size={SerializedSizeBytes}B";
|
|
}
|