Skip to content

A library for building autonomous agents that comply with ethical theories

Notifications You must be signed in to change notification settings

justinsvegliato/morality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

morality

Morality.js is a library for building autonomous agents that comply with ethical theories.

Example

import morality from 'morality';
import agents from 'morality/agents';
import ethics from 'morality/ethics';

const agent = new agents.GridWorldAgent([
  ['O', 'O', 'W', 'W', 'O'],
  ['O', 'O', 'W', 'W', 'O'],
  ['O', 'O', 'O', 'O', 'G']
]);

const ethics = new ethics.DivineCommandTheory([0, 4, 10]);

const solution = morality.solve(agent, ethics);

Citation

Please cite the following paper if you use Morality.js in your own research.

  • Ethically Compliant Sequential Decision Making
  • Justin Svegliato — Samer B. Nashed — Shlomo Zilberstein
  • Proceedings of the 35th Conference on Artificial Intelligence (AAAI)
  • March 2021

About

A library for building autonomous agents that comply with ethical theories

Topics

Resources

Stars

Watchers

Forks