Skip to main content

LLM Event Digest

PyPI version License: MIT Downloads LinkedIn

LLM Event Digest is a Python package designed to process news headlines or short text inputs and generate structured summaries of events, such as service disruptions or incidents. Utilizing a language model, it extracts key details like the involved company, the nature of the disruption, and the cause, ensuring outputs conform to a predefined format for consistency and reliability. This tool is ideal for automated news monitoring, alert systems, or data aggregation where structured, error-free information extraction from text is required.

Installation

Install the package via pip:

pip install llm_event_digest

Usage

Here's an example of how to use the package in Python:

from llm_event_digest import llm_event_digest

response = llm_event_digest(
    user_input="The internet service in downtown was down for 3 hours caused by a fiber cut.",
    api_key="your-llm7-api-key"  # Optional, if not set in environment variables
)
print(response)

Parameters

  • user_input (str): The text input (news headline or short description) to process.
  • llm (Optional[BaseChatModel]): An optional LangChain language model instance. If not provided, the default ChatLLM7 is used.
  • api_key (Optional[str]): API key for LLM7. If not provided, it looks for the LLM7_API_KEY environment variable.

Supported LLMs

The package uses ChatLLM7 from langchain_llm7 by default.

You can also pass your own LLM instance, such as:

from langchain_openai import ChatOpenAI

llm = ChatOpenAI()
response = llm_event_digest(
    user_input="Network outage in the city center.",
    llm=llm
)

Or:

from langchain_anthropic import ChatAnthropic

llm = ChatAnthropic()
response = llm_event_digest(
    user_input="Server downtime due to maintenance.",
    llm=llm
)

And:

from langchain_google_genai import ChatGoogleGenerativeAI

llm = ChatGoogleGenerativeAI()
response = llm_event_digest(
    user_input="Scheduled power outage.",
    llm=llm
)

Rate Limits

Default rate limits for LLM7 free tier are suitable for most use cases. For higher usage, obtain an API key from https://token.llm7.io/ and pass it via environment variable LLM7_API_KEY or directly in the function call.

Support and Issues

If you encounter any issues or have questions, please open an issue on the GitHub repository: https://github.com/chigwell/llm-event-digest/issues

Author

Eugene Evstafev
Email: hi@euegne.plus
GitHub: chigwell

Metadata

Release files for llm-event-digest 2025.12.21181028

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

Source distribution (sdist)

Source distribution for llm-event-digest 2025.12.21181028
File Size Uploaded
llm_event_digest-2025.12.21181028.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-event-digest 2025.12.21181028
File Interpreter ABI Platform
llm_event_digest-2025.12.21181028-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / llm_event_digest-2025.12.21181028.tar.gz

Download URL llm_event_digest-2025.12.21181028.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
20af305db4186b76ddb2d4f1ab70b55a9e55a34a06793541b9ed62a7a18769fc
BLAKE2b-256 checksum
How to use checksums
93ca2d680ce34d58e60d06c4ae58e41704eea7c3e61f895c66736e26288f13f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / llm_event_digest-2025.12.21181028-py3-none-any.whl

Download URL llm_event_digest-2025.12.21181028-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83d66d448be57f5a2e73cfec36eb89f956bc1043380c20fe168ef50dfcd892b0
BLAKE2b-256 checksum
How to use checksums
7e567685b406c0475ffa526723f900bbc28c16a8d3214d433d0914b2dcd54e79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

2025.12.21181028 This release

2 release files

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