Download adapters/template/adapter.py from solsticestudioai/mnemosyne-memory-lifecycle-benchmark: direct link, hf CLI and curl.
- Browser
- Download file 738 Bytes
-
https://huggingface.co/datasets/solsticestudioai/mnemosyne-memory-lifecycle-benchmark/resolve/main/adapters/template/adapter.py
- Command line
-
hf download hf://datasets/solsticestudioai/mnemosyne-memory-lifecycle-benchmark/adapters/template/adapter.py
-
curl -L -o adapter.py https://huggingface.co/datasets/solsticestudioai/mnemosyne-memory-lifecycle-benchmark/resolve/main/adapters/template/adapter.py
738 Bytes
| """Copyable adapter template. Replace TODO sections; keep stdout JSON-only.""" | |
| import json, sys | |
| def main(): | |
| request = json.loads(sys.stdin.readline()) | |
| # TODO: ingest observations into your memory system. | |
| # TODO: retrieve records for request["query"]. | |
| # TODO: resolve current and historical state. | |
| # TODO: report provenance, lifecycle status, and evidence families. | |
| result = {"protocol_version":"mnemosyne-external-strategy/v1","run_id":request["run_id"],"strategy_id":"replace_me","scenario_id":request["scenario_id"],"current_answer":None,"historical_answer":None,"abstained":True,"warnings":["template adapter: not implemented"]} | |
| print(json.dumps(result, sort_keys=True)) | |
| if __name__ == "__main__": main() | |