agent

package
v3.17.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 22 Imported by: 1 module, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListCmd

type ListCmd struct {
	Name     string   `help:"Filter agents by their name"`
	Version  string   `help:"Filter agents by their version"`
	Hostname string   `help:"Filter agents by their hostname"`
	State    string   `help:"Filter agents by state (running, idle, paused)"`
	Tags     []string `help:"Filter agents by tags"`
	PerPage  int      `help:"Number of agents per page" default:"30"`
	Limit    int      `help:"Maximum number of agents to return" default:"100"`
	Output   string   `help:"Output format. One of: json, yaml, text" short:"o" default:"${output_default_format}" enum:"json,yaml,text"`
}

func (*ListCmd) Help

func (c *ListCmd) Help() string

func (*ListCmd) Run

func (c *ListCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type PauseCmd

type PauseCmd struct {
	AgentID          string `arg:"" help:"Agent ID to pause"`
	Note             string `help:"A descriptive note to record why the agent is paused"`
	TimeoutInMinutes int    `help:"Timeout after which the agent is automatically resumed, in minutes" default:"5"`
}

func (*PauseCmd) Help

func (c *PauseCmd) Help() string

func (*PauseCmd) Run

func (c *PauseCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type ResumeCmd

type ResumeCmd struct {
	AgentID string `arg:"" help:"Agent ID to resume"`
}

func (*ResumeCmd) Help

func (c *ResumeCmd) Help() string

func (*ResumeCmd) Run

func (c *ResumeCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type StopCmd

type StopCmd struct {
	Agents []string `arg:"" optional:"" help:"Agent IDs to stop"`
	Force  bool     `help:"Force stop the agent. Terminating any jobs in progress"`
	Limit  int64    `help:"Limit parallel API requests" short:"l" default:"5"`
}

func (*StopCmd) Help

func (c *StopCmd) Help() string

func (*StopCmd) Run

func (c *StopCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type ViewCmd

type ViewCmd struct {
	Agent  string `arg:"" help:"Agent ID to view"`
	Web    bool   `help:"Open agent in a browser" short:"w"`
	Output string `help:"Output format. One of: json, yaml, text" short:"o" default:"${output_default_format}" enum:"json,yaml,text"`
}

func (*ViewCmd) Help

func (c *ViewCmd) Help() string

func (*ViewCmd) Run

func (c *ViewCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

Jump to

Keyboard shortcuts

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