Skip to content

Commit dc987ed

Browse files
Fix infinite recursion in test implementations
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>
1 parent 322052e commit dc987ed

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dotnet/tests/Microsoft.Agents.AI.Hosting.AGUI.AspNetCore.IntegrationTests/ForwardedPropertiesTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public FakeForwardedPropsAgent()
305305

306306
protected override Task<AgentRunResponse> RunCoreAsync(IEnumerable<ChatMessage> messages, AgentThread? thread = null, AgentRunOptions? options = null, CancellationToken cancellationToken = default)
307307
{
308-
return this.RunStreamingAsync(messages, thread, options, cancellationToken).ToAgentRunResponseAsync(cancellationToken);
308+
return this.RunCoreStreamingAsync(messages, thread, options, cancellationToken).ToAgentRunResponseAsync(cancellationToken);
309309
}
310310

311311
protected override async IAsyncEnumerable<AgentRunResponseUpdate> RunCoreStreamingAsync(

dotnet/tests/Microsoft.Agents.AI.Hosting.AGUI.AspNetCore.IntegrationTests/SharedStateTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ internal sealed class FakeStateAgent : AIAgent
344344

345345
protected override Task<AgentRunResponse> RunCoreAsync(IEnumerable<ChatMessage> messages, AgentThread? thread = null, AgentRunOptions? options = null, CancellationToken cancellationToken = default)
346346
{
347-
return this.RunStreamingAsync(messages, thread, options, cancellationToken).ToAgentRunResponseAsync(cancellationToken);
347+
return this.RunCoreStreamingAsync(messages, thread, options, cancellationToken).ToAgentRunResponseAsync(cancellationToken);
348348
}
349349

350350
protected override async IAsyncEnumerable<AgentRunResponseUpdate> RunCoreStreamingAsync(

dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/Sample/06_GroupChat_Workflow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public override AgentThread DeserializeThread(JsonElement serializedThread, Json
6969
protected override async Task<AgentRunResponse> RunCoreAsync(IEnumerable<ChatMessage> messages, AgentThread? thread = null, AgentRunOptions? options = null, CancellationToken cancellationToken = default)
7070
{
7171
IEnumerable<AgentRunResponseUpdate> update = [
72-
await this.RunStreamingAsync(messages, thread, options, cancellationToken)
72+
await this.RunCoreStreamingAsync(messages, thread, options, cancellationToken)
7373
.SingleAsync(cancellationToken)
7474
.ConfigureAwait(false)];
7575

0 commit comments

Comments
 (0)