Reference the correct JsonUtilities class (#1270)

This commit is contained in:
westey
2025-10-07 23:02:19 +01:00
committed by GitHub
Unverified
parent 8b73b5b1be
commit 127bf68748
@@ -52,7 +52,7 @@ public class ChatClientAgentThread : AgentThread
}
var state = serializedThreadState.Deserialize(
AgentAbstractionsJsonUtilities.DefaultOptions.GetTypeInfo(typeof(ThreadState))) as ThreadState;
AgentJsonUtilities.DefaultOptions.GetTypeInfo(typeof(ThreadState))) as ThreadState;
this.AIContextProvider = aiContextProviderFactory?.Invoke(state?.AIContextProviderState ?? default, jsonSerializerOptions);
@@ -170,7 +170,7 @@ public class ChatClientAgentThread : AgentThread
AIContextProviderState = aiContextProviderState
};
return JsonSerializer.SerializeToElement(state, AgentAbstractionsJsonUtilities.DefaultOptions.GetTypeInfo(typeof(ThreadState)));
return JsonSerializer.SerializeToElement(state, AgentJsonUtilities.DefaultOptions.GetTypeInfo(typeof(ThreadState)));
}
/// <inheritdoc/>