We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf05722 commit 2445dc5Copy full SHA for 2445dc5
src/participant/prompts/promptBase.ts
@@ -193,6 +193,8 @@ export abstract class PromptBase<TArgs extends PromptArgsBase> {
193
historyItem.result.errorDetails?.message ===
194
ParticipantErrorTypes.FILTERED
195
) {
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.
198
messages.pop();
199
continue;
200
}
0 commit comments