completion

package
v1.0.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Completion

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

func New

func New(openAIClient *openai.Client, operatingSystem, shellName string) *Completion

func (*Completion) Suggest

func (c *Completion) Suggest(prompt string) (*CompletionResponse, error)

type CompletionResponse

type CompletionResponse struct {
	Script      string
	Explain     string
	Executables []string
}

Jump to

Keyboard shortcuts

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