Explicit input modes
URL, feed item, raw text, Markdown, or pre-segmented blocks use distinct validated objects.
Summary API design
A stable API exposes what was received, what content was extracted, how the summary was structured, and which warnings or evidence apply.
API architecture
Separate source, extraction, summary, evidence, warnings, and processing state.
URL, feed item, raw text, Markdown, or pre-segmented blocks use distinct validated objects.
Stable fields, null behavior, enums, length limits, evidence IDs, and coverage status.
Machine-readable extraction, validation, rate, policy, and processing error codes.
Job model
URL retrieval, PDFs, batches, and long content should not be forced through one short request.
Safety + operations
A summarizer that fetches arbitrary URLs can become an internal-network proxy or uncontrolled crawler.
Restrict protocols, block private and link-local ranges, revalidate redirects, cap response sizes, enforce timeouts, and rate-limit by client and destination.
Process complex documents in constrained workers.
Treat content as untrusted, validate model responses, escape rendered fields, avoid logging full content, and scope authentication by operation.
Document retention and deletion behavior.
Feed Signals
Inputs, outputs, evidence, extraction states, async jobs, idempotency, errors, security, and tests.
Design an article summarizer API with stable inputs, structured outputs, citations, length controls, and transparent failure modes.