ki agent definition