interfaces

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyPrompt = errors.New("empty prompt")

Functions

This section is empty.

Types

type ProviderDriver

type ProviderDriver interface {
	GetResponse(prompt models.PromptToSend) ([]string, error)
	StreamAvailable() bool
	ToStream() ProviderStreamDriver
}

type ProviderStreamDriver

type ProviderStreamDriver interface {
	GetStreamResponse(prompt models.PromptToSend) (StreamReceiver, error)
}

type StreamReceiver

type StreamReceiver interface {
	Receive() (choices []string, err error, eof bool)
	Close()
}

Jump to

Keyboard shortcuts

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