gaigent

package module
v0.0.0-...-7259f5a Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 12 Imported by: 0

README

gaigent

Logo

CI

An agent, of sorts? A playground.

⚠️ This library is in development. Things will probably break, but existing functionality is usable. ⚠️

go install maragu.dev/gaigent/cmd/gai@latest

Made with ✨sparkles✨ by maragu: independent software consulting for cloud-native Go apps & AI engineering.

Contact me at markus@maragu.dk for consulting work, or perhaps an invoice to support this project?

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

func NewAgent

func NewAgent(opts NewAgentOptions) *Agent

func (*Agent) Run

func (a *Agent) Run(ctx context.Context, getUserMessage func() (string, bool), out io.Writer) error

type NewAgentOptions

type NewAgentOptions struct {
	ChatCompleter gai.ChatCompleter
	Log           *slog.Logger
}

Directories

Path Synopsis
cmd
gai command

Jump to

Keyboard shortcuts

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