gemini

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package gemini provides the Gemini CLI agent adapter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct{}

Adapter converts between canonical Agent and Gemini CLI agent format.

func (*Adapter) DefaultDir

func (a *Adapter) DefaultDir() string

DefaultDir returns the default directory name for Gemini agents.

func (*Adapter) FileExtension

func (a *Adapter) FileExtension() string

FileExtension returns the file extension for Gemini agents.

func (*Adapter) Marshal

func (a *Adapter) Marshal(agent *core.Agent) ([]byte, error)

Marshal converts canonical Agent to Gemini agent TOML bytes.

func (*Adapter) Name

func (a *Adapter) Name() string

Name returns the adapter identifier.

func (*Adapter) Parse

func (a *Adapter) Parse(data []byte) (*core.Agent, error)

Parse converts Gemini agent TOML bytes to canonical Agent.

func (*Adapter) ReadFile

func (a *Adapter) ReadFile(path string) (*core.Agent, error)

ReadFile reads a Gemini agent TOML file and returns canonical Agent.

func (*Adapter) WriteFile

func (a *Adapter) WriteFile(agent *core.Agent, path string) error

WriteFile writes canonical Agent to a Gemini agent TOML file.

type AgentSection

type AgentSection struct {
	Name         string   `toml:"name"`
	Description  string   `toml:"description"`
	Model        string   `toml:"model,omitempty"`
	Tools        []string `toml:"tools,omitempty"`
	Skills       []string `toml:"skills,omitempty"`
	Dependencies []string `toml:"dependencies,omitempty"`
}

AgentSection contains agent metadata.

type GeminiAgent

type GeminiAgent struct {
	Agent        AgentSection `toml:"agent"`
	Instructions string       `toml:"instructions,multiline"`
}

GeminiAgent represents a Gemini CLI agent in TOML format.

Jump to

Keyboard shortcuts

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