Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFkRelations ¶
Types ¶
type ChatFunctionDefinition ¶
type ChatFunctionDefinition interface { Name() string Description() string Arguments() map[string]interface{} Execute(args map[string]interface{}) (string, error) }
func NewGetSchema ¶
func NewGetSchema(db *gorm.DB) ChatFunctionDefinition
type ChatTools ¶
type ChatTools struct {
Definitions []ChatFunctionDefinition
}
func (*ChatTools) Add ¶
func (c *ChatTools) Add(def ChatFunctionDefinition)
func (*ChatTools) Funcs ¶
func (c *ChatTools) Funcs() map[string]CompletionFunc
func (*ChatTools) OpenAiTools ¶
func (c *ChatTools) OpenAiTools() []openai.Tool
type CompletionFunc ¶
Click to show internal directories.
Click to hide internal directories.