-record(request_end_event, { endpoint :: binary(), duration_ms :: integer(), success :: boolean(), response :: gleam@option:option(anthropic@hooks:response_summary()), error :: gleam@option:option(anthropic@types@error:anthropic_error()), request_id :: binary(), retry_count :: integer() }).