chat-logging
Persistent chat conversation logging & quality management for Django apps.
Part of the platform ecosystem (ADR-037). Works with any app using chat-agent.
Features
- ChatConversation + ChatMessage — Full conversation persistence
- UseCaseCandidate — Track unmet user needs
- EvaluationScore — Store evaluation metrics (DeepEval, LangFuse)
- LoggingSessionBackend — Drop-in wrapper for any SessionBackend
- Django Admin — Filter, search, review, export conversations
Installation
pip install chat-logging
Add to INSTALLED_APPS:
INSTALLED_APPS = [
...
"chat_logging",
]
Run migrations:
python manage.py migrate chat_logging
Usage
from chat_agent import ChatAgent, InMemorySessionBackend
from chat_logging import LoggingSessionBackend
backend = LoggingSessionBackend(
wrapped=InMemorySessionBackend(),
app_name="drifttales",
user=request.user,
)
agent = ChatAgent(
toolkit=my_toolkit,
completion=my_backend,
session_backend=backend, # conversations are now logged!
system_prompt="...",
)
Export
from chat_logging.exporters import (
export_conversations_csv,
export_conversations_jsonl,
)
from chat_logging.models import ChatConversation
qs = ChatConversation.objects.filter(app_name="drifttales")
jsonl = export_conversations_jsonl(qs)
csv_data = export_conversations_csv(qs)
Metadata
Release files for iil-chat-logging 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| iil_chat_logging-0.2.0.tar.gz | 19.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iil_chat_logging-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.4 kB
Release files / iil_chat_logging-0.2.0.tar.gz
| Download URL | iil_chat_logging-0.2.0.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a8e595f7e3eda0f39e77079eccb6e5aa62dd826637b6881becf380ce1b07709
|
|
BLAKE2b-256 checksum How to use checksums |
92ba5ebf80a09f3d159c3d63273d5538b4119758f3583dc49a95fd05ea05bcbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / iil_chat_logging-0.2.0-py3-none-any.whl
| Download URL | iil_chat_logging-0.2.0-py3-none-any.whl |
|---|---|
| Size | 25.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13d991fc215b182ccd48cacd3ad816471d8debf49af6ba1c0851af7c1d95ddd7
|
|
BLAKE2b-256 checksum How to use checksums |
65c0f9214f26d9fc1fdadca98e9420054a950430c9ed47254461b1d435b7194b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for iil-chat-logging 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.