message

package
v0.0.0-...-90abbe5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(req router.Request, resp router.Response) error

func InvokeTools

func InvokeTools(req router.Request, resp router.Response) error

func IsToolCall

func IsToolCall(msg *v1.Message) bool

Types

type CompleteClient

type CompleteClient interface {
	Call(ctx context.Context, k8s kclient.Client, namespace string, messageRequest openai2.CompletionRequest, status chan<- v1.MessageBody) (*v1.MessageBody, error)
}

type Handler

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

func NewGenerateHandler

func NewGenerateHandler(c CompleteClient) *Handler

func (*Handler) CompleteAssistant

func (h *Handler) CompleteAssistant(req router.Request, resp router.Response) error

func (*Handler) CreateAssistantMessage

func (h *Handler) CreateAssistantMessage(req router.Request, resp router.Response) error

Jump to

Keyboard shortcuts

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