Skip to main content
Develop Master

LLM summary generation for Plone content types, built on the agentic infrastructure of eea.genai.core.

Provides an activatable behavior that adds allow_llm_summary and llm_summary fields to any Dexterity content type, automatic summary generation via the summarizer agent on content save, and REST API endpoints for manual and batch generation.

Main features

  1. ILLMSummary behavior with allow_llm_summary and llm_summary fields.

  2. generate_summary_for(obj, request, properties=None) — single-call API that resolves the right agent for the object’s portal_type and runs it via the core executor.

  3. Content-type-specific agents via naming convention summarizer:<PortalType> (falls back to summarizer).

  4. generic_metadata enricher (GenericMetadataProvider) — contributes title, description, language, geographic coverage, and temporal coverage to the user prompt. Reads from in-progress properties if passed, so unsaved edits are reflected.

  5. Event subscriber for automatic summary generation on save.

  6. @llm-summary REST endpoint for single-object generation.

  7. @llm-summary-batch REST endpoint for batch generation.

  8. Default agent definitions shipped in agents.json — override via the control panel agents_json.

Install

  • Add eea.genai.summary to your requirements.txt.

  • Install the GenericSetup profile.

  • Activate the eea.genai.summary behavior on the desired content types (Site Setup → Dexterity Content Types → Type → Behaviors).

Customization

Override the default summarizer agent for a content type by registering a more specific agent in either ZCML or the control panel agents_json:

<genai:agent
    name="summarizer:EEAFigure"
    class=".agents.FigureSummarizerAgent"
/>

To inject extra prompt fragments (e.g. dataset-specific instructions), write an IEnricher in your own package and reference it from the agent’s enrichers list — no need to subclass anything in eea.genai.summary.

Changelog

1.0 - (2026-05-21)

  • Initial release [avoinea refs #000000]

Release files for eea.genai.summary 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eea.genai.summary 1.0
File Size Uploaded
eea_genai_summary-1.0.tar.gz 21.8 kB Details

Release files / eea_genai_summary-1.0.tar.gz

Download URL eea_genai_summary-1.0.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
76917056fed0fa999b396676100d10d017a52e656bedfee053b7ef25640a4633
BLAKE2b-256 checksum
How to use checksums
57531c2ffdb453b304b5a2c499394f0d07dfe7b7a3bda8b343490c8fb812baa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page