hired.candidate.topics#
Topic dossiers — “a little, or a whole lot” about any subject the candidate shares.
A dossier lives under user/info/topics/<slug>/ and holds an overview.md
(the human/agent-readable summary and entry point) plus optional detail
files/media under files/. A one-sentence note and a multi-file collection use
the same shape, so the synopsis can always link to an overview and the agent knows
where deeper detail lives. Reach a dossier via
kb.topic(name) / kb.add_note(name, ...).
Classes
|
One subject's dossier: an |
- class hired.candidate.topics.TopicDossier(base_dir, *, name=None)[source]#
Bases:
objectOne subject’s dossier: an
overview.mdplus optional attached files.>>> import tempfile, os >>> d = TopicDossier(os.path.join(tempfile.mkdtemp(), 'patents'), name='Patents') >>> d.add_note('Holds 3 US patents on anomaly detection.') >>> d.overview.splitlines()[0] '# Patents' >>> d.add_file('cert.txt', b'patent cert') >>> d.files() ['cert.txt'] >>> d.get_file('cert.txt') b'patent cert'