INNER CODE UNIT · TypeScript
decideMentionGate
Beever-AI/beever-atlas · bot/src/index.ts:432
export function decideMentionGate(input: {
text: string;
broadcast: boolean;
hasImage: boolean;
}): RespondDecision {
const decision = decideShouldRespond({
text: input.text,
broadcast: input.broadcast,
isMention: true,
surface: "mention",
});
if (input.hasImage && decision !== "respond") return "respond";
return decision;
}
/**
* Recover the original text-only intent after image extraction.
*