llmmock

package
v0.0.5-beta1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package llmmock provides a mock implementation of the LLM interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonLllMock

type JsonLllMock struct{}

func (*JsonLllMock) Chat

func (l *JsonLllMock) Chat(ctx context.Context, prompt *chat.Chat) (string, error)

func (*JsonLllMock) Completion

func (l *JsonLllMock) Completion(ctx context.Context, prompt string) (string, error)

type LlmMock

type LlmMock struct {
}

func (*LlmMock) Chat

func (l *LlmMock) Chat(ctx context.Context, prompt *chat.Chat) (string, error)

func (*LlmMock) Completion

func (l *LlmMock) Completion(ctx context.Context, prompt string) (string, error)

Jump to

Keyboard shortcuts

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