Commit graph

1 commit

Author SHA1 Message Date
Ahmed Allam
432edf0df6 feat(llm): structured per-attempt provider request log with provider request ids
Every model-provider attempt (LiteLLM callback + native OpenAI/Codex wrapper)
emits an LlmRequestEvent: provider, model, host, outcome, HTTP status,
provider request id (response header first, Anthropic error body fallback),
usage/cost, duration, agent + retry attempt. Prompts, completions, headers
and credentials are never recorded; error text is redacted and truncated.
Agent failure reasons now go through failure_text() so a blocked Anthropic
call's request id lands in the operator-visible failure text.
2026-09-22 18:51:20 +00:00