Skip to content

Model

Namespace: E2E.Decision

public static class Model

Upstream’s model.ts.

Inheritance: object

View source

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