🪢 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 type { InAppAgentQuestionnaireQuestion } from "@langfuse/shared/in-app-agent";
export function createQuestionnaireFormValues(
questions: readonly InAppAgentQuestionnaireQuestion[],
) {
return {
answers: questions.map(() => ({
selectedOptionIndexes: [] as number[],
otherText: "",
})),
};
}
export type QuestionnaireFormValues = ReturnType<
typeof createQuestionnaireFormValues
>;
export type QuestionnaireFormAnswer =
QuestionnaireFormValues["answers"][number];