data

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrApiKeyEmpty      error = &err.Err{Op: "config", Err: "APIKey cannot be empty!"}
	ErrRegionBanned     error = &err.Err{Op: "check", Err: "Oh no, your region may be blocked by Anthropic! Please enable a proxy to bypass the block!"}
	ErrContextNil       error = &err.Err{Op: "send", Err: "Context cannot be nil!"}
	ErrContextNotFound  error = &err.Err{Op: "send", Err: "Context not found"}
	ErrConfigEmpty      error = &err.Err{Op: "config", Err: "Configuration cannot be empty!"}
	ErrSenderNil        error = &err.Err{Op: "sender", Err: "Sender cannot be nil!"}
	ErrPromptHumanEmpty error = &err.Err{Op: "prompt", Err: "The value of human cannot be empty!"}
	ErrPromptCtxEmpty   error = &err.Err{Op: "prompt", Err: "The value of context cannot be empty!"}
	ErrPromptEmpty      error = &err.Err{Op: "send", Err: "The value of prompt cannot be empty!"}
)

Functions

This section is empty.

Types

type MessageModule

type MessageModule struct {
	Assistant string // returned data (do not modify)
	Human     string // input content
}

Jump to

Keyboard shortcuts

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