Versions in this module Expand all Collapse all v0 v0.1.0 Jun 19, 2025 Changes in this version + var ConvAll struct + var Provider interface + var Tools []toolStruct + func Azure(endpoint, apikey string, temperature float64, maxTokens int) error + func ConversationTTL(ttl int) error + func EnableRAG(host, dbname, user, password string, port int, folder string) error + func FindTool(name string) (toolStruct, error) + func GetRAG(userPrompt string) string + func MemoryVersion(newFunc ...interface{}) + func NewTool(name, desc string, function interface{}) + func Ollama(ip, port, model string, temperature float64) error + func OpenAI(model, apikey string, temperature float32) error + func RAGConfig(context, chunkSize int, overlapRatio, multiplier float64) error + func SetSystemPrompt(prompt string) + func StartDashboard(port string) error + type Conversation struct + History []HistoryStruct + LastActive time.Time + MainPrompt string + Mutex sync.Mutex + Summary string + ToolsResp []interface{} + UserPrompt string + func BeginConversation() *Conversation + func (c *Conversation) DumpConversation() string + func (c *Conversation) Prompt(userPrompt string) (ResponseStruct, error) + type HistoryStruct struct + Content string + Role string + TimeStamp time.Time + ToolCallID string + ToolCalls []ToolCall + func MemoryAllMessage(c *Conversation) ([]HistoryStruct, error) + func MemoryLastMessage(c *Conversation) ([]HistoryStruct, error) + func MemoryTime(c *Conversation) ([]HistoryStruct, error) + type RequestStruct struct + History *[]HistoryStruct + Systemprompt string + Userprompt string + type ResponseStruct struct + Eval_count float64 + PromptEvalCount float64 + PromptEvalDuration float64 + Response string + TotalLoadDuration float64 + func Send(con *Conversation) (ResponseStruct, error) + type ToolCall struct + Function struct{ ... } + ID string + Index *int + Type string