delegates/ai library