ai

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 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 AI

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

func New

func New(token string, endpoint string, model string, shell string, platform string) *AI

func (*AI) Ask

func (a *AI) Ask(ctx context.Context, prompt string) (Response, error)

type Response

type Response struct {
	Command     string `json:"command"`
	Explanation string `json:"explanation"`
}

Jump to

Keyboard shortcuts

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