cmd

package
v0.0.0-...-7edc2c7 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acp

type Acp struct {
	llm.WithModel
	Command string `arg:"" name:"command" help:"Template name to configure the agent" optional:""`
}

Acp implements the `rai acp` CLI command which starts an ACP (Agent Client Protocol) server that communicates over stdio using JSON-RPC 2.0.

func (Acp) Run

func (a Acp) Run() error

Run starts the ACP server, reading a template from the user's config directory and serving JSON-RPC messages over stdin/stdout.

type Ask

type Ask struct {
	llm.WithModel
	Message   string `arg:"" name:"message" help:"Message to send to Claude API"`
	WithTools bool   `help:"Enable all tools for the agent"`
}

func (Ask) Run

func (a Ask) Run() error

type Do

type Do struct {
	llm.WithModel
	Command string   `arg:"" name:"command" help:"Command to be executed"`
	Args    []string `arg:"" name:"args" help:"Arguments for the command" optional:""`
	DryRun  bool     `help:"Dry run (do not execute the command, just print the prompt)"`
}

func (Do) Run

func (a Do) Run() error

type Models

type Models struct {
	Provider string `arg:"" optional:"" help:"The provider to list models for."`
}

func (*Models) Run

func (l *Models) Run() error

Jump to

Keyboard shortcuts

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