factor_agent.events.CallEnd#
- class CallEnd(*, time=<factory>, call, round, role, model, group=None, slots=<factory>, file=None, seconds=0.0, input_tokens=None, output_tokens=None, cache_hits=None, reasoning=None, truncated=None, empty=False, error=None)[source]#
Bases:
CallStartAn LLM call came back, or failed.
fileis the call file’s name inllm_log/,Nonewhen the call failed (errorsays how) and wrote none.secondsis how long it took. The token counts are the provider’s,Nonewhere its reply does not report them:cache_hitsare input tokens read from the provider’s cache,reasoningoutput tokens spent reasoning.truncatedis true when the reply was cut off at the output limit,Nonewhen the provider’s reply does not say;emptywhen the reply holds no text.
Inherited methods and attributes are documented on the base classes linked above.
Attributes#
- CallEnd.cache_hits = None#
- CallEnd.empty = False#
- CallEnd.error = None#
- CallEnd.file = None#
- CallEnd.input_tokens = None#
- CallEnd.output_tokens = None#
- CallEnd.reasoning = None#
- CallEnd.seconds = 0.0#
- CallEnd.truncated = None#
- CallEnd.type = 'call_end'#
The event’s type in the file; each event class sets its own.
- CallEnd.call#
- CallEnd.round#
- CallEnd.role#
- CallEnd.model#
- CallEnd.slots#
- CallEnd.time#