_chat

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentPreProgram

type AgentPreProgram struct {
	BasePrompt           []byte
	SystemPrompt         []byte
	Tools                map[string]tools.BaseTool
	ToolNames            string
	AdditionalToolsMeta  map[string]interface{}
	BaseRunnableCaller   func(prompt []byte) (string, error)
	RunnableCaller       func(promptIterable []byte) (string, error)
	AIIdentity           []byte
	ChatMemoryCollection *mongo.Collection
	MaxIteration         int
	Verbose              bool
	SessionId            string
}

func (*AgentPreProgram) Executor

func (prePrompt *AgentPreProgram) Executor(queryPrompt map[string][]byte, sessionId string, maxIterations int, verbose bool) ([]byte, any, error)

Jump to

Keyboard shortcuts

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