Method GetSupportedIntents
- Namespace
- LMKit.Extraction.Ocr
- Assembly
- LM-Kit.NET.dll
GetSupportedIntents(LM)
Returns the intents that are known to produce dedicated results with the specified model.
public static IReadOnlyList<VlmOcrIntent> GetSupportedIntents(LM model)
Parameters
modelLMThe LM instance to query. The model does not need to be loaded with tensor weights; only the model metadata is inspected.
Returns
- IReadOnlyList<VlmOcrIntent>
A read-only list of VlmOcrIntent values that the engine can map to a model-specific instruction. Intents not present in this list are still accepted by the constructor but may fall back to a best-effort behavior. Undefined is never included because it is a meta-value resolved at construction time.
Examples
var intents = VlmOcr.GetSupportedIntents(model);
Console.WriteLine("Supported intents:");
foreach (var intent in intents)
{
Console.WriteLine($" {intent}");
}
Exceptions
- ArgumentNullException
Thrown if
modelisnull.