Creates the handler.
Billing mode, tool class and the promises to wait for.
The choices onAutocomplete returns.
The wait of onAutocomplete on RecordingHandler.clock, in milliseconds.
The actual billing mode; undefined follows the token's claim.
When set, execute waits for it.
When set, prepare waits for it.
ReadonlycallsEvery call as [name, runId], in order.
true once any call was recorded (Python's changed event, as a flag).
The clock of the autocomplete wait (the scenarios set the server's clock).
ReadonlyeventsThe envelopes onEvent received, in order.
ReadonlyhandlesThe handle of each run seen in prepare or execute.
ReadonlyinvocationsThe invocations prepare received, in order.
The actual tool class.
Returns RecordingHandler.billing or the claim's mode.
The invocation.
The actual billing.
Returns how often name was called (for runId when given).
prepare, execute, onFollowup, ...
OptionalrunId: stringThe run to count for.
The count.
Records and waits for blockExecute.
The invocation.
The started run.
Records and returns RecordingHandler.autocompleteChoices after RecordingHandler.autocompleteDelayMs.
The request.
Aborted when the request expires.
The choices.
Records.
The invocation.
The run, if it is running here.
Records, waits for blockPrepare and returns the model model-test.
The invocation.
The run.
The start options.
An AgentHandler that records its calls and can block in
prepareorexecute.Example