Fix breaks after merge from main

This commit is contained in:
westey
2025-12-31 12:26:36 +00:00
Unverified
parent 443ed50f58
commit f958bf06ba
3 changed files with 6 additions and 6 deletions
@@ -66,12 +66,12 @@ public sealed class AggregatorPromptAgentFactoryTests
private sealed class TestAgent : AIAgent
{
public override AgentThread DeserializeThread(JsonElement serializedThread, JsonSerializerOptions? jsonSerializerOptions = null)
public override AgentThread DeserializeThread(JsonElement serializedThread, JsonSerializerOptions? jsonSerializerOptions = null, IAgentFeatureCollection? featureCollection = null)
{
throw new NotImplementedException();
}
public override AgentThread GetNewThread()
public override AgentThread GetNewThread(IAgentFeatureCollection? featureCollection = null)
{
throw new NotImplementedException();
}
@@ -334,9 +334,9 @@ internal sealed class FakeForwardedPropsAgent : AIAgent
await Task.CompletedTask;
}
public override AgentThread GetNewThread() => new FakeInMemoryAgentThread();
public override AgentThread GetNewThread(IAgentFeatureCollection? featureCollection = null) => new FakeInMemoryAgentThread();
public override AgentThread DeserializeThread(JsonElement serializedThread, JsonSerializerOptions? jsonSerializerOptions = null)
public override AgentThread DeserializeThread(JsonElement serializedThread, JsonSerializerOptions? jsonSerializerOptions = null, IAgentFeatureCollection? featureCollection = null)
{
return new FakeInMemoryAgentThread(serializedThread, jsonSerializerOptions);
}
@@ -85,7 +85,7 @@ public class ChatClientAgent_DeserializeThreadTests
var mockMessageStore = new Mock<ChatMessageStore>();
var agent = new ChatClientAgent(mockChatClient.Object, new ChatClientAgentOptions
{
Instructions = "Test instructions",
ChatOptions = new ChatOptions { Instructions = "Test instructions" },
ChatMessageStoreFactory = _ =>
{
Assert.Fail("ChatMessageStoreFactory should not have been called.");
@@ -117,7 +117,7 @@ public class ChatClientAgent_DeserializeThreadTests
var mockContextProvider = new Mock<AIContextProvider>();
var agent = new ChatClientAgent(mockChatClient.Object, new ChatClientAgentOptions
{
Instructions = "Test instructions",
ChatOptions = new ChatOptions { Instructions = "Test instructions" },
AIContextProviderFactory = _ =>
{
Assert.Fail("AIContextProviderFactory should not have been called.");