* feat: 🚧 use ComboBox in place of UserInputContainer * feat: 🚧 adding context to previous inputs steps * feat: ✨ preview context items on click * feat: 🚧 more work on context items ui * style: 🚧 working out the details of ctx item buttons * feat: ✨ getting the final details * fix: 🐛 fix height of ctx items bar * fix: 🐛 last couple of details * fix: 🐛 pass model param through to hf inference api * fix: 🔊 better logging for timeout * feat: ✨ option to set the meilisearch url * fix: 🐛 fix height of past inputs
67 lines
1.7 KiB
TypeScript
67 lines
1.7 KiB
TypeScript
import { ContextItem, ContextItemId } from "../../../schema/FullState";
|
|
|
|
abstract class AbstractContinueGUIClientProtocol {
|
|
abstract sendMainInput(input: string): void;
|
|
|
|
abstract reverseToIndex(index: number): void;
|
|
|
|
abstract sendRefinementInput(input: string, index: number): void;
|
|
|
|
abstract sendStepUserInput(input: string, index: number): void;
|
|
|
|
abstract onStateUpdate(state: any): void;
|
|
|
|
abstract onAvailableSlashCommands(
|
|
callback: (commands: { name: string; description: string }[]) => void
|
|
): void;
|
|
|
|
abstract sendClear(): void;
|
|
|
|
abstract retryAtIndex(index: number): void;
|
|
|
|
abstract deleteAtIndex(index: number): void;
|
|
|
|
abstract deleteContextWithIds(ids: ContextItemId[], index?: number): void;
|
|
|
|
abstract setEditingAtIds(ids: string[]): void;
|
|
|
|
abstract toggleAddingHighlightedCode(): void;
|
|
|
|
abstract showLogsAtIndex(index: number): void;
|
|
|
|
abstract showContextVirtualFile(): void;
|
|
|
|
abstract selectContextItem(id: string, query: string): void;
|
|
|
|
abstract selectContextItemAtIndex(
|
|
id: string,
|
|
query: string,
|
|
index: number
|
|
): void;
|
|
|
|
abstract loadSession(session_id?: string): void;
|
|
|
|
abstract onReconnectAtSession(session_id: string): void;
|
|
|
|
abstract editStepAtIndex(userInput: string, index: number): void;
|
|
|
|
abstract setSystemMessage(message: string): void;
|
|
|
|
abstract setTemperature(temperature: number): void;
|
|
|
|
abstract addModelForRole(
|
|
role: string,
|
|
model_class: string,
|
|
model: string
|
|
): void;
|
|
|
|
abstract saveContextGroup(title: string, contextItems: ContextItem[]): void;
|
|
|
|
abstract selectContextGroup(id: string): void;
|
|
|
|
abstract deleteContextGroup(id: string): void;
|
|
|
|
abstract setCurrentSessionTitle(title: string): void;
|
|
}
|
|
|
|
export default AbstractContinueGUIClientProtocol;
|