SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
68d7816 verified
Raw History Blame Contribute Delete
856 Bytes
export interface QuestionOption {
readonly label: string;
readonly description?: string;
}
export interface QuestionItem {
readonly question: string;
readonly header?: string;
readonly body?: string;
readonly options: readonly QuestionOption[];
readonly multiSelect?: boolean;
readonly otherLabel?: string;
readonly otherDescription?: string;
}
export type QuestionAnswerMethod = 'enter' | 'space' | 'number_key';
export type QuestionAnswers = Record<string, string | true>;
export interface QuestionResponse {
readonly answers: QuestionAnswers;
readonly method?: QuestionAnswerMethod;
}
export type QuestionResult = null | QuestionAnswers | QuestionResponse;
export interface QuestionRequest {
readonly id?: string;
readonly turnId?: number;
readonly toolCallId?: string;
readonly questions: readonly QuestionItem[];
}