cli

package
v0.82.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidThinkingLevel

func IsValidThinkingLevel(level string) bool

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
}

func ParseArgs

func ParseArgs(argv []string) Args

type Diagnostic

type Diagnostic struct {
	Type    string
	Message string
}

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 Mode

type Mode string
const (
	ModeText Mode = "text"
	ModeJSON Mode = "json"
	ModeRPC  Mode = "rpc"
)

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL