add: clarifying comment on credit usage

This commit is contained in:
aakashb95
2026-05-04 18:41:37 +05:30
parent a4e3363edd
commit 9852dd25df
@@ -35,6 +35,9 @@ module Captain::ChatResponseHelper
def credit_used_for_response?(parsed_response)
response = parsed_response['response']
# The classifier can still decide to hand off after this trace is written.
# Actual response usage is charged later in ResponseBuilderJob, so billing stays correct.
response.present? && response != 'conversation_handoff' && parsed_response['action'] != 'handoff'
end