Model
Namespace: E2E.Decision
public static class ModelUpstream’s model.ts.
Inheritance: object
Methods
Section titled “Methods”CheckModel(object?, ModelNeeds)
Section titled “CheckModel(object?, ModelNeeds)”public static void CheckModel(object? model, ModelNeeds needs)Upstream’s checkModel. Rejects anything the decision call cannot decide with, at config load: a model id string, a language
model, or a decision model that cannot answer the caller’s question type.
Parameters
| Name | Type | Description |
|---|---|---|
model |
object | |
needs |
ModelNeeds |
CheckProviderOptions(IReadOnlyDictionary<string, JsonElement>?, string)
Section titled “CheckProviderOptions(IReadOnlyDictionary<string, JsonElement>?, string)”public static void CheckProviderOptions(IReadOnlyDictionary<string, JsonElement>? value, string caller)Upstream’s checkProviderOptions. Rejects providerOptions other than provider names mapped to option objects, the shape
the decision call takes, at config load.
Parameters
| Name | Type | Description |
|---|---|---|
value |
IReadOnlyDictionary<string, JsonElement> | |
caller |
string |