factor_agent.snapshot.SearchFiles#

class SearchFiles(fields, operators, prompts=<factory>)[source]#

Bases: object

The files a run searches with: the field files, the operator file and the replaced templates.

prompts maps a template’s name to the file that replaces it. In a snapshot a field file is named fields/<file name>, the operator file operators/<file name> and a replaced template prompts/<template>/<file name> (names, from_names).

Methods#

SearchFiles.from_names

The files of a snapshot's files (name to path), as names names them.

SearchFiles.names

Every file by its name in a snapshot, field files first, then the operator file and the templates.

Attributes#

SearchFiles.fields#
SearchFiles.operators#
SearchFiles.prompts#