LoopDetectionModifier
Class: LoopDetectionModifier
Defined in: packages/agent/src/processor-pieces/postInferenceProcessors/loopDetectionModifier.ts:18
Extends
BasePostInferenceProcessor
Constructors
Constructor
new LoopDetectionModifier(options: LoopDetectionOptions): LoopDetectionModifier;
Defined in: packages/agent/src/processor-pieces/postInferenceProcessors/loopDetectionModifier.ts:23
Parameters
| Parameter | Type |
|---|---|
options | LoopDetectionOptions |
Returns
LoopDetectionModifier
Overrides
BasePostInferenceProcessor.constructor
Properties
Methods
getMessageHistory()
getMessageHistory(): MessageHistory[];
Defined in: packages/agent/src/processor-pieces/postInferenceProcessors/loopDetectionModifier.ts:232
Returns
MessageHistory[]
modify()
modify(
llmMessageSent: ProcessedMessage,
llmResponseMessage: LLMResponse,
nextPrompt: ProcessedMessage): Promise<ProcessedMessage>;
Defined in: packages/agent/src/processor-pieces/postInferenceProcessors/loopDetectionModifier.ts:33
Parameters
| Parameter | Type |
|---|---|
llmMessageSent | ProcessedMessage |
llmResponseMessage | LLMResponse |
nextPrompt | ProcessedMessage |
Returns
Promise<ProcessedMessage>
Overrides
BasePostInferenceProcessor.modify
resetLoopDetection()
resetLoopDetection(): void;
Defined in: packages/agent/src/processor-pieces/postInferenceProcessors/loopDetectionModifier.ts:227
Returns
void