pm4py.algo.querying.llm.abstractions.case_to_descr module#
PM4Py – A Process Mining Library for Python Copyright (C) 2026 Process Intelligence Solutions GmbH
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.
Website: https://processintelligence.solutions Contact: info@processintelligence.solutions
- class pm4py.algo.querying.llm.abstractions.case_to_descr.Parameters(*values)[source]#
Bases:
Enum- INCLUDE_CASE_ATTRIBUTES = 'include_case_attributes'#
- INCLUDE_EVENT_ATTRIBUTES = 'include_event_attributes'#
- INCLUDE_TIMESTAMP = 'include_timestamp'#
- INCLUDE_HEADER = 'include_header'#
- ACTIVITY_KEY = 'pm4py:param:activity_key'#
- TIMESTAMP_KEY = 'pm4py:param:timestamp_key'#
- pm4py.algo.querying.llm.abstractions.case_to_descr.apply(case: Trace, parameters: Dict[Any, Any] | None = None) str[source]#
Provides a textual abstraction of a single case (Trace object) of a traditional event log
- Parameters:
case – Single case (Trace object) of a traditional event log
parameters – Parameters of the method, including: - Parameters.INCLUDING_CASE_ATTRIBUTES - Parameters.INCLUDE_EVENT_ATTRIBUTES - Parameters.INCLUDE_TIMESTAMP - Parameters.INCLUDE_HEADER => includes the header (or not) in the response) - Parameters.ACTIVITY_KEY => the attribute to be used as activity - Parameters.TIMESTAMP_KEY => the attribute to be used as timestamp
- Returns:
Textual abstraction of the case
- Return type:
stru