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
sentCharacterslongHow many characters of text the call sent.
inputTokenslongHow many input tokens the provider charged for them.
cancellationTokenCancellationTokenCancels the write.