From 75789ac16bf9971d1b7bac0dd18c73328e24ccb4 Mon Sep 17 00:00:00 2001 From: Carey Payette Date: Wed, 22 May 2024 18:18:16 -0400 Subject: [PATCH] Bug fix retrieving resource --- src/dotnet/SemanticKernel/Agents/SemanticKernelAgentBase.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()