factor_agent.llm.log.RecordingBackend#

class RecordingBackend(backend, log)[source]#

Bases: object

A backend that writes every call it passes on to log.

Methods#

RecordingBackend.complete

Pass request on and write the call once its reply is back.

RecordingBackend.record

Pass request on, write the call once its reply is back, and return the reply and the call file.