Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheDetailsMsg ¶ added in v0.1.10
type CacheDetailsMsg struct { WriteID string // ID for writing to cache Title string // Title of the cached item ReadID string // ID for reading from cache Model string // Model associated with the cache }
CacheDetailsMsg contains information about cached data
type PromptMode ¶
type PromptMode int
PromptMode represents different modes of user interaction
const ( // ExecPromptMode is for executing commands ExecPromptMode PromptMode = iota // TokenConfigPromptMode is for configuring API tokens TokenConfigPromptMode // ModelConfigPromptMode is for configuring models ModelConfigPromptMode // ApiBaseConfigPromptMode is for configuring API base URLs ApiBaseConfigPromptMode // ChatPromptMode is for chat interactions ChatPromptMode // DefaultPromptMode is the fallback mode DefaultPromptMode )
func GetPromptModeFromString ¶
func GetPromptModeFromString(s string) PromptMode
GetPromptModeFromString converts a string to its corresponding PromptMode
func (PromptMode) String ¶
func (m PromptMode) String() string
String returns the string representation of a PromptMode
type TextareaModel ¶ added in v0.1.4
func InitialTextareaPrompt ¶ added in v0.1.4
func InitialTextareaPrompt(value string) TextareaModel
func (TextareaModel) Init ¶ added in v0.1.4
func (m TextareaModel) Init() tea.Cmd
func (TextareaModel) View ¶ added in v0.1.4
func (m TextareaModel) View() string
Click to show internal directories.
Click to hide internal directories.