Module atom_filter_app

Atom feed search agent.

Description

Atom feed search agent.

Reads a list of Atom feed URLs from atom_config.json, fetches each feed, and returns entries whose title, link or summary matches the search query.

Deduplication by URL is handled upstream by the Emquest pipeline.

Capability cascade

base_capabilities/0 extends em_filter:base_capabilities(). Site-specific filters extend atom_filter_app:base_capabilities():

atom_config.json format: { "atom_feeds": ["https://example.com/feed.atom", ...] }

Handler contract: handle/2 (Body, Memory) -> {RawList, Memory}.

Function Index

base_capabilities/0
clean_resume/1Strip HTML tags, collapse whitespace and truncate a feed entry body to a short resume (at most 300 chars, plus an ellipsis).
handle/2

Function Details

base_capabilities/0

base_capabilities() -> [binary()]

clean_resume/1

clean_resume(Body) -> any()

Strip HTML tags, collapse whitespace and truncate a feed entry body to a short resume (at most 300 chars, plus an ellipsis). Atom content can be a full HTML article; this keeps embryos small. --------------------------------------------------------------------

handle/2

handle(Body, Memory) -> any()


Generated by EDoc