Documentation ¶
Index ¶
- Constants
- func Browse(url string) string
- func BuildTree(agent *Agent) *prompt.FunctionNode
- func CurrentTime(_ string) string
- func DefaultBuildTree() *prompt.FunctionNode
- func Finish(input string) string
- func FunctionsAsString(functions []FunctionInfo) string
- func GetCurrentTimeString() string
- func PullModel() error
- func Search(text string) string
- type Agent
- type AgentOption
- type FunctionInfo
- type GenerateRequest
- type GenerateResponse
Constants ¶
View Source
const LOG_MODEL = true
const MODEL_NAME = "orca-mini:13b"
View Source
const MODEL_NAME = "neural-chat"
const MODEL_NAME = "zephyr"
Variables ¶
This section is empty.
Functions ¶
func BuildTree ¶
func BuildTree(agent *Agent) *prompt.FunctionNode
func CurrentTime ¶
func DefaultBuildTree ¶
func DefaultBuildTree() *prompt.FunctionNode
DefaultBuildTree builds the default tree of FunctionNodes
func FunctionsAsString ¶
func FunctionsAsString(functions []FunctionInfo) string
func GetCurrentTimeString ¶
func GetCurrentTimeString() string
GetCurrentTimeString returns the current time as a string.
Types ¶
type Agent ¶
type Agent struct { PromptTree *prompt.FunctionNode MaxLength int MessageHistory *messages.MessageHistory Functions []FunctionInfo }
func NewAgent ¶
func NewAgent(options ...AgentOption) *Agent
func (*Agent) GeneratePrompt ¶
type AgentOption ¶
type AgentOption func(*Agent)
func WithMaxLength ¶
func WithMaxLength(maxLength int) AgentOption
func WithPromptTree ¶
func WithPromptTree(promptTree *prompt.FunctionNode) AgentOption
type FunctionInfo ¶
type GenerateRequest ¶
type GenerateResponse ¶
Click to show internal directories.
Click to hide internal directories.