command

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2025 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const BASH = "bash"

A unique name for bash (the shell)

View Source
const GOLANG = "go"

A unique name for bash (the shell)

View Source
const PYTHON = "python"

A unique name for bash (the shell)

View Source
const RETURN = "return"

A unique name for return command

Variables

This section is empty.

Functions

func Bash

func Bash(os, dir string) thinker.Cmd

Create new bash command, defining the os variant and working dir

func Cmd added in v0.0.20

func Cmd(dir string, spec thinker.Cmd) thinker.Cmd

func Golang added in v0.0.2

func Golang(gopath string) thinker.Cmd

Create new Golang command, defining goroot

func Python added in v0.0.2

func Python(dir string) thinker.Cmd

Create new python command, defining working dir

func Return

func Return() thinker.Cmd

Creates new return command, instructing LLM return results

Types

type Registry

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

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Context added in v0.0.20

func (r *Registry) Context() chatter.Registry

func (*Registry) Invoke added in v0.0.20

func (r *Registry) Invoke(reply *chatter.Reply) (thinker.Phase, chatter.Message, error)

func (*Registry) Register

func (r *Registry) Register(cmd thinker.Cmd) error

Register new command

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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