Constructor IntentRuntime
- Namespace
- IntentSharp.Catalog
- Assembly
- IntentSharp.Catalog.dll
IntentRuntime(IntentClient, IIntentCatalog, IIntentValidatorRegistry?, IIntentTypeRegistry?, ILogger<IntentRuntime>?)
Creates a runtime that runs the definitions in catalog through client.
public IntentRuntime(IntentClient client, IIntentCatalog catalog, IIntentValidatorRegistry? validators = null, IIntentTypeRegistry? types = null, ILogger<IntentRuntime>? logger = null)
Parameters
clientIntentClientThe client every run is sent through.
catalogIIntentCatalogThe catalog definitions are read from, on every call.
validatorsIIntentValidatorRegistryThe validators definitions may name in
validators. Null means none, so a definition that names one throws when it runs, before any model call.typesIIntentTypeRegistryThe types clr shapes may name. Null means none, so a definition with a clr shape throws when it runs, before any model call.
loggerILogger<IntentRuntime>Receives the one line per run (name, version, success and attempt count). Null logs nothing.
Exceptions
- ArgumentNullException
clientorcatalogis null.