Versions in this module Expand all Collapse all v0 v0.8.2 May 24, 2026 v0.8.1 May 20, 2026 v0.8.0 May 17, 2026 v0.7.10 May 13, 2026 v0.7.9 May 11, 2026 Changes in this version + func GetPromptSourceContent(name string, global bool) string v0.7.8 May 7, 2026 Changes in this version + func ResolvePromptEditPath(name string) (string, error) + func ResolvePromptRemovePath(name string) (string, error) + type PromptInfo struct + Description string + Name string + Source string + func ListPrompts() []PromptInfo v0.7.7 May 3, 2026 Changes in this version + var GetCurrentSessionID = session.GetCurrentSessionID + func HandleNote(ctx context.Context, content string) (result string, suggestion string, err error) + func HandleRecall(ctx context.Context, keywordsStr string, days int, limit int) (result string, suggestion string, err error) + func JudgeHistory(messages []*Message) + func ToSQLNullString(tcs []ToolCall) (toolCalls sql.NullString) + func Truncate(content string, maxLen int) string + func UpdateContent(ctx context.Context, id int64, content string) (err error) + func UpdateHistory(ctx context.Context, id int64) (err error) + func UpdateToolCalls(ctx context.Context, id int64, tcs []ToolCall) (err error) type Message + func CleanupReverse(messages []Message) (cleaned []Message) + func ListHistory(ctx context.Context) ([]*Message, error) + func LoadHistory(ctx context.Context) ([]Message, error) + func ShowMessage(ctx context.Context, id int64) (message *Message, err error) + type Result struct + Message Message + ProjectPath string + func SearchMessages(ctx context.Context, keywords []string, days int, limit int) ([]Result, error) v0.7.6 May 3, 2026 Changes in this version + const MaxNoteContentLen + func BuildNotePrompt(ctx context.Context) string + func FormatTime(t time.Time) string + func SaveMessages(ctx context.Context, msgs ...Message) error + func SaveNote(ctx context.Context, content string) error + func ToolCallsID(tcs []ToolCall) string + type Message struct + Content string + CreatedAt time.Time + ID int64 + ModelID int64 + OK bool + ReasoningContent string + Role string + SessionID int64 + ToolCallID string + ToolCalls []ToolCall + func LoadPrompts(ctx context.Context) ([]Message, error) + func (m *Message) GetTokens() int + type Note struct + Content string + CreatedAt time.Time + ID int64 + SessionID int64 + func LoadNotes(ctx context.Context, days int) ([]Note, error) + type ToolCall struct + Function ToolCallFunction + ID string + Type string + type ToolCallFunction struct + Arguments string + Name string v0.7.5 May 2, 2026 v0.7.4 Apr 27, 2026 Changes in this version + func GetDefaultPromptTemplate(model string) string + func GetPromptPath(model string, global bool) (string, error) + func GetPromptTemplate(model string) string + func GetSystemPrompt(ctx context.Context) string