🪢 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
import { ListRestartIcon } from "@langfuse/icons";
import { useRouter } from "next/router";
import { Button } from "@/src/components/ui/button";
import { usePersistedWindowIds } from "@/src/features/playground/page/hooks/usePersistedWindowIds";
export const ResetPlaygroundButton: React.FC = () => {
const router = useRouter();
const { clearAllCache } = usePersistedWindowIds();
const handleClick = () => {
clearAllCache();
router.reload();
};
return (
<Button
variant="outline"
title="Reset playground state"
onClick={handleClick}
className="gap-1"
>
<ListRestartIcon size="base" color="default" />
<span className="hidden lg:inline">Reset playground</span>
</Button>
);
};