Documentation ¶
Index ¶
- Constants
- func ValidateExpression(e string) error
- type AnthropicConfig
- type AnythingLLMConfig
- type CallOptionsConfig
- type Config
- type Expression
- type MistralConfig
- type NoopLooger
- type OllamaConfig
- type OpenAIConfig
- type PrinterConfig
- type Shortcut
- type UIConfig
- type VariableScreen
- type VariableScreenDimension
- type Variables
- type WindowBackgroundColor
- type WindowConfig
Constants ¶
View Source
const ( BackendCopilot = "copilot" BackendOpenAI = "openai" BackendAnythingLLM = "anythingllm" BackendOllama = "ollama" BackendMistral = "mistral" BackendAnthropic = "anthropic" ThemeDark = "dark" ThemeLight = "light" ThemeSystem = "system" TranslucentNever = "never" TranslucentEver = "ever" TranslucentHover = "hover" PrinterFormatPlain = "plain" PrinterFormatJSON = "json" PrinterTargetOut = "stdout" PrinterTargetErr = "stderr" )
Variables ¶
This section is empty.
Functions ¶
func ValidateExpression ¶
Types ¶
type AnthropicConfig ¶
func (*AnthropicConfig) AsOptions ¶
func (c *AnthropicConfig) AsOptions() (opts []anthropic.Option)
func (*AnthropicConfig) Validate ¶
func (c *AnthropicConfig) Validate() error
type AnythingLLMConfig ¶
func (*AnythingLLMConfig) Validate ¶
func (c *AnythingLLMConfig) Validate() error
type CallOptionsConfig ¶
type CallOptionsConfig struct { SystemPrompt string MaxToken int Temperature float64 TopK int TopP float64 MinLength int MaxLength int }
func (*CallOptionsConfig) AsOptions ¶
func (c *CallOptionsConfig) AsOptions() (opts []llms.CallOption)
func (*CallOptionsConfig) Validate ¶
func (c *CallOptionsConfig) Validate() error
type Config ¶
type Config struct { UI UIConfig Backend string OpenAI OpenAIConfig AnythingLLM AnythingLLMConfig Ollama OllamaConfig Mistral MistralConfig Anthropic AnthropicConfig CallOptions CallOptionsConfig Printer PrinterConfig LogLevel int }
type Expression ¶
type Expression string
type MistralConfig ¶
func (*MistralConfig) AsOptions ¶
func (c *MistralConfig) AsOptions() (opts []mistral.Option)
func (*MistralConfig) Validate ¶
func (c *MistralConfig) Validate() error
type NoopLooger ¶
type NoopLooger struct { }
func (NoopLooger) Debug ¶
func (n NoopLooger) Debug(message string)
func (NoopLooger) Error ¶
func (n NoopLooger) Error(message string)
func (NoopLooger) Fatal ¶
func (n NoopLooger) Fatal(message string)
func (NoopLooger) Info ¶
func (n NoopLooger) Info(message string)
func (NoopLooger) Print ¶
func (n NoopLooger) Print(message string)
func (NoopLooger) Trace ¶
func (n NoopLooger) Trace(message string)
func (NoopLooger) Warning ¶
func (n NoopLooger) Warning(message string)
type OllamaConfig ¶
func (*OllamaConfig) AsOptions ¶
func (c *OllamaConfig) AsOptions() (opts []ollama.Option)
func (*OllamaConfig) Validate ¶
func (c *OllamaConfig) Validate() error
type OpenAIConfig ¶
type OpenAIConfig struct { APIKey string APIType string APIVersion string Model string BaseUrl string Organization string }
func (*OpenAIConfig) AsOptions ¶
func (c *OpenAIConfig) AsOptions() (opts []openai.Option)
func (*OpenAIConfig) Validate ¶
func (c *OpenAIConfig) Validate() error
type PrinterConfig ¶
type PrinterConfig struct { Format string Targets []io.WriteCloser // contains filtered or unexported fields }
type VariableScreen ¶
type VariableScreen struct {
Dimension VariableScreenDimension `json:"Dimension"`
}
type VariableScreenDimension ¶
type Variables ¶
type Variables struct { PrimaryScreen VariableScreen `json:"PrimaryScreen"` CurrentScreen VariableScreen `json:"CurrentScreen"` Screens []VariableScreen `json:"Screens"` SecondaryScreens []VariableScreen `json:"SecondaryScreens"` }
func FromScreens ¶
Click to show internal directories.
Click to hide internal directories.