Table of Contents

Method RecordChargeAsync

Namespace
MailFathom.Application.Agent.Answering
Assembly
MailFathom.Application.dll

RecordChargeAsync(long, long, CancellationToken)

Records what the run's first call sent and was charged, which the next turn's budget is measured by.

public Task<bool> RecordChargeAsync(long sentCharacters, long inputTokens, CancellationToken cancellationToken)

Parameters

sentCharacters long

How many characters of text the call sent.

inputTokens long

How many input tokens the provider charged for them.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<bool>

true when the charge was recorded; false when the answer is no longer being composed.