🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
const IGNORE_OUTSIDE_INTERACTION_ATTRIBUTE = "data-ignore-outside-interaction";
const IGNORE_OUTSIDE_INTERACTION_SELECTOR = `[${IGNORE_OUTSIDE_INTERACTION_ATTRIBUTE}]`;
export function shouldIgnoreOutsideInteraction(target: EventTarget | null) {
return (
target instanceof Element &&
Boolean(target.closest(IGNORE_OUTSIDE_INTERACTION_SELECTOR))
);
}