Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/outpost/ai/src/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class ResponseFormatter {
options?: { addDisclaimer?: boolean; disclaimerText?: string },
): FormattedResponse {
const disclaimer = options?.addDisclaimer
? `> ⚠️ ${options.disclaimerText ?? 'This is an AI-generated response. A human agent will review shortly.'}\n\n`
? `> ⚠️ ${options.disclaimerText ?? 'This is an AI-generated response. A member of our team will review it shortly.'}\n\n`
: '';

const fullText = disclaimer + text;
Expand Down
4 changes: 2 additions & 2 deletions packages/outpost/ai/src/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ export class AIPipeline {
const needsDisclaimer = finalConfidence !== ConfidenceLevel.HIGH;
const disclaimerText =
finalConfidence === ConfidenceLevel.LOW
? 'This is an AI-generated response with low confidence. A human agent has been notified and will follow up.'
: 'This is an AI-generated response. A human agent will verify shortly.';
? "This is an AI-generated response and may be incomplete. We've escalated this to our engineering team — someone will follow up in this thread shortly."
: 'This is an AI-generated response. A member of our team will review and follow up if needed.';

const formatted = this.formatter.format(generatedResponse.text, options.source, {
addDisclaimer: needsDisclaimer,
Expand Down