autodev

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: BSD-2-Clause, Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayFromBardReponse

func ArrayFromBardReponse(resp string) []string

ArrayFromBardResponse is a convenience function that cleans up a string Bard response for a list of dependencies.

func TrimSpaces

func TrimSpaces(s string) string

Types

type AutodevClient

type AutodevClient struct {
	*genai.Client
}

func NewAutodevClient

func NewAutodevClient(ctx context.Context, api_key string) *AutodevClient

type AutodevConfig

type AutodevConfig struct {
	AgentName     string
	AgentLanguage string
	ErrToDebug    string
	Prompts       AutodevPrompts
}

func (*AutodevConfig) SetAgentLanguageFromPaths

func (c *AutodevConfig) SetAgentLanguageFromPaths(paths []string) error

type AutodevDebugErrorPrompts

type AutodevDebugErrorPrompts struct {
	Prompts map[string]map[AutodevDebugErrorTasks]string
}

func NewAutodevDebugErrorPrompts

func NewAutodevDebugErrorPrompts() *AutodevDebugErrorPrompts

func (*AutodevDebugErrorPrompts) GetPrompts

func (p *AutodevDebugErrorPrompts) GetPrompts(task interface{}, language string) (string, error)

type AutodevDebugErrorTasks

type AutodevDebugErrorTasks int
const (
	DebugError AutodevDebugErrorTasks = iota
	FindRunFunction
)

type AutodevDockerfilePrompts

type AutodevDockerfilePrompts struct {
	Prompts map[string]map[AutodevDockerfileTasks]string
}

func NewAutodevDockerfilePrompts

func NewAutodevDockerfilePrompts() *AutodevDockerfilePrompts

NewAutodevDockerfilePrompts is a constructor that initializes the prompt fields.

func (*AutodevDockerfilePrompts) GetPrompts

func (p *AutodevDockerfilePrompts) GetPrompts(task interface{}, language string) (string, error)

type AutodevDockerfileTasks

type AutodevDockerfileTasks int
const (
	ListSystemDependencies AutodevDockerfileTasks = iota
	ListLanugageSpecificDependencies
	ListImports
	RemoveStdLib
	UpdateAgentDockerfile
	GetEnvironmentManager
)

type AutodevPrompts

type AutodevPrompts interface {
	GetPrompts(interface{}, string) (string, error)
}

Jump to

Keyboard shortcuts

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