Skip to content

A native macOS / windows / Linux database IDE built with Swift and AppKit. Connect to PostgreSQL, MySQL, SQLite, and Redis from a single app with a fast, keyboard-driven interface.

C++
374 B
Raw Blame
// AIChatUseCase.swift
// Gridex

import Foundation

protocol AIChatUseCase: Sendable {
    func sendMessage(
        _ message: String,
        conversation: AIConversation,
        schema: SchemaSnapshot,
        connectionInfo: ConnectionConfig
    ) -> AsyncThrowingStream<String, Error>

    func suggestQuestions(for schema: SchemaSnapshot) async throws -> [String]
}