mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
* Improve conformance of OpenAI Responses API serving * Update dotnet/src/Microsoft.Agents.AI.Hosting.OpenAI/Responses/AgentRunResponseExtensions.cs Co-authored-by: Stephen Toub <stoub@microsoft.com> * Update dotnet/src/Microsoft.Agents.AI.Hosting.OpenAI/Responses/AgentRunResponseExtensions.cs Co-authored-by: Stephen Toub <stoub@microsoft.com> * Sort packages * Relax adherence where acceptable * nit * PromptCacheKey is not obsolete * format --------- Co-authored-by: Stephen Toub <stoub@microsoft.com>
18 lines
451 B
C#
18 lines
451 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
namespace Microsoft.Agents.AI.Hosting.OpenAI.Responses.Streaming;
|
|
|
|
/// <summary>
|
|
/// Implements a sequence number generator.
|
|
/// </summary>
|
|
internal sealed class SequenceNumber
|
|
{
|
|
private int _sequenceNumber;
|
|
|
|
/// <summary>
|
|
/// Gets the next sequence number.
|
|
/// </summary>
|
|
/// <returns>The next sequence number.</returns>
|
|
public int Increment() => this._sequenceNumber++;
|
|
}
|