assistant

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package assistant is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPT3Runner added in v0.1.4

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

func (*GPT3Runner) CanRunKubectlCommand added in v0.1.4

func (a *GPT3Runner) CanRunKubectlCommand() bool

CanRunKubectlCommand checks if the last response had a exec command.

func (*GPT3Runner) GetResponse added in v0.1.4

func (a *GPT3Runner) GetResponse(ctx context.Context, prompt string) (string, error)

func (*GPT3Runner) RunKubectlCommand added in v0.1.4

func (a *GPT3Runner) RunKubectlCommand() error

RunKubectlCommand will run the exec command from the previous response.

type MockRunner added in v0.1.4

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

MockRunner is a mock of Runner interface.

func NewMockRunner added in v0.1.4

func NewMockRunner(ctrl *gomock.Controller) *MockRunner

NewMockRunner creates a new mock instance.

func (*MockRunner) CanRunKubectlCommand added in v0.1.4

func (m *MockRunner) CanRunKubectlCommand() bool

CanRunKubectlCommand mocks base method.

func (*MockRunner) EXPECT added in v0.1.4

func (m *MockRunner) EXPECT() *MockRunnerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRunner) GetResponse added in v0.1.4

func (m *MockRunner) GetResponse(ctx context.Context, prompt string) (string, error)

GetResponse mocks base method.

func (*MockRunner) RunKubectlCommand added in v0.1.4

func (m *MockRunner) RunKubectlCommand() error

RunKubectlCommand mocks base method.

type MockRunnerMockRecorder added in v0.1.4

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

MockRunnerMockRecorder is the mock recorder for MockRunner.

func (*MockRunnerMockRecorder) CanRunKubectlCommand added in v0.1.4

func (mr *MockRunnerMockRecorder) CanRunKubectlCommand() *gomock.Call

CanRunKubectlCommand indicates an expected call of CanRunKubectlCommand.

func (*MockRunnerMockRecorder) GetResponse added in v0.1.4

func (mr *MockRunnerMockRecorder) GetResponse(ctx, prompt interface{}) *gomock.Call

GetResponse indicates an expected call of GetResponse.

func (*MockRunnerMockRecorder) RunKubectlCommand added in v0.1.4

func (mr *MockRunnerMockRecorder) RunKubectlCommand() *gomock.Call

RunKubectlCommand indicates an expected call of RunKubectlCommand.

type Runner

type Runner interface {
	GetResponse(ctx context.Context, prompt string) (string, error)
	CanRunKubectlCommand() bool
	RunKubectlCommand() error
}

func New

func New(gpt3APIKey string, runner exec.Runner) Runner

Jump to

Keyboard shortcuts

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