Per-call filesystem logger for Patter voice agents, storing metadata, transcripts, and events.
# Source: https://github.com/PatterAI/Patter | License: MIT | Copyright 2026 Patter Contributors
# Provided via justclaw.it.com; keep this notice with the code.
"""Per-call filesystem logging for Patter voice agents.
Opt-in, off by default. Enable by setting ``PATTER_LOG_DIR`` (absolute path
or ``"auto"`` for platform-default) before constructing ``Patter``. When
unset the CallLogger is a no-op — no files are written, no directories are
created.
Layout::
<root>/calls/YYYY/MM/DD/<call_id>/
metadata.json # envelope written at call start, updated at call end
transcript.jsonl # one turn per line (role/text/ts/latency/cost)
events.jsonl # operational events (tool_call, barge_in, error)
Files are written atomically (tmp + rename) for ``metadata.json``; JSONL
f
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key