====Algorithms==== An **algorithm** in Agency is the 'brain' of your agent. It defines the rules or the method that you're using to detect an issue. There are a range of built-in Agency algorithms, and you're also free to create your own using Python. Some of the pre-made algorithms are... ^Algorithm^Usage^ |[[PropertyPattern]]|Perform simple comparisons of the inputs| |[[Differential]]|Calculate the difference between two or more inputs| |[[BadDataDetector]]|Determine if input channels contain bad data| |[[Window]]|Determine if the input channels are inside or outside bounds| |[[JobLibAI]]|Run the inputs against a saved AI model|