agent

package
v0.271.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package agent implements `ofga agent`: material for coding agents that drive ofga.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutputTypes

func OutputTypes() map[string]any

OutputTypes maps each agent command's full path to what it prints under --json.

Types

type Command

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

Command is the `agent` command group.

func New

func New(cli *cli.CLI) *Command

New builds the agent command group.

func (*Command) Command

func (c *Command) Command() *cobra.Command

Command returns the cobra command.

type InstallOutput

type InstallOutput struct {
	// Path is the absolute path of the installed SKILL.md.
	Path string `json:"path"`
	// Changed is false when the file already held the same bytes.
	Changed bool `json:"changed"`
}

InstallOutput is what `agent skill install` prints under --json.

type ShowOutput

type ShowOutput struct {
	Content string `json:"content"`
}

ShowOutput is what `agent skill show` prints under --json.

Jump to

Keyboard shortcuts

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