From f79c416c58557d2f946aa5332989afdfa8c021cd Mon Sep 17 00:00:00 2001 From: soryu Date: Fri, 2 Jan 2026 22:13:28 +0000 Subject: Add defined user input dialogue to LLM edit --- makima/frontend/src/lib/api.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'makima/frontend/src/lib/api.ts') diff --git a/makima/frontend/src/lib/api.ts b/makima/frontend/src/lib/api.ts index eb8d908..2657a95 100644 --- a/makima/frontend/src/lib/api.ts +++ b/makima/frontend/src/lib/api.ts @@ -155,11 +155,26 @@ export interface ToolCallInfo { }; } +// User question types for interactive LLM tool +export interface UserQuestion { + id: string; + question: string; + options: string[]; + allowMultiple: boolean; + allowCustom: boolean; +} + +export interface UserAnswer { + id: string; + answers: string[]; +} + export interface ChatResponse { response: string; toolCalls: ToolCallInfo[]; updatedBody: BodyElement[]; updatedSummary: string | null; + pendingQuestions?: UserQuestion[]; } // File API functions -- cgit v1.2.3