moonshot

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayClient

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

func (*GatewayClient) BuildHTTPOptions

func (g *GatewayClient) BuildHTTPOptions() ([]poc.PocConfigOption, error)

func (*GatewayClient) Chat

func (g *GatewayClient) Chat(s string, function ...aispec.Function) (string, error)

func (*GatewayClient) ChatEx

func (g *GatewayClient) ChatEx(details []aispec.ChatDetail, function ...aispec.Function) ([]aispec.ChatChoice, error)

func (*GatewayClient) ChatStream

func (g *GatewayClient) ChatStream(s string) (io.Reader, error)

func (*GatewayClient) ExtractData

func (g *GatewayClient) ExtractData(msg string, desc string, fields map[string]any) (map[string]any, error)

func (*GatewayClient) LoadOption

func (g *GatewayClient) LoadOption(opt ...aispec.AIConfigOption)

Jump to

Keyboard shortcuts

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