Save function result to Storage

This commit is contained in:
Haiping Chen 2024-03-28 14:09:13 -05:00
parent 714cbae6c6
commit 9f79dcf4a8

View file

@ -68,6 +68,10 @@ public partial class RoutingService
message.FunctionName = originalFunctionName;
}
// Save to Storage as well
var storage = _services.GetRequiredService<IConversationStorage>();
storage.Append(Context.ConversationId, message);
return result;
}
}