| | | 1 | | namespace Intentum.AI.ONNX; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Options for the ONNX-based local intent classifier. |
| | | 5 | | /// </summary> |
| | | 6 | | /// <param name="ModelPath">Path to the ONNX model file. Expected: input tensor [1, N] float, output tensor [1, C] float |
| | | 7 | | /// <param name="IntentLabels">Intent names in order of model output indices (index 0 = first label, etc.). Length must |
| | | 8 | | /// <param name="FeatureDimensionNames">Dimension names (e.g. "user:click", "user:login") in order of model input indice |
| | | 9 | | /// <param name="InputName">Optional. ONNX input tensor name; when null, the first input is used.</param> |
| | | 10 | | /// <param name="OutputName">Optional. ONNX output tensor name; when null, the first output is used.</param> |
| | 6 | 11 | | public sealed record OnnxIntentModelOptions( |
| | 17 | 12 | | string ModelPath, |
| | 14 | 13 | | IReadOnlyList<string> IntentLabels, |
| | 7 | 14 | | IReadOnlyList<string>? FeatureDimensionNames = null, |
| | 4 | 15 | | string? InputName = null, |
| | 10 | 16 | | string? OutputName = null); |