Structs§
- Agent
LogEvent - Backfill
State - Backfilled
Session - Global
Session Entry - Global
Session Index - Global session index — maps session IDs to their project-scoped log paths
so that
agent listencan find sessions from any directory. - Live
LogContext - Session
LogCoordinator - Session
LogIndex - Session
LogIndex Entry - Session
LogMetadata - Session
LogWriter
Enums§
- LogCompleteness
- LogEvent
Kind - LogSource
Kind - Tool
Kind - Normalized tool category — provider-agnostic classification of tool calls.
Traits§
Functions§
- append_
event_ to_ log - Append a single event to an existing session log file without going
through the
SessionLogWritermachinery (no index updates, no callbacks). Used by out-of-process tools likezag ps killthat need to record aSessionResultevent into a session log owned by another running zag process. - live_
adapter_ for_ provider - Build a provider-specific live log adapter.
- load_
global_ index - logs_
dir - Canonical session log directory for a given project root.
- record_
agent_ output - record_
prompt - run_
backfill - Run historical log backfill from the given provider adapters.
- save_
global_ index - upsert_
global_ entry
Type Aliases§
- LogEvent
Callback - Callback invoked for each event after it has been written to the session
log. Used by
AgentBuilder::on_log_event/AgentBuilder::stream_events_to_stderrto give library callers live visibility without re-reading the JSONL file.