Documentation
¶
Overview ¶
Package gemini provides the Gemini CLI agent adapter.
Index ¶
- type Adapter
- func (a *Adapter) DefaultDir() string
- func (a *Adapter) FileExtension() string
- func (a *Adapter) Marshal(agent *core.Agent) ([]byte, error)
- func (a *Adapter) Name() string
- func (a *Adapter) Parse(data []byte) (*core.Agent, error)
- func (a *Adapter) ReadFile(path string) (*core.Agent, error)
- func (a *Adapter) WriteFile(agent *core.Agent, path string) error
- type AgentSection
- type GeminiAgent
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 ¶
DefaultDir returns the default directory name for Gemini agents.
func (*Adapter) FileExtension ¶
FileExtension returns the file extension for Gemini agents.
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.
Click to show internal directories.
Click to hide internal directories.