Skip to main contentCrate langmail
Source - adapters
- Provider-specific adapters that normalize third-party email payloads
into langmail’s cleaning pipeline.
- Address
- An email address with optional display name.
- CallToAction
- A primary call-to-action link extracted from an HTML email.
- LlmContextOptions
- Options for
to_llm_context_with_options. - ParsedInput
- Pre-parsed email input — bypasses the MIME parser.
- PreprocessOptions
- Options for customizing preprocessing behavior.
- ProcessedEmail
- The primary output of langmail preprocessing.
- ThreadMessage
- A single message extracted from a quoted reply chain.
- LangmailError
- Errors that can occur during preprocessing.
- RenderMode
- Controls how
to_llm_context_with_options renders the email body.
- preprocess
- Preprocess a raw email (RFC 5322 / EML format) into an LLM-ready structure.
- preprocess_parsed
- Preprocess an already-parsed email, bypassing the MIME parser.
- preprocess_with_options
- Preprocess with custom options.