factor_agent.llm.log.LLMLog#

class LLMLog(path)[source]#

Bases: object

The call files of one run directory’s llm_log.

Methods#

LLMLog.calls

Every recorded call, in call order, as {"request": ..., "reply": ...}.

LLMLog.drop_after

Move every call after the first count to dropped/: calls of a round a crash cut off.

LLMLog.files

The call files, in call order.

LLMLog.write

Write the next call file and return its path; the file appears whole or not at all.