gemini

package
v0.6.49 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const SettingsFileName = "settings.json"

Variables

This section is empty.

Functions

func New

func New(config v1.Config) v1.Tool

Types

type ConfigTemplateInput

type ConfigTemplateInput struct {
	Model             Model
	RepositoryDir     string
	AgentRunID        string
	AgentRunMode      console.AgentRunMode
	InactivityTimeout int64
	GitAccessToken    string
}

type Gemini

type Gemini struct {
	v1.DefaultTool
	// contains filtered or unexported fields
}

Gemini implements v1.Tool interface.

func (*Gemini) BabysitRun

func (in *Gemini) BabysitRun(ctx context.Context, bCtx *v1.BabysitContext) bool

func (*Gemini) Configure

func (in *Gemini) Configure(_, _ string) error

func (*Gemini) ConfigureBabysitRun

func (in *Gemini) ConfigureBabysitRun() error

func (*Gemini) FollowUpRun added in v0.6.48

func (in *Gemini) FollowUpRun(ctx context.Context, followUpPrompt string) error

FollowUpRun re-runs the Gemini CLI with the same settings as the initial run, using followUpPrompt as the user prompt. Errors are returned to the caller and must not be sent on ErrorChan.

func (*Gemini) OnMessage

func (in *Gemini) OnMessage(f func(message *console.AgentMessageAttributes))

func (*Gemini) Run

func (in *Gemini) Run(ctx context.Context, options ...exec.Option)

func (*Gemini) UploadArtifacts added in v0.6.45

func (in *Gemini) UploadArtifacts(ctx context.Context) (*artifacts.UploadArtifacts, error)

type Model

type Model string
const (
	ModelGemini35Flash       Model = "gemini-3.5-flash"
	ModelGemini31ProPreview  Model = "gemini-3.1-pro-preview"
	ModelGemini31FlashLite   Model = "gemini-3.1-flash-lite"
	ModelGemini3ProPreview   Model = "gemini-3-pro-preview"
	ModelGemini3FlashPreview Model = "gemini-3-flash-preview"
)

func EnsureModel

func EnsureModel(model string) Model

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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