Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidThinkingLevel ¶
Types ¶
type Args ¶
type Args struct {
Provider string
Model string
APIKey string
SystemPrompt string
AppendSystemPrompt []string
Thinking ThinkingLevel
Continue bool
Resume bool
Help bool
Version bool
Mode Mode
NoSession bool
Session string
SessionID string
SessionIDSet bool
SessionCwdOverride string
Fork string
SessionDir string
Models []string
Tools []string
NoTools bool
NoBuiltinTools bool
Extensions []string
NoExtensions bool
Print bool
Export string
NoSkills bool
Skills []string
PromptTemplates []string
NoPromptTemplates bool
Themes []string
NoThemes bool
NoContextFiles bool
ListModels any
Offline bool
Verbose bool
ProjectTrustOverride *bool
Messages []string
FileArgs []string
UnknownFlags map[string]any
Diagnostics []Diagnostic
}
type Diagnostic ¶
type InitialMessageInput ¶
type InitialMessageInput struct {
Parsed *Args
FileText string
FileImages []llm.ContentPart
StdinContent *string
}
type InitialMessageResult ¶
type InitialMessageResult struct {
InitialMessage string
InitialImages []llm.ContentPart
}
func BuildInitialMessage ¶
func BuildInitialMessage(input InitialMessageInput) InitialMessageResult
type ThinkingLevel ¶
type ThinkingLevel string
const ( ThinkingOff ThinkingLevel = "off" ThinkingMinimal ThinkingLevel = "minimal" ThinkingLow ThinkingLevel = "low" ThinkingMedium ThinkingLevel = "medium" ThinkingHigh ThinkingLevel = "high" ThinkingXHigh ThinkingLevel = "xhigh" ThinkingMax ThinkingLevel = "max" )
Click to show internal directories.
Click to hide internal directories.