/ src / modules / cmdpal / ext / Microsoft.CmdPal.Ext.Bookmark / Services / IBookmarkResolver.cs
IBookmarkResolver.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  using System.Threading;
 6  using System.Threading.Tasks;
 7  using Microsoft.CmdPal.Ext.Bookmarks.Helpers;
 8  
 9  namespace Microsoft.CmdPal.Ext.Bookmarks.Services;
10  
11  internal interface IBookmarkResolver
12  {
13      Task<(bool Success, Classification Result)> TryClassifyAsync(string input, CancellationToken cancellationToken = default);
14  
15      Classification ClassifyOrUnknown(string input);
16  }