Documentation
¶
Index ¶
- Variables
- func Generate(cfg gemini.Config, args Args, quiet bool, promptText, schema string, ...)
- func ListSessions(records []session.Record)
- type Args
- func (args Args) AccessToken() string
- func (args Args) ContinueSession() bool
- func (args Args) Debug() bool
- func (args Args) DeleteSession() int
- func (args Args) ExecutionApproval() bool
- func (args Args) ExecutionEnabled() bool
- func (args Args) FilePaths() string
- func (args Args) GCPProject() string
- func (args Args) GCSBucket() string
- func (args Args) ListSessions() bool
- func (args Args) Quiet() bool
- func (args Args) RestoreSession() int
- func (args Args) SchemaDefinition() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Write = func(format string, a ...any) { if !strings.HasSuffix(format, "\n") { format += "\n" } fmt.Printf(format, a...) } WriteInfo = func(format string, a ...any) { Write(fmt.Sprintf("\x1b[90m%v\x1b[0m", format), a...) } WriteError = func(format string, a ...any) { Write(fmt.Sprintf("\x1b[31m%v\x1b[0m", format), a...) } WriteRaw = func(format string, a ...any) { fmt.Printf(format, a...) } Reader io.Reader = os.Stdin )
Functions ¶
func ListSessions ¶
ListSessions displays the current and any saved sessions
Types ¶
type Args ¶
type Args struct {
CustomURL *string
CustomUploadURL *string
Version *bool
DeleteAllSessions *bool
DisableGrounding *bool
Stats *bool
AppDir *string
CustomModel *string
ProModel *bool
MaxTokens *int
Temperature *float64
TopP *float64
SystemPrompt *string
UseCase *string
// contains filtered or unexported fields
}
Args defines all command line arguments
func (Args) AccessToken ¶ added in v1.3.5
func (Args) ContinueSession ¶ added in v1.3.6
func (Args) DeleteSession ¶
func (Args) ExecutionApproval ¶ added in v1.3.3
func (Args) ExecutionEnabled ¶ added in v1.3.3
func (Args) GCPProject ¶
func (Args) ListSessions ¶
func (Args) RestoreSession ¶
func (Args) SchemaDefinition ¶
Click to show internal directories.
Click to hide internal directories.