Add processing log entry
Add processing log entry with prompt I/O details
OptionalpromptInput: stringOptionalpromptOutput: stringAdd tokens to run total and calculate cost from pricing config if available
Optionalcost: numberOptionalinputTokens: numberOptionaloutputTokens: numberOptionalpricing: TokenPricingConfigMark run as complete
OptionalconvergenceReason: stringGet iteration statistics
Get recent changes from processing log
Check if any changes occurred in last N iterations
StaticCalculateCalculate cost from token counts and pricing config
Add error to run