gemini

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package gemini provides an Executor implementation for Gemini CLI. Updated Dec 2025 to support stream-json output format for real-time streaming.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register()

Register registers the Gemini executor with the global factory

Types

type GeminiExecutor

type GeminiExecutor struct {
	// contains filtered or unexported fields
}

GeminiExecutor executes tasks using Gemini CLI

func New

func New(cfg *executor.Config) (*GeminiExecutor, error)

New creates a new GeminiExecutor

func (*GeminiExecutor) Capabilities

func (e *GeminiExecutor) Capabilities() []executor.Capability

Capabilities returns the list of features this executor supports

func (*GeminiExecutor) Close

func (e *GeminiExecutor) Close() error

Close releases any resources held by the executor

func (*GeminiExecutor) CostModel

func (e *GeminiExecutor) CostModel() *executor.CostModel

CostModel returns pricing information for Gemini 3 Flash

func (*GeminiExecutor) Execute

func (e *GeminiExecutor) Execute(ctx context.Context, task *executor.Task) (*executor.Result, error)

Execute runs a task and returns the result

func (*GeminiExecutor) ExecuteStreaming

func (e *GeminiExecutor) ExecuteStreaming(ctx context.Context, task *executor.Task, handler executor.EventHandler) (*executor.Result, error)

ExecuteStreaming runs a task with real-time event callbacks Now uses stream-json output format for true NDJSON streaming like Claude

func (*GeminiExecutor) HealthCheck

func (e *GeminiExecutor) HealthCheck(ctx context.Context) error

HealthCheck verifies the executor is configured and accessible

func (*GeminiExecutor) Name

func (e *GeminiExecutor) Name() string

Name returns the executor identifier

Jump to

Keyboard shortcuts

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