Class AdaptiveInstructionsSettings
Inheritance
AdaptiveInstructionsSettings
Assembly: Glitch9.AIDevKit.Agent.dll
Syntax
[Serializable]
public sealed class AdaptiveInstructionsSettings : IDefaultInstructionsUpdaterSettings, IInstructionsUpdaterSettings
Properties
|
Edit this page
View Source
EmbeddingModel
Declaration
public Model EmbeddingModel { get; }
Property Value
|
Edit this page
View Source
GenerationModel
Declaration
public Model GenerationModel { get; }
Property Value
|
Edit this page
View Source
MaxTokens
Maximum number of tokens for the generated system instructions. Default 400.
Declaration
public int MaxTokens { get; }
Property Value
|
Edit this page
View Source
Additional context describing the agent's role and purpose, provided to the LLM.
When null, only the default meta prompt is used.
Declaration
public string MetaInstructions { get; }
Property Value
|
Edit this page
View Source
MinMessageLength
Minimum total character length of a message to be considered non-trivial. Default 8.
Declaration
public int MinMessageLength { get; }
Property Value
|
Edit this page
View Source
MinQuestionLength
Minimum character length for a question (ending with '?') to be considered non-trivial. Default 8.
Declaration
public int MinQuestionLength { get; }
Property Value
|
Edit this page
View Source
TopicShiftThreshold
Cosine similarity lower bound (0??) below which a topic shift is declared. Default 0.82.
When similarity falls below this threshold, the LLM is called to regenerate instructions.
Declaration
public float TopicShiftThreshold { get; }
Property Value
Methods
|
Edit this page
View Source
Build(ILogger)
Declaration
public IInstructionsUpdater Build(ILogger logger = null)
Parameters
| Type |
Name |
Description |
| ILogger |
logger |
|
Returns
Implements
Extension Methods