ConsoleInterface

org.llm4s.assistant.ConsoleInterface
class ConsoleInterface(tools: ToolRegistry, sessionManager: SessionManager, config: ConsoleConfig)

Handles console-based user interface using functional programming principles

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def displayError(error: String): Either[AssistantError, Unit]

Displays an error message

Displays an error message

Attributes

def displayLLMError(error: LLMError): Either[AssistantError, Unit]

Displays an LLM error with proper formatting

Displays an LLM error with proper formatting

Attributes

def displayMessage(message: String, messageType: MessageType): Either[AssistantError, Unit]

Displays a message to the user

Displays a message to the user

Attributes

def displaySuccess(message: String): Either[AssistantError, Unit]

Displays a success message

Displays a success message

Attributes

def formatSessionList(sessions: Seq[String]): String

Formats session summaries for display

Formats session summaries for display

Attributes

def promptForInput(promptText: String): Either[AssistantError, String]

Prompts user for input with custom prompt text

Prompts user for input with custom prompt text

Attributes

def promptUser(): Either[AssistantError, String]

Prompts user for input

Prompts user for input

Attributes

def showHelp(): String

Shows help message

Shows help message

Attributes

def showWelcome(): Either[AssistantError, Unit]

Shows welcome message with recent sessions

Shows welcome message with recent sessions

Attributes