Documentation
¶
Index ¶
Constants ¶
View Source
const ( // UI-specific constants that don't belong in client config ChatInputCharLimit = 500 SystemInputCharLimit = 1000 // UI refresh intervals LogCheckInterval = 100 * time.Millisecond )
View Source
const ( ChatInputPlaceholder = "Type your message and press Enter..." SystemInputPlaceholder = "Enter system prompt..." NoModelsPlaceholder = "No models loaded - load a model first" SelectModelPlaceholder = "Select a model first (press Enter on loaded model)" ChatWithModelPlaceholder = "Chat with %s (Enter to send, arrows to scroll)" GeneratingPlaceholder = "Generating response..." WelcomeMessage = "" /* 153-byte string literal not displayed */ )
UI Strings
Variables ¶
View Source
var ( MaxLogLines = client.DefaultMaxLogLines StreamChannelBufferSize = client.DefaultStreamChannelSize EstimateTickInterval = client.DefaultEstimateInterval AnimationTickInterval = client.DefaultAnimationInterval )
Use client configuration constants for shared values
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model represents the main TUI model
type ResponseBuffer ¶
type ResponseBuffer struct {
Segments []rendering.ContentSegment
}
ResponseBuffer tracks segments during streaming
func (*ResponseBuffer) AddSegment ¶
func (rb *ResponseBuffer) AddSegment(text string, contentType string)
func (*ResponseBuffer) Reset ¶
func (rb *ResponseBuffer) Reset()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.