Skip to content

Commit 2445dc5

Browse files
committed
Add explainer
1 parent bf05722 commit 2445dc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/participant/prompts/promptBase.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ export abstract class PromptBase<TArgs extends PromptArgsBase> {
193193
historyItem.result.errorDetails?.message ===
194194
ParticipantErrorTypes.FILTERED
195195
) {
196+
// If the response led to a filtered error, we do not want the
197+
// error-causing message to be sent again so we remove it.
196198
messages.pop();
197199
continue;
198200
}

0 commit comments

Comments
 (0)