diff options
| author | soryu <soryu@soryu.co> | 2026-01-02 22:13:28 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-02 22:13:28 +0000 |
| commit | f79c416c58557d2f946aa5332989afdfa8c021cd (patch) | |
| tree | e64e8fef0bedd6b40d3a2314d39654aa5c073980 /makima/frontend/src/lib/api.ts | |
| parent | 2fab6904260099d9a011734763e62ebba91cf448 (diff) | |
| download | soryu-f79c416c58557d2f946aa5332989afdfa8c021cd.tar.gz soryu-f79c416c58557d2f946aa5332989afdfa8c021cd.zip | |
Add defined user input dialogue to LLM edit
Diffstat (limited to 'makima/frontend/src/lib/api.ts')
| -rw-r--r-- | makima/frontend/src/lib/api.ts | 15 |
1 files changed, 15 insertions, 0 deletions
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 |
