You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

IModelSessionService.cs 487 B

12345678910111213141516
  1. using LLama.Abstractions;
  2. using LLama.Web.Common;
  3. using LLama.Web.Models;
  4. namespace LLama.Web.Services
  5. {
  6. public interface IModelSessionService
  7. {
  8. Task<ModelSession> GetAsync(string sessionId);
  9. Task<IServiceResult<ModelSession>> CreateAsync(LLamaExecutorType executorType, string sessionId, string modelName, string promptName, string parameterName);
  10. Task<bool> RemoveAsync(string sessionId);
  11. Task<bool> CancelAsync(string sessionId);
  12. }
  13. }