-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathIModelCapabilities.cs
More file actions
52 lines (46 loc) · 1.39 KB
/
IModelCapabilities.cs
File metadata and controls
52 lines (46 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
namespace MaIN.Domain.Models.Abstract;
/// <summary>
/// Interface for models that support vision/image input capabilities.
/// </summary>
public interface IVisionModel
{
/// <summary>
/// Name of the multimodal projector file. (must be in the same location as the model)
/// Null for cloud models (handled by provider API).
/// </summary>
string? MMProjectName { get; }
}
/// <summary>
/// Interface for models that support reasoning/thinking capabilities.
/// </summary>
public interface IReasoningModel
{
/// <summary>
/// Function to process reasoning tokens.
/// Null for cloud models (reasoning handled by provider API).
/// </summary>
Func<string, ThinkingState, LLMTokenValue>? ReasonFunction { get; }
/// <summary>
/// Additional prompt added to enable reasoning mode.
/// </summary>
string? AdditionalPrompt { get; }
}
// TODO: use it with existing embedding model
/// <summary>
/// Interface for models that support embeddings generation.
/// </summary>
public interface IEmbeddingModel
{
/// <summary>
/// Dimension of the embedding vector.
/// </summary>
int EmbeddingDimension { get; }
}
/// <summary>
/// Interface for models that support text-to-speech.
/// </summary>
public interface ITTSModel;
/// <summary>
/// Interface for models that generate images from text prompts.
/// </summary>
public interface IImageGenerationModel;