MentorAgent Docs
Menu

Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.

ReferencePackage: Novior.MentorAgent

MentorRuntimeOptions class

The options of MentorOptions that can be changed while the application runs, and from when a change applies.

On this page

The options are one object for the process, the value of IOptions<MentorOptions>. To change one while the application runs, assign its property on that object, and replace a collection rather than change it in place. A turn already running may still read the value from before.

Every option listed is a promise, with a test that changes it on a running application and sees the change apply. Every other option is read before the application starts: set it there. One that is not listed may happen to work when changed later; nothing promises it.

Namespace: Novior.MentorAgent.Options. Package: Novior.MentorAgent.

public static class MentorRuntimeOptions

Terminal
dotnet add package Novior.MentorAgent

public static IReadOnlyDictionary<string, MentorOptionReadAt> Changeable { get; }

Every option that can be changed while the application runs, by the name of its MentorOptions property: MentorOptionReadAt.Session when a change applies to the sessions that begin after it, MentorOptionReadAt.Turn when it applies from the next turn of every session.

public static bool IsChangeable(string optionName)

Whether the option named optionName, a property of MentorOptions, can be changed while the application runs.

Parameters

  • optionName: The name of the property, as nameof(MentorOptions.Language) gives it.