diff --git a/src/dotnet/SemanticKernel/Agents/SemanticKernelAgentBase.cs b/src/dotnet/SemanticKernel/Agents/SemanticKernelAgentBase.cs index d0f06a5cd9..25577ac0ea 100644 --- a/src/dotnet/SemanticKernel/Agents/SemanticKernelAgentBase.cs +++ b/src/dotnet/SemanticKernel/Agents/SemanticKernelAgentBase.cs @@ -98,7 +98,8 @@ private async Task GetResource(string objectId, string resourceTypeName, I UserId = "SemanticKernelAPI", Username = "SemanticKernelAPI" }); - return (result as List)!.First(); + var resource = (result as List>)!.First().Resource; + return resource; } private void ValidateRequest()