Todo 29: Rich Audit Log
Status
done
Goal
Make the debug console audit trail useful for real LLM debugging. A user should be able to see which model parameters and prompts/messages were sent, what text/events/results came back, and what usage was reported.
Scope
- Add ChatAgent request audit details: agent, turn/round, model params, messages, and tools.
- Add ChatAgent response audit details: text content, event names, and usage.
- Add EventAgent request audit details: agent params, requested events, history, system prompt, extra body, and tool schemas.
- Add EventAgent response audit details: tool reply messages.
- Keep API keys and Authorization headers out of audit output.
Verification
- Runtime tests assert audit payloads contain model params, prompt/messages, event/tool result data, and usage.
- Existing audit/log tests still pass with the richer event stream.
uv run pytest tests/test_debug_runtime.py -q passes: 17 tests.
uv run pytest passes: 57 tests.