mail

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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

func ToolArgsValue

func ToolArgsValue[T Primitive](args ToolArgs, key string, defaultValue T) T

Types

type Primitive

type Primitive = toolcall.Primitive

type ToolArgs

type ToolArgs = toolcall.ToolArgs

type ToolDef

type ToolDef = toolcall.ToolDef

Source Files

  • mail.go

Jump to

Keyboard shortcuts

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