'array', 'response_payload' => 'array', 'prompt_tokens' => 'integer', 'completion_tokens' => 'integer', 'total_tokens' => 'integer', 'response_time_ms' => 'integer', 'prompt_cost' => 'decimal:6', 'completion_cost' => 'decimal:6', 'total_cost' => 'decimal:6', 'http_status' => 'integer', ]; public function user(): BelongsTo { return $this->belongsTo(User::class); } public function isSuccess(): bool { return $this->status === 'success'; } public function isFailed(): bool { return $this->status === 'failed'; } }