Documentation
¶
Overview ¶
Package mail registers mail tools (sendmail/readmail/mail_search/contacts) with the toolcall framework and parses LLM-issued tool arguments.
Layering:
This package is a thin adapter between LLM tool calls and the core mail logic in internal/mail. It owns:
- ToolDef registration (name, description, JSON Schema parameters)
- Argument extraction from map[string]any with defaults and validation
- Delegation to mail.Handle* functions
Tools:
= sendmail — Send mail to another maintainer by name/email = readmail — Read mails (list or single) for current maintainer = mail_search — FTS5 search across mails = replymail — Reply to an existing mail = deletemail — Delete a mail (recipient only) = contacts — List all known contacts
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RegisterTool = toolcall.RegisterTool
Functions ¶
Types ¶
Source Files
¶
- mail.go
Click to show internal directories.
Click to hide internal directories.