Compare commits

...

2 Commits

Author SHA1 Message Date
Jacob Alber a35926518a Merge branch 'main' into dev/dotnet_workflow/state_manager_object_check 2026-03-25 18:40:06 -04:00
Jacob Alber e44be6611f fix: Re-enable the "retrieve object" check in StateManager 2026-03-25 18:23:52 -04:00
@@ -106,8 +106,7 @@ internal sealed class StateManager
if (typeof(T) == typeof(object))
{
// Reading as object will break across serialize/deserialize boundaries, e.g. checkpointing, distributed runtime, etc.
// Disabled pending upstream updates for this change; see https://github.com/microsoft/agent-framework/issues/1369
//throw new NotSupportedException("Reading state as 'object' is not supported. Use 'PortableValue' instead for variants.");
throw new NotSupportedException("Reading state as 'object' is not supported. Use 'PortableValue' instead for variants.");
}
Throw.IfNullOrEmpty(key);