Documentation
Table of Contents

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

client IntentClient

The client every run is sent through.

catalog IIntentCatalog

The catalog definitions are read from, on every call.

validators IIntentValidatorRegistry

The validators definitions may name in validators. Null means none, so a definition that names one throws when it runs, before any model call.

types IIntentTypeRegistry

The types clr shapes may name. Null means none, so a definition with a clr shape throws when it runs, before any model call.

logger ILogger<IntentRuntime>

Receives the one line per run (name, version, success and attempt count). Null logs nothing.

Exceptions

ArgumentNullException

client or catalog is null.